diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5c5289c..6497d62 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -24,15 +24,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest + pip install flake8 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57724cd..17c1f15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,9 +14,6 @@ stages: - pip install -r test-requirements.txt - pytest --cov=cyperf -pytest-3.7: - extends: .pytest - image: python:3.7-alpine pytest-3.8: extends: .pytest image: python:3.8-alpine diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c80429b..fce2375 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -397,7 +397,6 @@ docs/AppsecConfig.md docs/ArchiveInfo.md docs/ArrayV2ElementMetadata.md docs/AsyncContext.md -docs/AsyncOperationResponse.md docs/Attack.md docs/AttackAction.md docs/AttackObjectivesAndTimeline.md diff --git a/README.md b/README.md index 87c4c80..6609198 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ CyPerf REST API This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.0.0 -- Package version: 1.0.0 - Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -27,9 +25,6 @@ Then import the package: ```python import cyperf ``` -### Tests - -Execute `pytest` to run the tests. ## Getting Started @@ -87,20 +82,6 @@ Class | Method | HTTP request | Description *AgentsApi* | [**get_controller_compute_nodes**](docs/AgentsApi.md#get_controller_compute_nodes) | **GET** /api/v2/controllers/{controllerId}/compute-nodes | *AgentsApi* | [**get_controllers**](docs/AgentsApi.md#get_controllers) | **GET** /api/v2/controllers | *AgentsApi* | [**patch_agent**](docs/AgentsApi.md#patch_agent) | **PATCH** /api/v2/agents/{agentId} | -*AgentsApi* | [**poll_agents_batch_delete**](docs/AgentsApi.md#poll_agents_batch_delete) | **GET** /api/v2/agents/operations/batch-delete/{id} | -*AgentsApi* | [**poll_agents_export_files**](docs/AgentsApi.md#poll_agents_export_files) | **GET** /api/v2/agents/operations/exportFiles/{id} | -*AgentsApi* | [**poll_agents_reboot**](docs/AgentsApi.md#poll_agents_reboot) | **GET** /api/v2/agents/operations/reboot/{id} | -*AgentsApi* | [**poll_agents_release**](docs/AgentsApi.md#poll_agents_release) | **GET** /api/v2/agents/operations/release/{id} | -*AgentsApi* | [**poll_agents_reserve**](docs/AgentsApi.md#poll_agents_reserve) | **GET** /api/v2/agents/operations/reserve/{id} | -*AgentsApi* | [**poll_agents_set_dpdk_mode**](docs/AgentsApi.md#poll_agents_set_dpdk_mode) | **GET** /api/v2/agents/operations/set-dpdk-mode/{id} | -*AgentsApi* | [**poll_agents_set_ntp**](docs/AgentsApi.md#poll_agents_set_ntp) | **GET** /api/v2/agents/operations/set-ntp/{id} | -*AgentsApi* | [**poll_agents_update**](docs/AgentsApi.md#poll_agents_update) | **GET** /api/v2/agents/operations/update/{id} | -*AgentsApi* | [**poll_controllers_clear_port_ownership**](docs/AgentsApi.md#poll_controllers_clear_port_ownership) | **GET** /api/v2/controllers/operations/clear-port-ownership/{id} | -*AgentsApi* | [**poll_controllers_power_cycle_nodes**](docs/AgentsApi.md#poll_controllers_power_cycle_nodes) | **GET** /api/v2/controllers/operations/power-cycle-nodes/{id} | -*AgentsApi* | [**poll_controllers_reboot_port**](docs/AgentsApi.md#poll_controllers_reboot_port) | **GET** /api/v2/controllers/operations/reboot-port/{id} | -*AgentsApi* | [**poll_controllers_set_app**](docs/AgentsApi.md#poll_controllers_set_app) | **GET** /api/v2/controllers/operations/set-app/{id} | -*AgentsApi* | [**poll_controllers_set_node_aggregation**](docs/AgentsApi.md#poll_controllers_set_node_aggregation) | **GET** /api/v2/controllers/operations/set-node-aggregation/{id} | -*AgentsApi* | [**poll_controllers_set_port_link_state**](docs/AgentsApi.md#poll_controllers_set_port_link_state) | **GET** /api/v2/controllers/operations/set-port-link-state/{id} | *AgentsApi* | [**start_agents_batch_delete**](docs/AgentsApi.md#start_agents_batch_delete) | **POST** /api/v2/agents/operations/batch-delete | *AgentsApi* | [**start_agents_export_files**](docs/AgentsApi.md#start_agents_export_files) | **POST** /api/v2/agents/operations/exportFiles | *AgentsApi* | [**start_agents_reboot**](docs/AgentsApi.md#start_agents_reboot) | **POST** /api/v2/agents/operations/reboot | @@ -114,7 +95,9 @@ Class | Method | HTTP request | Description *AgentsApi* | [**start_controllers_reboot_port**](docs/AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | *AgentsApi* | [**start_controllers_set_app**](docs/AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | *AgentsApi* | [**start_controllers_set_node_aggregation**](docs/AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | +*AgentsApi* | [**start_controllers_set_node_app**](docs/AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | *AgentsApi* | [**start_controllers_set_port_link_state**](docs/AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | +*AgentsApi* | [**start_controllers_update_port_tags**](docs/AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | *ApplicationResourcesApi* | [**delete_resources_capture**](docs/ApplicationResourcesApi.md#delete_resources_capture) | **DELETE** /api/v2/resources/captures/{captureId} | *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} | @@ -133,9 +116,11 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**delete_resources_tls_dh**](docs/ApplicationResourcesApi.md#delete_resources_tls_dh) | **DELETE** /api/v2/resources/tls-dhs/{tlsDhId} | *ApplicationResourcesApi* | [**delete_resources_tls_key**](docs/ApplicationResourcesApi.md#delete_resources_tls_key) | **DELETE** /api/v2/resources/tls-keys/{tlsKeyId} | *ApplicationResourcesApi* | [**delete_resources_user_defined_app**](docs/ApplicationResourcesApi.md#delete_resources_user_defined_app) | **DELETE** /api/v2/resources/user-defined-apps/{userDefinedAppId} | +*ApplicationResourcesApi* | [**delete_resources_voice_custom_flow**](docs/ApplicationResourcesApi.md#delete_resources_voice_custom_flow) | **DELETE** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | *ApplicationResourcesApi* | [**get_capture_flows**](docs/ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | *ApplicationResourcesApi* | [**get_flow_exchanges**](docs/ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | *ApplicationResourcesApi* | [**get_resources_app_by_id**](docs/ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | +*ApplicationResourcesApi* | [**get_resources_app_categories**](docs/ApplicationResourcesApi.md#get_resources_app_categories) | **GET** /api/v2/resources/app-categories | *ApplicationResourcesApi* | [**get_resources_application_type_by_id**](docs/ApplicationResourcesApi.md#get_resources_application_type_by_id) | **GET** /api/v2/resources/application-types/{applicationTypeId} | *ApplicationResourcesApi* | [**get_resources_application_types**](docs/ApplicationResourcesApi.md#get_resources_application_types) | **GET** /api/v2/resources/application-types | *ApplicationResourcesApi* | [**get_resources_apps**](docs/ApplicationResourcesApi.md#get_resources_apps) | **GET** /api/v2/resources/apps | @@ -146,6 +131,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_auth_profiles**](docs/ApplicationResourcesApi.md#get_resources_auth_profiles) | **GET** /api/v2/resources/auth-profiles | *ApplicationResourcesApi* | [**get_resources_capture_by_id**](docs/ApplicationResourcesApi.md#get_resources_capture_by_id) | **GET** /api/v2/resources/captures/{captureId} | *ApplicationResourcesApi* | [**get_resources_captures**](docs/ApplicationResourcesApi.md#get_resources_captures) | **GET** /api/v2/resources/captures | +*ApplicationResourcesApi* | [**get_resources_captures_encrypted_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_captures_encrypted_upload_file_result) | **GET** /api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_captures_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_captures_upload_file_result) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_certificate_by_id**](docs/ApplicationResourcesApi.md#get_resources_certificate_by_id) | **GET** /api/v2/resources/certificates/{certificateId} | *ApplicationResourcesApi* | [**get_resources_certificate_content_file**](docs/ApplicationResourcesApi.md#get_resources_certificate_content_file) | **GET** /api/v2/resources/certificates/{certificateId}/contentFile | @@ -219,37 +205,13 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_tls_keys_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_user_defined_apps**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | *ApplicationResourcesApi* | [**get_resources_user_defined_apps_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | -*ApplicationResourcesApi* | [**poll_resources_apps_export_all**](docs/ApplicationResourcesApi.md#poll_resources_apps_export_all) | **GET** /api/v2/resources/apps/operations/export-all/{id} | -*ApplicationResourcesApi* | [**poll_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#poll_resources_captures_batch_delete) | **GET** /api/v2/resources/captures/operations/batch-delete/{id} | -*ApplicationResourcesApi* | [**poll_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_captures_upload_file) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_certificates_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_certificates_upload_file) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_config_export_user_defined_apps**](docs/ApplicationResourcesApi.md#poll_resources_config_export_user_defined_apps) | **GET** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id} | -*ApplicationResourcesApi* | [**poll_resources_create_app**](docs/ApplicationResourcesApi.md#poll_resources_create_app) | **GET** /api/v2/resources/operations/create-app/{id} | -*ApplicationResourcesApi* | [**poll_resources_custom_fuzzing_scripts_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_custom_fuzzing_scripts_upload_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_edit_app**](docs/ApplicationResourcesApi.md#poll_resources_edit_app) | **GET** /api/v2/resources/operations/edit-app/{id} | -*ApplicationResourcesApi* | [**poll_resources_find_param_matches**](docs/ApplicationResourcesApi.md#poll_resources_find_param_matches) | **GET** /api/v2/resources/operations/find-param-matches/{id} | -*ApplicationResourcesApi* | [**poll_resources_flow_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_flow_library_upload_file) | **GET** /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_get_attack_categories**](docs/ApplicationResourcesApi.md#poll_resources_get_attack_categories) | **GET** /api/v2/resources/operations/get-attack-categories/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_attacks**](docs/ApplicationResourcesApi.md#poll_resources_get_attacks) | **GET** /api/v2/resources/operations/get-attacks/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_strike_categories**](docs/ApplicationResourcesApi.md#poll_resources_get_strike_categories) | **GET** /api/v2/resources/operations/get-strike-categories/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_strikes**](docs/ApplicationResourcesApi.md#poll_resources_get_strikes) | **GET** /api/v2/resources/operations/get-strikes/{id} | -*ApplicationResourcesApi* | [**poll_resources_global_playlists_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_global_playlists_upload_file) | **GET** /api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_http_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_http_library_upload_file) | **GET** /api/v2/resources/http-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_media_files_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_media_files_upload_file) | **GET** /api/v2/resources/media-files/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_media_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_media_library_upload_file) | **GET** /api/v2/resources/media-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_other_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_other_library_upload_file) | **GET** /api/v2/resources/other-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_payloads_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_payloads_upload_file) | **GET** /api/v2/resources/payloads/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_pcaps_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_pcaps_upload_file) | **GET** /api/v2/resources/pcaps/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_playlists_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_playlists_upload_file) | **GET** /api/v2/resources/playlists/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_sip_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_sip_library_upload_file) | **GET** /api/v2/resources/sip-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_stats_profile_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_stats_profile_upload_file) | **GET** /api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_certificates_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_certificates_upload_file) | **GET** /api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_dhs_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_dhs_upload_file) | **GET** /api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_keys_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_keys_upload_file) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_user_defined_apps_export_all**](docs/ApplicationResourcesApi.md#poll_resources_user_defined_apps_export_all) | **GET** /api/v2/resources/user-defined-apps/operations/export-all/{id} | -*ApplicationResourcesApi* | [**poll_resources_user_defined_apps_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_user_defined_apps_upload_file) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId} | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flow_by_id**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flow_by_id) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flow_content_file**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flow_content_file) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId}/contentFile | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flows**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flows) | **GET** /api/v2/resources/voice-custom-flows | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flows_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flows_upload_file_result) | **GET** /api/v2/resources/voice-custom-flows/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**start_resources_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | +*ApplicationResourcesApi* | [**start_resources_captures_encrypted_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | *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 | @@ -258,6 +220,8 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**start_resources_edit_app**](docs/ApplicationResourcesApi.md#start_resources_edit_app) | **POST** /api/v2/resources/operations/edit-app | *ApplicationResourcesApi* | [**start_resources_find_param_matches**](docs/ApplicationResourcesApi.md#start_resources_find_param_matches) | **POST** /api/v2/resources/operations/find-param-matches | *ApplicationResourcesApi* | [**start_resources_flow_library_upload_file**](docs/ApplicationResourcesApi.md#start_resources_flow_library_upload_file) | **POST** /api/v2/resources/flow-library/operations/uploadFile | +*ApplicationResourcesApi* | [**start_resources_get_app_categories**](docs/ApplicationResourcesApi.md#start_resources_get_app_categories) | **POST** /api/v2/resources/operations/get-app-categories | +*ApplicationResourcesApi* | [**start_resources_get_apps**](docs/ApplicationResourcesApi.md#start_resources_get_apps) | **POST** /api/v2/resources/operations/get-apps | *ApplicationResourcesApi* | [**start_resources_get_attack_categories**](docs/ApplicationResourcesApi.md#start_resources_get_attack_categories) | **POST** /api/v2/resources/operations/get-attack-categories | *ApplicationResourcesApi* | [**start_resources_get_attacks**](docs/ApplicationResourcesApi.md#start_resources_get_attacks) | **POST** /api/v2/resources/operations/get-attacks | *ApplicationResourcesApi* | [**start_resources_get_strike_categories**](docs/ApplicationResourcesApi.md#start_resources_get_strike_categories) | **POST** /api/v2/resources/operations/get-strike-categories | @@ -277,6 +241,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**start_resources_tls_keys_upload_file**](docs/ApplicationResourcesApi.md#start_resources_tls_keys_upload_file) | **POST** /api/v2/resources/tls-keys/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_user_defined_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_user_defined_apps_export_all) | **POST** /api/v2/resources/user-defined-apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_user_defined_apps_upload_file**](docs/ApplicationResourcesApi.md#start_resources_user_defined_apps_upload_file) | **POST** /api/v2/resources/user-defined-apps/operations/uploadFile | +*ApplicationResourcesApi* | [**start_resources_voice_custom_flows_upload_file**](docs/ApplicationResourcesApi.md#start_resources_voice_custom_flows_upload_file) | **POST** /api/v2/resources/voice-custom-flows/operations/uploadFile | *AuthorizationApi* | [**authenticate**](docs/AuthorizationApi.md#authenticate) | **POST** /auth/realms/keysight/protocol/openid-connect/token | *BrokersApi* | [**create_brokers**](docs/BrokersApi.md#create_brokers) | **POST** /api/v2/brokers | *BrokersApi* | [**delete_broker**](docs/BrokersApi.md#delete_broker) | **DELETE** /api/v2/brokers/{brokerId} | @@ -286,21 +251,17 @@ Class | Method | HTTP request | Description *ConfigurationsApi* | [**create_configs**](docs/ConfigurationsApi.md#create_configs) | **POST** /api/v2/configs | *ConfigurationsApi* | [**delete_config**](docs/ConfigurationsApi.md#delete_config) | **DELETE** /api/v2/configs/{configId} | *ConfigurationsApi* | [**get_config_by_id**](docs/ConfigurationsApi.md#get_config_by_id) | **GET** /api/v2/configs/{configId} | +*ConfigurationsApi* | [**get_config_categorie_by_id**](docs/ConfigurationsApi.md#get_config_categorie_by_id) | **GET** /api/v2/config-categories/{configCategorieId} | +*ConfigurationsApi* | [**get_config_categorie_subcategories**](docs/ConfigurationsApi.md#get_config_categorie_subcategories) | **GET** /api/v2/config-categories/{configCategorieId}/subcategories | *ConfigurationsApi* | [**get_config_categories**](docs/ConfigurationsApi.md#get_config_categories) | **GET** /api/v2/config-categories | *ConfigurationsApi* | [**get_configs**](docs/ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | *ConfigurationsApi* | [**get_resources_custom_import_operations**](docs/ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | *ConfigurationsApi* | [**patch_config**](docs/ConfigurationsApi.md#patch_config) | **PATCH** /api/v2/configs/{configId} | -*ConfigurationsApi* | [**poll_configs_batch_delete**](docs/ConfigurationsApi.md#poll_configs_batch_delete) | **GET** /api/v2/configs/operations/batch-delete/{id} | -*ConfigurationsApi* | [**poll_configs_export_all**](docs/ConfigurationsApi.md#poll_configs_export_all) | **GET** /api/v2/configs/operations/exportAll/{id} | -*ConfigurationsApi* | [**poll_configs_import**](docs/ConfigurationsApi.md#poll_configs_import) | **GET** /api/v2/configs/operations/import/{id} | -*ConfigurationsApi* | [**poll_configs_import_all**](docs/ConfigurationsApi.md#poll_configs_import_all) | **GET** /api/v2/configs/operations/importAll/{id} | *ConfigurationsApi* | [**start_configs_batch_delete**](docs/ConfigurationsApi.md#start_configs_batch_delete) | **POST** /api/v2/configs/operations/batch-delete | *ConfigurationsApi* | [**start_configs_export_all**](docs/ConfigurationsApi.md#start_configs_export_all) | **POST** /api/v2/configs/operations/exportAll | *ConfigurationsApi* | [**start_configs_import**](docs/ConfigurationsApi.md#start_configs_import) | **POST** /api/v2/configs/operations/import | *ConfigurationsApi* | [**start_configs_import_all**](docs/ConfigurationsApi.md#start_configs_import_all) | **POST** /api/v2/configs/operations/importAll | *ConfigurationsApi* | [**update_config**](docs/ConfigurationsApi.md#update_config) | **PUT** /api/v2/configs/{configId} | -*DataMigrationApi* | [**poll_controller_migration_export**](docs/DataMigrationApi.md#poll_controller_migration_export) | **GET** /api/v2/controller-migration/operations/export/{id} | -*DataMigrationApi* | [**poll_controller_migration_import**](docs/DataMigrationApi.md#poll_controller_migration_import) | **GET** /api/v2/controller-migration/operations/import/{id} | *DataMigrationApi* | [**start_controller_migration_export**](docs/DataMigrationApi.md#start_controller_migration_export) | **POST** /api/v2/controller-migration/operations/export | *DataMigrationApi* | [**start_controller_migration_import**](docs/DataMigrationApi.md#start_controller_migration_import) | **POST** /api/v2/controller-migration/operations/import | *DiagnosticsApi* | [**api_v2_diagnostics_components_get**](docs/DiagnosticsApi.md#api_v2_diagnostics_components_get) | **GET** /api/v2/diagnostics/components | @@ -338,14 +299,10 @@ Class | Method | HTTP request | Description *NotificationsApi* | [**get_notification_by_id**](docs/NotificationsApi.md#get_notification_by_id) | **GET** /api/v2/notifications/{notificationId} | *NotificationsApi* | [**get_notification_counts**](docs/NotificationsApi.md#get_notification_counts) | **GET** /api/v2/notification-counts | *NotificationsApi* | [**get_notifications**](docs/NotificationsApi.md#get_notifications) | **GET** /api/v2/notifications | -*NotificationsApi* | [**poll_notifications_cleanup**](docs/NotificationsApi.md#poll_notifications_cleanup) | **GET** /api/v2/notifications/operations/cleanup/{id} | -*NotificationsApi* | [**poll_notifications_dismiss**](docs/NotificationsApi.md#poll_notifications_dismiss) | **GET** /api/v2/notifications/operations/dismiss/{id} | *NotificationsApi* | [**start_notifications_cleanup**](docs/NotificationsApi.md#start_notifications_cleanup) | **POST** /api/v2/notifications/operations/cleanup | *NotificationsApi* | [**start_notifications_dismiss**](docs/NotificationsApi.md#start_notifications_dismiss) | **POST** /api/v2/notifications/operations/dismiss | *ReportsApi* | [**download_pdf**](docs/ReportsApi.md#download_pdf) | **GET** /api/v2/results/{resultId}/download-pdf/{pdfId} | *ReportsApi* | [**get_result_download_csv_by_id**](docs/ReportsApi.md#get_result_download_csv_by_id) | **GET** /api/v2/results/{resultId}/download-csv/{downloadCsvId} | -*ReportsApi* | [**poll_result_generate_csv**](docs/ReportsApi.md#poll_result_generate_csv) | **GET** /api/v2/results/{resultId}/operations/generate-csv/{id} | -*ReportsApi* | [**poll_result_generate_pdf**](docs/ReportsApi.md#poll_result_generate_pdf) | **GET** /api/v2/results/{resultId}/operations/generate-pdf/{id} | *ReportsApi* | [**start_result_generate_csv**](docs/ReportsApi.md#start_result_generate_csv) | **POST** /api/v2/results/{resultId}/operations/generate-csv | *ReportsApi* | [**start_result_generate_pdf**](docs/ReportsApi.md#start_result_generate_pdf) | **POST** /api/v2/results/{resultId}/operations/generate-pdf | *SessionsApi* | [**create_session_meta**](docs/SessionsApi.md#create_session_meta) | **POST** /api/v2/sessions/{sessionId}/meta | @@ -364,15 +321,6 @@ Class | Method | HTTP request | Description *SessionsApi* | [**patch_session**](docs/SessionsApi.md#patch_session) | **PATCH** /api/v2/sessions/{sessionId} | *SessionsApi* | [**patch_session_meta**](docs/SessionsApi.md#patch_session_meta) | **PATCH** /api/v2/sessions/{sessionId}/meta/{metaId} | *SessionsApi* | [**patch_session_test**](docs/SessionsApi.md#patch_session_test) | **PATCH** /api/v2/sessions/{sessionId}/test | -*SessionsApi* | [**poll_config_add_applications**](docs/SessionsApi.md#poll_config_add_applications) | **GET** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id} | -*SessionsApi* | [**poll_session_config_granular_stats_default_dashboards**](docs/SessionsApi.md#poll_session_config_granular_stats_default_dashboards) | **GET** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} | -*SessionsApi* | [**poll_session_config_save**](docs/SessionsApi.md#poll_session_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | -*SessionsApi* | [**poll_session_load_config**](docs/SessionsApi.md#poll_session_load_config) | **GET** /api/v2/sessions/{sessionId}/operations/loadConfig/{id} | -*SessionsApi* | [**poll_session_prepare_test**](docs/SessionsApi.md#poll_session_prepare_test) | **GET** /api/v2/sessions/{sessionId}/operations/prepareTest/{id} | -*SessionsApi* | [**poll_session_test_end**](docs/SessionsApi.md#poll_session_test_end) | **GET** /api/v2/sessions/{sessionId}/operations/testEnd/{id} | -*SessionsApi* | [**poll_session_test_init**](docs/SessionsApi.md#poll_session_test_init) | **GET** /api/v2/sessions/{sessionId}/operations/testInit/{id} | -*SessionsApi* | [**poll_session_touch**](docs/SessionsApi.md#poll_session_touch) | **GET** /api/v2/sessions/{sessionId}/operations/touch/{id} | -*SessionsApi* | [**poll_sessions_batch_delete**](docs/SessionsApi.md#poll_sessions_batch_delete) | **GET** /api/v2/sessions/operations/batch-delete/{id} | *SessionsApi* | [**start_config_add_applications**](docs/SessionsApi.md#start_config_add_applications) | **POST** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications | *SessionsApi* | [**start_session_config_granular_stats_default_dashboards**](docs/SessionsApi.md#start_session_config_granular_stats_default_dashboards) | **POST** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards | *SessionsApi* | [**start_session_config_save**](docs/SessionsApi.md#start_session_config_save) | **POST** /api/v2/sessions/{sessionId}/config/operations/save | @@ -391,13 +339,7 @@ Class | Method | HTTP request | Description *StatisticsApi* | [**get_result_stat_by_id**](docs/StatisticsApi.md#get_result_stat_by_id) | **GET** /api/v2/results/{resultId}/stats/{statId} | *StatisticsApi* | [**get_result_stats**](docs/StatisticsApi.md#get_result_stats) | **GET** /api/v2/results/{resultId}/stats | *StatisticsApi* | [**get_stats_plugins**](docs/StatisticsApi.md#get_stats_plugins) | **GET** /api/v2/stats/plugins | -*StatisticsApi* | [**poll_stats_plugins_ingest**](docs/StatisticsApi.md#poll_stats_plugins_ingest) | **GET** /api/v2/stats/plugins/operations/ingest/{id} | *StatisticsApi* | [**start_stats_plugins_ingest**](docs/StatisticsApi.md#start_stats_plugins_ingest) | **POST** /api/v2/stats/plugins/operations/ingest | -*TestOperationsApi* | [**poll_test_calibrate_start**](docs/TestOperationsApi.md#poll_test_calibrate_start) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id} | -*TestOperationsApi* | [**poll_test_calibrate_stop**](docs/TestOperationsApi.md#poll_test_calibrate_stop) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id} | -*TestOperationsApi* | [**poll_test_run_abort**](docs/TestOperationsApi.md#poll_test_run_abort) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/abort/{id} | -*TestOperationsApi* | [**poll_test_run_start**](docs/TestOperationsApi.md#poll_test_run_start) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/start/{id} | -*TestOperationsApi* | [**poll_test_run_stop**](docs/TestOperationsApi.md#poll_test_run_stop) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/stop/{id} | *TestOperationsApi* | [**start_test_calibrate_start**](docs/TestOperationsApi.md#start_test_calibrate_start) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/start | *TestOperationsApi* | [**start_test_calibrate_stop**](docs/TestOperationsApi.md#start_test_calibrate_stop) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop | *TestOperationsApi* | [**start_test_run_abort**](docs/TestOperationsApi.md#start_test_run_abort) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/abort | @@ -413,10 +355,7 @@ Class | Method | HTTP request | Description *TestResultsApi* | [**get_result_files**](docs/TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | *TestResultsApi* | [**get_results**](docs/TestResultsApi.md#get_results) | **GET** /api/v2/results | *TestResultsApi* | [**get_results_tags**](docs/TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | -*TestResultsApi* | [**poll_result_generate_all**](docs/TestResultsApi.md#poll_result_generate_all) | **GET** /api/v2/results/{resultId}/operations/generate-all/{id} | -*TestResultsApi* | [**poll_result_generate_results**](docs/TestResultsApi.md#poll_result_generate_results) | **GET** /api/v2/results/{resultId}/operations/generate-results/{id} | -*TestResultsApi* | [**poll_result_load**](docs/TestResultsApi.md#poll_result_load) | **GET** /api/v2/results/{resultId}/operations/load/{id} | -*TestResultsApi* | [**poll_results_batch_delete**](docs/TestResultsApi.md#poll_results_batch_delete) | **GET** /api/v2/results/operations/batch-delete/{id} | +*TestResultsApi* | [**start_result_export_events**](docs/TestResultsApi.md#start_result_export_events) | **POST** /api/v2/results/{resultId}/operations/export-events | *TestResultsApi* | [**start_result_generate_all**](docs/TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | *TestResultsApi* | [**start_result_generate_results**](docs/TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | *TestResultsApi* | [**start_result_load**](docs/TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -433,13 +372,6 @@ Class | Method | HTTP request | Description *UtilsApi* | [**get_log_config**](docs/UtilsApi.md#get_log_config) | **GET** /api/v2/log-config | *UtilsApi* | [**get_time**](docs/UtilsApi.md#get_time) | **GET** /api/v2/time | *UtilsApi* | [**list_eulas**](docs/UtilsApi.md#list_eulas) | **GET** /eula/v1/eula | list of EULAs -*UtilsApi* | [**poll_cert_manager_generate**](docs/UtilsApi.md#poll_cert_manager_generate) | **GET** /api/v2/cert-manager/operations/generate/{id} | -*UtilsApi* | [**poll_cert_manager_upload**](docs/UtilsApi.md#poll_cert_manager_upload) | **GET** /api/v2/cert-manager/operations/upload/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_diagnostics**](docs/UtilsApi.md#poll_disk_usage_cleanup_diagnostics) | **GET** /api/v2/disk-usage/operations/cleanup-diagnostics/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_logs**](docs/UtilsApi.md#poll_disk_usage_cleanup_logs) | **GET** /api/v2/disk-usage/operations/cleanup-logs/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_migration**](docs/UtilsApi.md#poll_disk_usage_cleanup_migration) | **GET** /api/v2/disk-usage/operations/cleanup-migration/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_notifications**](docs/UtilsApi.md#poll_disk_usage_cleanup_notifications) | **GET** /api/v2/disk-usage/operations/cleanup-notifications/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_results**](docs/UtilsApi.md#poll_disk_usage_cleanup_results) | **GET** /api/v2/disk-usage/operations/cleanup-results/{id} | *UtilsApi* | [**post_eula**](docs/UtilsApi.md#post_eula) | **POST** /eula/v1/eula/CyPerf | Update properties an EULA *UtilsApi* | [**start_cert_manager_generate**](docs/UtilsApi.md#start_cert_manager_generate) | **POST** /api/v2/cert-manager/operations/generate | *UtilsApi* | [**start_cert_manager_upload**](docs/UtilsApi.md#start_cert_manager_upload) | **POST** /api/v2/cert-manager/operations/upload | @@ -489,16 +421,15 @@ Class | Method | HTTP request | Description - [ApplicationType](docs/ApplicationType.md) - [AppsecApp](docs/AppsecApp.md) - [AppsecAppMetadata](docs/AppsecAppMetadata.md) + - [AppsecAppMetadataKeywordsInner](docs/AppsecAppMetadataKeywordsInner.md) - [AppsecAttack](docs/AppsecAttack.md) - [AppsecConfig](docs/AppsecConfig.md) - [ArchiveInfo](docs/ArchiveInfo.md) - [ArrayV2ElementMetadata](docs/ArrayV2ElementMetadata.md) - [AsyncContext](docs/AsyncContext.md) - - [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) @@ -527,11 +458,13 @@ Class | Method | HTTP request | Description - [CiscoEncapsulation](docs/CiscoEncapsulation.md) - [ClearPortsOwnershipOperation](docs/ClearPortsOwnershipOperation.md) - [Command](docs/Command.md) + - [CommandMetadata](docs/CommandMetadata.md) - [ComputeNode](docs/ComputeNode.md) - [Config](docs/Config.md) - [ConfigCategory](docs/ConfigCategory.md) - [ConfigId](docs/ConfigId.md) - [ConfigMetadata](docs/ConfigMetadata.md) + - [ConfigSubCategory](docs/ConfigSubCategory.md) - [ConfigValidation](docs/ConfigValidation.md) - [Conflict](docs/Conflict.md) - [Connection](docs/Connection.md) @@ -611,11 +544,14 @@ Class | Method | HTTP request | Description - [GetAgents200ResponseOneOf](docs/GetAgents200ResponseOneOf.md) - [GetAgentsTags200Response](docs/GetAgentsTags200Response.md) - [GetAgentsTags200ResponseOneOf](docs/GetAgentsTags200ResponseOneOf.md) + - [GetAppsOperation](docs/GetAppsOperation.md) - [GetAsyncOperationResult200Response](docs/GetAsyncOperationResult200Response.md) - [GetAttacksOperation](docs/GetAttacksOperation.md) - [GetBrokers200Response](docs/GetBrokers200Response.md) - [GetBrokers200ResponseOneOf](docs/GetBrokers200ResponseOneOf.md) - [GetCategoriesOperation](docs/GetCategoriesOperation.md) + - [GetConfigCategorieSubcategories200Response](docs/GetConfigCategorieSubcategories200Response.md) + - [GetConfigCategorieSubcategories200ResponseOneOf](docs/GetConfigCategorieSubcategories200ResponseOneOf.md) - [GetConfigCategories200Response](docs/GetConfigCategories200Response.md) - [GetConfigCategories200ResponseOneOf](docs/GetConfigCategories200ResponseOneOf.md) - [GetConfigs200Response](docs/GetConfigs200Response.md) @@ -658,6 +594,7 @@ Class | Method | HTTP request | Description - [GetStatsPlugins200Response](docs/GetStatsPlugins200Response.md) - [GetStatsPlugins200ResponseOneOf](docs/GetStatsPlugins200ResponseOneOf.md) - [GetStrikesOperation](docs/GetStrikesOperation.md) + - [GroupTLS13](docs/GroupTLS13.md) - [HTTPProfile](docs/HTTPProfile.md) - [HTTPReqMeta](docs/HTTPReqMeta.md) - [HTTPResMeta](docs/HTTPResMeta.md) @@ -691,6 +628,7 @@ Class | Method | HTTP request | Description - [MacDtlsStack](docs/MacDtlsStack.md) - [MappingType](docs/MappingType.md) - [MarkedAsDeleted](docs/MarkedAsDeleted.md) + - [Md2Tlv](docs/Md2Tlv.md) - [MediaFile](docs/MediaFile.md) - [MediaTrack](docs/MediaTrack.md) - [Metadata](docs/Metadata.md) @@ -727,6 +665,7 @@ Class | Method | HTTP request | Description - [ParamType](docs/ParamType.md) - [Parameter](docs/Parameter.md) - [ParameterMatch](docs/ParameterMatch.md) + - [ParameterMeta](docs/ParameterMeta.md) - [ParameterMetadata](docs/ParameterMetadata.md) - [Params](docs/Params.md) - [ParamsEnum](docs/ParamsEnum.md) @@ -734,6 +673,7 @@ Class | Method | HTTP request | Description - [PayloadMetadata](docs/PayloadMetadata.md) - [PepDUT](docs/PepDUT.md) - [PfsP2Group](docs/PfsP2Group.md) + - [PlaylistMetadata](docs/PlaylistMetadata.md) - [Plugin](docs/Plugin.md) - [PluginStats](docs/PluginStats.md) - [Port](docs/Port.md) @@ -744,6 +684,8 @@ Class | Method | HTTP request | Description - [PreparedTestOptions](docs/PreparedTestOptions.md) - [PrfP1Algorithm](docs/PrfP1Algorithm.md) - [ProtectedSubnetConfig](docs/ProtectedSubnetConfig.md) + - [QUICProfile](docs/QUICProfile.md) + - [QUICVersion](docs/QUICVersion.md) - [RTPEncryptionMode](docs/RTPEncryptionMode.md) - [RTPProfile](docs/RTPProfile.md) - [RTPProfileMeta](docs/RTPProfileMeta.md) @@ -772,12 +714,14 @@ Class | Method | HTTP request | Description - [SessionReuseMethodTLS12](docs/SessionReuseMethodTLS12.md) - [SessionReuseMethodTLS13](docs/SessionReuseMethodTLS13.md) - [SetAggregationModeOperation](docs/SetAggregationModeOperation.md) - - [SetAppOperation](docs/SetAppOperation.md) + - [SetControllerAppOperation](docs/SetControllerAppOperation.md) - [SetDpdkModeOperationInput](docs/SetDpdkModeOperationInput.md) - [SetLinkStateOperation](docs/SetLinkStateOperation.md) + - [SetNodesAppOperation](docs/SetNodesAppOperation.md) - [SetNtpOperationInput](docs/SetNtpOperationInput.md) - [SimulatedIdP](docs/SimulatedIdP.md) - [Snapshot](docs/Snapshot.md) + - [SnowflakeExporter](docs/SnowflakeExporter.md) - [SortBodyField](docs/SortBodyField.md) - [SpecificObjective](docs/SpecificObjective.md) - [StartAgentsBatchDeleteRequestInner](docs/StartAgentsBatchDeleteRequestInner.md) @@ -795,6 +739,7 @@ Class | Method | HTTP request | Description - [TcpProfile](docs/TcpProfile.md) - [TestInfo](docs/TestInfo.md) - [TestStateChangedOperation](docs/TestStateChangedOperation.md) + - [TestUsage](docs/TestUsage.md) - [TimeValue](docs/TimeValue.md) - [TimelineSegment](docs/TimelineSegment.md) - [TimelineSegmentBase](docs/TimelineSegmentBase.md) @@ -817,9 +762,13 @@ Class | Method | HTTP request | Description - [TypeStringMetadata](docs/TypeStringMetadata.md) - [UdpProfile](docs/UdpProfile.md) - [UpdateNetworkMapping](docs/UpdateNetworkMapping.md) + - [UpdatePortTagsOperation](docs/UpdatePortTagsOperation.md) - [VLANRange](docs/VLANRange.md) - [ValidationMessage](docs/ValidationMessage.md) - [Version](docs/Version.md) + - [VxLANId](docs/VxLANId.md) + - [VxLANRange](docs/VxLANRange.md) + - [VxLANStack](docs/VxLANStack.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index ee40fe3..2975709 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -88,16 +88,15 @@ from cyperf.models.application_type import ApplicationType from cyperf.models.appsec_app import AppsecApp from cyperf.models.appsec_app_metadata import AppsecAppMetadata +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.appsec_attack import AppsecAttack from cyperf.models.appsec_config import AppsecConfig from cyperf.models.archive_info import ArchiveInfo from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata from cyperf.models.async_context import AsyncContext -from cyperf.models.async_operation_response import AsyncOperationResponse from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata -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 @@ -126,11 +125,13 @@ from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.compute_node import ComputeNode from cyperf.models.config import Config from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId from cyperf.models.config_metadata import ConfigMetadata +from cyperf.models.config_sub_category import ConfigSubCategory from cyperf.models.config_validation import ConfigValidation from cyperf.models.conflict import Conflict from cyperf.models.connection import Connection @@ -210,11 +211,14 @@ from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf from cyperf.models.get_configs200_response import GetConfigs200Response @@ -257,6 +261,7 @@ from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf from cyperf.models.get_strikes_operation import GetStrikesOperation +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.http_profile import HTTPProfile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta @@ -290,6 +295,7 @@ from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.mapping_type import MappingType from cyperf.models.marked_as_deleted import MarkedAsDeleted +from cyperf.models.md2_tlv import Md2Tlv from cyperf.models.media_file import MediaFile from cyperf.models.media_track import MediaTrack from cyperf.models.metadata import Metadata @@ -326,6 +332,7 @@ from cyperf.models.param_type import ParamType from cyperf.models.parameter import Parameter from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.parameter_metadata import ParameterMetadata from cyperf.models.params import Params from cyperf.models.params_enum import ParamsEnum @@ -333,6 +340,7 @@ from cyperf.models.payload_metadata import PayloadMetadata from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port @@ -343,6 +351,8 @@ from cyperf.models.prepared_test_options import PreparedTestOptions from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from cyperf.models.protected_subnet_config import ProtectedSubnetConfig +from cyperf.models.quic_profile import QUICProfile +from cyperf.models.quic_version import QUICVersion from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from cyperf.models.rtp_profile import RTPProfile from cyperf.models.rtp_profile_meta import RTPProfileMeta @@ -371,12 +381,14 @@ from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot +from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField from cyperf.models.specific_objective import SpecificObjective from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner @@ -394,6 +406,7 @@ from cyperf.models.tcp_profile import TcpProfile from cyperf.models.test_info import TestInfo from cyperf.models.test_state_changed_operation import TestStateChangedOperation +from cyperf.models.test_usage import TestUsage from cyperf.models.time_value import TimeValue from cyperf.models.timeline_segment import TimelineSegment from cyperf.models.timeline_segment_base import TimelineSegmentBase @@ -416,6 +429,10 @@ from cyperf.models.type_string_metadata import TypeStringMetadata from cyperf.models.udp_profile import UdpProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version +from cyperf.models.vx_lanid import VxLANId +from cyperf.models.vx_lan_range import VxLANRange +from cyperf.models.vx_lan_stack import VxLANStack diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 16f97c8..58b5f49 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -36,11 +36,13 @@ from cyperf.models.release_operation_input import ReleaseOperationInput from cyperf.models.reserve_operation_input import ReserveOperationInput from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf import DynamicModel from cyperf.api_client import ApiClient, RequestSerialized @@ -124,7 +126,7 @@ def delete_agent( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_agent_with_http_info( @@ -189,7 +191,7 @@ def delete_agent_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_agent_without_preload_content( @@ -254,7 +256,7 @@ def delete_agent_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_agent_serialize( self, @@ -382,7 +384,7 @@ def get_agent_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agent_by_id_with_http_info( @@ -447,7 +449,7 @@ def get_agent_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agent_by_id_without_preload_content( @@ -512,7 +514,7 @@ def get_agent_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agent_by_id_serialize( self, @@ -663,7 +665,7 @@ def get_agents( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_with_http_info( @@ -751,7 +753,7 @@ def get_agents_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_without_preload_content( @@ -839,7 +841,7 @@ def get_agents_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agents_serialize( self, @@ -1002,7 +1004,7 @@ def get_agents_tags( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_tags_with_http_info( @@ -1070,7 +1072,7 @@ def get_agents_tags_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_tags_without_preload_content( @@ -1138,7 +1140,7 @@ def get_agents_tags_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agents_tags_serialize( self, @@ -1280,7 +1282,7 @@ def get_compute_node_port_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_port_by_id_with_http_info( @@ -1352,7 +1354,7 @@ def get_compute_node_port_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_port_by_id_without_preload_content( @@ -1424,7 +1426,7 @@ def get_compute_node_port_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_compute_node_port_by_id_serialize( self, @@ -1568,7 +1570,7 @@ def get_compute_node_ports( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_ports_with_http_info( @@ -1643,7 +1645,7 @@ def get_compute_node_ports_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_ports_without_preload_content( @@ -1718,7 +1720,7 @@ def get_compute_node_ports_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_compute_node_ports_serialize( self, @@ -1858,7 +1860,7 @@ def get_controller_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_by_id_with_http_info( @@ -1922,7 +1924,7 @@ def get_controller_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_by_id_without_preload_content( @@ -1986,7 +1988,7 @@ def get_controller_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_by_id_serialize( self, @@ -2117,7 +2119,7 @@ def get_controller_compute_node_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_node_by_id_with_http_info( @@ -2185,7 +2187,7 @@ def get_controller_compute_node_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_node_by_id_without_preload_content( @@ -2253,7 +2255,7 @@ def get_controller_compute_node_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_compute_node_by_id_serialize( self, @@ -2390,7 +2392,7 @@ def get_controller_compute_nodes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_nodes_with_http_info( @@ -2461,7 +2463,7 @@ def get_controller_compute_nodes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_nodes_without_preload_content( @@ -2532,7 +2534,7 @@ def get_controller_compute_nodes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_compute_nodes_serialize( self, @@ -2612,6 +2614,7 @@ def get_controllers( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2633,6 +2636,8 @@ def get_controllers( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2658,6 +2663,7 @@ def get_controllers( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2673,13 +2679,14 @@ def get_controllers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controllers_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2701,6 +2708,8 @@ def get_controllers_with_http_info( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2726,6 +2735,7 @@ def get_controllers_with_http_info( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2741,13 +2751,14 @@ def get_controllers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controllers_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2769,6 +2780,8 @@ def get_controllers_without_preload_content( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2794,6 +2807,7 @@ def get_controllers_without_preload_content( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2809,12 +2823,13 @@ def get_controllers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controllers_serialize( self, take, skip, + include, _request_auth, _content_type, _headers, @@ -2843,6 +2858,10 @@ def _get_controllers_serialize( _query_params.append(('skip', skip)) + if include is not None: + + _query_params.append(('include', include)) + # process the header parameters # process the form parameters # process the body parameter @@ -2948,7 +2967,7 @@ def patch_agent( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_agent_with_http_info( @@ -3017,7 +3036,7 @@ def patch_agent_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_agent_without_preload_content( @@ -3086,7 +3105,7 @@ def patch_agent_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_agent_serialize( self, @@ -3167,10 +3186,170 @@ def _patch_agent_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_agents_batch_delete( + def start_agents_batch_delete( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3184,12 +3363,12 @@ def poll_agents_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_agents_batch_delete + """start_agents_batch_delete - Get the state of an ongoing operation. + Remove multiple agents. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3212,8 +3391,8 @@ def poll_agents_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_batch_delete_serialize( - id=id, + _param = self._start_agents_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3221,20 +3400,19 @@ def poll_agents_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_batch_delete_with_http_info( + def start_agents_batch_delete_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3248,12 +3426,12 @@ def poll_agents_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_agents_batch_delete + """start_agents_batch_delete - Get the state of an ongoing operation. + Remove multiple agents. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3276,8 +3454,8 @@ def poll_agents_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_batch_delete_serialize( - id=id, + _param = self._start_agents_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3285,20 +3463,19 @@ def poll_agents_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_batch_delete_without_preload_content( + def start_agents_batch_delete_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3312,12 +3489,12 @@ def poll_agents_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_agents_batch_delete + """start_agents_batch_delete - Get the state of an ongoing operation. + Remove multiple agents. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3340,8 +3517,8 @@ def poll_agents_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_batch_delete_serialize( - id=id, + _param = self._start_agents_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3349,19 +3526,18 @@ def poll_agents_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_agents_batch_delete_serialize( + def _start_agents_batch_delete_serialize( self, - id, + start_agents_batch_delete_request_inner, _request_auth, _content_type, _headers, @@ -3371,6 +3547,7 @@ def _poll_agents_batch_delete_serialize( _host = None _collection_formats: Dict[str, str] = { + 'StartAgentsBatchDeleteRequestInner': '', } _path_params: Dict[str, str] = {} @@ -3381,12 +3558,12 @@ def _poll_agents_batch_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if start_agents_batch_delete_request_inner is not None: + _body_params = start_agents_batch_delete_request_inner # set the HTTP header `Accept` @@ -3397,6 +3574,19 @@ def _poll_agents_batch_delete_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3405,8 +3595,8 @@ def _poll_agents_batch_delete_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/batch-delete/{id}', + method='POST', + resource_path='/api/v2/agents/operations/batch-delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3423,9 +3613,9 @@ def _poll_agents_batch_delete_serialize( @validate_call - def poll_agents_export_files( + def start_agents_export_files( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_files_operation_input: Optional[ExportFilesOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3439,12 +3629,12 @@ def poll_agents_export_files( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_agents_export_files + """start_agents_export_files - Get the state of an ongoing operation. + Sends export files requests to a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param export_files_operation_input: + :type export_files_operation_input: ExportFilesOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3467,8 +3657,8 @@ def poll_agents_export_files( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_export_files_serialize( - id=id, + _param = self._start_agents_export_files_serialize( + export_files_operation_input=export_files_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3476,20 +3666,19 @@ def poll_agents_export_files( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_export_files_with_http_info( + def start_agents_export_files_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_files_operation_input: Optional[ExportFilesOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3503,12 +3692,12 @@ def poll_agents_export_files_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_agents_export_files + """start_agents_export_files - Get the state of an ongoing operation. + Sends export files requests to a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param export_files_operation_input: + :type export_files_operation_input: ExportFilesOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3531,8 +3720,8 @@ def poll_agents_export_files_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_export_files_serialize( - id=id, + _param = self._start_agents_export_files_serialize( + export_files_operation_input=export_files_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3540,20 +3729,19 @@ def poll_agents_export_files_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_export_files_without_preload_content( + def start_agents_export_files_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_files_operation_input: Optional[ExportFilesOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3567,12 +3755,12 @@ def poll_agents_export_files_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_agents_export_files + """start_agents_export_files - Get the state of an ongoing operation. + Sends export files requests to a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param export_files_operation_input: + :type export_files_operation_input: ExportFilesOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3595,8 +3783,8 @@ def poll_agents_export_files_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_export_files_serialize( - id=id, + _param = self._start_agents_export_files_serialize( + export_files_operation_input=export_files_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3604,19 +3792,18 @@ def poll_agents_export_files_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_agents_export_files_serialize( + def _start_agents_export_files_serialize( self, - id, + export_files_operation_input, _request_auth, _content_type, _headers, @@ -3636,12 +3823,12 @@ def _poll_agents_export_files_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_files_operation_input is not None: + _body_params = export_files_operation_input # set the HTTP header `Accept` @@ -3652,6 +3839,19 @@ def _poll_agents_export_files_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] = [ @@ -3660,8 +3860,8 @@ def _poll_agents_export_files_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/exportFiles/{id}', + method='POST', + resource_path='/api/v2/agents/operations/exportFiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3678,9 +3878,9 @@ def _poll_agents_export_files_serialize( @validate_call - def poll_agents_reboot( + def start_agents_reboot( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + reboot_operation_input: Optional[RebootOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3694,12 +3894,12 @@ def poll_agents_reboot( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_agents_reboot + """start_agents_reboot - Get the state of an ongoing operation. + Reboot the agents specified in the request. - :param id: The ID of the async operation. (required) - :type id: int + :param reboot_operation_input: + :type reboot_operation_input: RebootOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3722,8 +3922,8 @@ def poll_agents_reboot( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_reboot_serialize( - id=id, + _param = self._start_agents_reboot_serialize( + reboot_operation_input=reboot_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3731,20 +3931,19 @@ def poll_agents_reboot( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_reboot_with_http_info( + def start_agents_reboot_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + reboot_operation_input: Optional[RebootOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3758,12 +3957,12 @@ def poll_agents_reboot_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_agents_reboot + """start_agents_reboot - Get the state of an ongoing operation. + Reboot the agents specified in the request. - :param id: The ID of the async operation. (required) - :type id: int + :param reboot_operation_input: + :type reboot_operation_input: RebootOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3786,8 +3985,8 @@ def poll_agents_reboot_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_reboot_serialize( - id=id, + _param = self._start_agents_reboot_serialize( + reboot_operation_input=reboot_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3795,20 +3994,19 @@ def poll_agents_reboot_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_reboot_without_preload_content( + def start_agents_reboot_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + reboot_operation_input: Optional[RebootOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3822,12 +4020,12 @@ def poll_agents_reboot_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_agents_reboot + """start_agents_reboot - Get the state of an ongoing operation. + Reboot the agents specified in the request. - :param id: The ID of the async operation. (required) - :type id: int + :param reboot_operation_input: + :type reboot_operation_input: RebootOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3850,8 +4048,8 @@ def poll_agents_reboot_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_reboot_serialize( - id=id, + _param = self._start_agents_reboot_serialize( + reboot_operation_input=reboot_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3859,19 +4057,18 @@ def poll_agents_reboot_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_agents_reboot_serialize( + def _start_agents_reboot_serialize( self, - id, + reboot_operation_input, _request_auth, _content_type, _headers, @@ -3891,12 +4088,12 @@ def _poll_agents_reboot_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 reboot_operation_input is not None: + _body_params = reboot_operation_input # set the HTTP header `Accept` @@ -3907,6 +4104,19 @@ def _poll_agents_reboot_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] = [ @@ -3915,8 +4125,8 @@ def _poll_agents_reboot_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/reboot/{id}', + method='POST', + resource_path='/api/v2/agents/operations/reboot', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3933,9 +4143,9 @@ def _poll_agents_reboot_serialize( @validate_call - def poll_agents_release( + def start_agents_release( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + release_operation_input: Optional[ReleaseOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3949,12 +4159,12 @@ def poll_agents_release( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_agents_release + """start_agents_release - Get the state of an ongoing operation. + Releases all the agents from the given session. - :param id: The ID of the async operation. (required) - :type id: int + :param release_operation_input: + :type release_operation_input: ReleaseOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3977,8 +4187,8 @@ def poll_agents_release( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_release_serialize( - id=id, + _param = self._start_agents_release_serialize( + release_operation_input=release_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3986,20 +4196,19 @@ def poll_agents_release( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_release_with_http_info( + def start_agents_release_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + release_operation_input: Optional[ReleaseOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4013,12 +4222,12 @@ def poll_agents_release_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_agents_release + """start_agents_release - Get the state of an ongoing operation. + Releases all the agents from the given session. - :param id: The ID of the async operation. (required) - :type id: int + :param release_operation_input: + :type release_operation_input: ReleaseOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4041,8 +4250,8 @@ def poll_agents_release_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_release_serialize( - id=id, + _param = self._start_agents_release_serialize( + release_operation_input=release_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4050,20 +4259,19 @@ def poll_agents_release_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_release_without_preload_content( + def start_agents_release_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + release_operation_input: Optional[ReleaseOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4077,12 +4285,12 @@ def poll_agents_release_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_agents_release + """start_agents_release - Get the state of an ongoing operation. + Releases all the agents from the given session. - :param id: The ID of the async operation. (required) - :type id: int + :param release_operation_input: + :type release_operation_input: ReleaseOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4105,8 +4313,8 @@ def poll_agents_release_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_release_serialize( - id=id, + _param = self._start_agents_release_serialize( + release_operation_input=release_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4114,19 +4322,18 @@ def poll_agents_release_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_agents_release_serialize( + def _start_agents_release_serialize( self, - id, + release_operation_input, _request_auth, _content_type, _headers, @@ -4146,12 +4353,12 @@ def _poll_agents_release_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 release_operation_input is not None: + _body_params = release_operation_input # set the HTTP header `Accept` @@ -4162,6 +4369,19 @@ def _poll_agents_release_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4170,8 +4390,8 @@ def _poll_agents_release_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/release/{id}', + method='POST', + resource_path='/api/v2/agents/operations/release', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4188,9 +4408,9 @@ def _poll_agents_release_serialize( @validate_call - def poll_agents_reserve( + def start_agents_reserve( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + reserve_operation_input: Optional[ReserveOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4204,12 +4424,12 @@ def poll_agents_reserve( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_agents_reserve + """start_agents_reserve - Get the state of an ongoing operation. + Reserves all the agents from the given session. - :param id: The ID of the async operation. (required) - :type id: int + :param reserve_operation_input: + :type reserve_operation_input: ReserveOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4232,8 +4452,8 @@ def poll_agents_reserve( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_reserve_serialize( - id=id, + _param = self._start_agents_reserve_serialize( + reserve_operation_input=reserve_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4241,20 +4461,19 @@ def poll_agents_reserve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_reserve_with_http_info( + def start_agents_reserve_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + reserve_operation_input: Optional[ReserveOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4268,12 +4487,12 @@ def poll_agents_reserve_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_agents_reserve + """start_agents_reserve - Get the state of an ongoing operation. + Reserves all the agents from the given session. - :param id: The ID of the async operation. (required) - :type id: int + :param reserve_operation_input: + :type reserve_operation_input: ReserveOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4296,8 +4515,8 @@ def poll_agents_reserve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_reserve_serialize( - id=id, + _param = self._start_agents_reserve_serialize( + reserve_operation_input=reserve_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4305,20 +4524,19 @@ def poll_agents_reserve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_reserve_without_preload_content( + def start_agents_reserve_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + reserve_operation_input: Optional[ReserveOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4332,12 +4550,12 @@ def poll_agents_reserve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_agents_reserve + """start_agents_reserve - Get the state of an ongoing operation. + Reserves all the agents from the given session. - :param id: The ID of the async operation. (required) - :type id: int + :param reserve_operation_input: + :type reserve_operation_input: ReserveOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4360,8 +4578,8 @@ def poll_agents_reserve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_reserve_serialize( - id=id, + _param = self._start_agents_reserve_serialize( + reserve_operation_input=reserve_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4369,19 +4587,18 @@ def poll_agents_reserve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_agents_reserve_serialize( + def _start_agents_reserve_serialize( self, - id, + reserve_operation_input, _request_auth, _content_type, _headers, @@ -4401,12 +4618,12 @@ def _poll_agents_reserve_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 reserve_operation_input is not None: + _body_params = reserve_operation_input # set the HTTP header `Accept` @@ -4417,6 +4634,19 @@ def _poll_agents_reserve_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] = [ @@ -4425,8 +4655,8 @@ def _poll_agents_reserve_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/reserve/{id}', + method='POST', + resource_path='/api/v2/agents/operations/reserve', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4443,9 +4673,9 @@ def _poll_agents_reserve_serialize( @validate_call - def poll_agents_set_dpdk_mode( + def start_agents_set_dpdk_mode( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4459,12 +4689,12 @@ def poll_agents_set_dpdk_mode( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_agents_set_dpdk_mode + """start_agents_set_dpdk_mode - Get the state of an ongoing operation. + Enable/disable DPDK for a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param set_dpdk_mode_operation_input: + :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4487,8 +4717,8 @@ def poll_agents_set_dpdk_mode( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, + _param = self._start_agents_set_dpdk_mode_serialize( + set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4496,20 +4726,19 @@ def poll_agents_set_dpdk_mode( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_set_dpdk_mode_with_http_info( + def start_agents_set_dpdk_mode_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4523,12 +4752,12 @@ def poll_agents_set_dpdk_mode_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_agents_set_dpdk_mode + """start_agents_set_dpdk_mode - Get the state of an ongoing operation. + Enable/disable DPDK for a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param set_dpdk_mode_operation_input: + :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4551,8 +4780,8 @@ def poll_agents_set_dpdk_mode_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, + _param = self._start_agents_set_dpdk_mode_serialize( + set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4560,20 +4789,19 @@ def poll_agents_set_dpdk_mode_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_set_dpdk_mode_without_preload_content( + def start_agents_set_dpdk_mode_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4587,12 +4815,12 @@ def poll_agents_set_dpdk_mode_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_agents_set_dpdk_mode + """start_agents_set_dpdk_mode - Get the state of an ongoing operation. + Enable/disable DPDK for a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param set_dpdk_mode_operation_input: + :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4615,8 +4843,8 @@ def poll_agents_set_dpdk_mode_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, + _param = self._start_agents_set_dpdk_mode_serialize( + set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4624,19 +4852,18 @@ def poll_agents_set_dpdk_mode_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_agents_set_dpdk_mode_serialize( + def _start_agents_set_dpdk_mode_serialize( self, - id, + set_dpdk_mode_operation_input, _request_auth, _content_type, _headers, @@ -4656,12 +4883,12 @@ def _poll_agents_set_dpdk_mode_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 set_dpdk_mode_operation_input is not None: + _body_params = set_dpdk_mode_operation_input # set the HTTP header `Accept` @@ -4672,6 +4899,19 @@ def _poll_agents_set_dpdk_mode_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] = [ @@ -4680,8 +4920,8 @@ def _poll_agents_set_dpdk_mode_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/set-dpdk-mode/{id}', + method='POST', + resource_path='/api/v2/agents/operations/set-dpdk-mode', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4698,9 +4938,9 @@ def _poll_agents_set_dpdk_mode_serialize( @validate_call - def poll_agents_set_ntp( + def start_agents_set_ntp( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + set_ntp_operation_input: Optional[SetNtpOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4714,12 +4954,12 @@ def poll_agents_set_ntp( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_agents_set_ntp + """start_agents_set_ntp - Get the state of an ongoing operation. + Set the NTP servers for a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param set_ntp_operation_input: + :type set_ntp_operation_input: SetNtpOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4742,8 +4982,8 @@ def poll_agents_set_ntp( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_set_ntp_serialize( - id=id, + _param = self._start_agents_set_ntp_serialize( + set_ntp_operation_input=set_ntp_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4751,20 +4991,19 @@ def poll_agents_set_ntp( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_set_ntp_with_http_info( + def start_agents_set_ntp_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + set_ntp_operation_input: Optional[SetNtpOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4778,12 +5017,12 @@ def poll_agents_set_ntp_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_agents_set_ntp + """start_agents_set_ntp - Get the state of an ongoing operation. + Set the NTP servers for a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param set_ntp_operation_input: + :type set_ntp_operation_input: SetNtpOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4806,8 +5045,8 @@ def poll_agents_set_ntp_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_set_ntp_serialize( - id=id, + _param = self._start_agents_set_ntp_serialize( + set_ntp_operation_input=set_ntp_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4815,20 +5054,19 @@ def poll_agents_set_ntp_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_set_ntp_without_preload_content( + def start_agents_set_ntp_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + set_ntp_operation_input: Optional[SetNtpOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4842,12 +5080,12 @@ def poll_agents_set_ntp_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_agents_set_ntp + """start_agents_set_ntp - Get the state of an ongoing operation. + Set the NTP servers for a list of agents. - :param id: The ID of the async operation. (required) - :type id: int + :param set_ntp_operation_input: + :type set_ntp_operation_input: SetNtpOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4870,8 +5108,8 @@ def poll_agents_set_ntp_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_set_ntp_serialize( - id=id, + _param = self._start_agents_set_ntp_serialize( + set_ntp_operation_input=set_ntp_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4879,19 +5117,18 @@ def poll_agents_set_ntp_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_agents_set_ntp_serialize( + def _start_agents_set_ntp_serialize( self, - id, + set_ntp_operation_input, _request_auth, _content_type, _headers, @@ -4911,12 +5148,12 @@ def _poll_agents_set_ntp_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 set_ntp_operation_input is not None: + _body_params = set_ntp_operation_input # set the HTTP header `Accept` @@ -4927,6 +5164,19 @@ def _poll_agents_set_ntp_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] = [ @@ -4935,8 +5185,8 @@ def _poll_agents_set_ntp_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/set-ntp/{id}', + method='POST', + resource_path='/api/v2/agents/operations/set-ntp', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4953,9 +5203,8 @@ def _poll_agents_set_ntp_serialize( @validate_call - def poll_agents_update( + def start_agents_update( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4969,12 +5218,10 @@ def poll_agents_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_agents_update + """start_agents_update - Get the state of an ongoing operation. + Update agents to the recommended version. - :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 @@ -4997,8 +5244,7 @@ def poll_agents_update( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_update_serialize( - id=id, + _param = self._start_agents_update_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5006,20 +5252,18 @@ def poll_agents_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_update_with_http_info( + def start_agents_update_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5033,12 +5277,10 @@ def poll_agents_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_agents_update + """start_agents_update - Get the state of an ongoing operation. + Update agents to the recommended version. - :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 @@ -5061,8 +5303,7 @@ def poll_agents_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_agents_update_serialize( - id=id, + _param = self._start_agents_update_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5070,20 +5311,18 @@ def poll_agents_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_agents_update_without_preload_content( + def start_agents_update_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5097,3121 +5336,10 @@ def poll_agents_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_agents_update + """start_agents_update - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_update_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_update_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/update/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_clear_port_ownership( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_clear_port_ownership_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_clear_port_ownership_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_clear_port_ownership_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/clear-port-ownership/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_power_cycle_nodes( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_power_cycle_nodes_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_power_cycle_nodes_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_power_cycle_nodes_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/power-cycle-nodes/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_reboot_port( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_reboot_port_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_reboot_port_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_reboot_port_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/reboot-port/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_set_app( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_app_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_app_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_set_app_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/set-app/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_set_node_aggregation( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_node_aggregation - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_node_aggregation_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_node_aggregation - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_node_aggregation_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_set_node_aggregation - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_set_node_aggregation_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/set-node-aggregation/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_set_port_link_state( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_port_link_state - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_port_link_state_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_port_link_state - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_port_link_state_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_set_port_link_state - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_set_port_link_state_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/set-port-link-state/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_agents_batch_delete( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_agents_batch_delete - - Remove multiple agents. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_batch_delete_with_http_info( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_agents_batch_delete - - Remove multiple agents. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_batch_delete_without_preload_content( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_agents_batch_delete - - Remove multiple agents. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_agents_batch_delete_serialize( - self, - start_agents_batch_delete_request_inner, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'StartAgentsBatchDeleteRequestInner': '', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if start_agents_batch_delete_request_inner is not None: - _body_params = start_agents_batch_delete_request_inner - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/agents/operations/batch-delete', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_agents_export_files( - self, - export_files_operation_input: Optional[ExportFilesOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_agents_export_files - - Sends export files requests to a list of agents. - - :param export_files_operation_input: - :type export_files_operation_input: ExportFilesOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_export_files_serialize( - export_files_operation_input=export_files_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_export_files_with_http_info( - self, - export_files_operation_input: Optional[ExportFilesOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_agents_export_files - - Sends export files requests to a list of agents. - - :param export_files_operation_input: - :type export_files_operation_input: ExportFilesOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_export_files_serialize( - export_files_operation_input=export_files_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_export_files_without_preload_content( - self, - export_files_operation_input: Optional[ExportFilesOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_agents_export_files - - Sends export files requests to a list of agents. - - :param export_files_operation_input: - :type export_files_operation_input: ExportFilesOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_export_files_serialize( - export_files_operation_input=export_files_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_agents_export_files_serialize( - self, - export_files_operation_input, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if export_files_operation_input is not None: - _body_params = export_files_operation_input - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/agents/operations/exportFiles', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_agents_reboot( - self, - reboot_operation_input: Optional[RebootOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_agents_reboot - - Reboot the agents specified in the request. - - :param reboot_operation_input: - :type reboot_operation_input: RebootOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_reboot_serialize( - reboot_operation_input=reboot_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_reboot_with_http_info( - self, - reboot_operation_input: Optional[RebootOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_agents_reboot - - Reboot the agents specified in the request. - - :param reboot_operation_input: - :type reboot_operation_input: RebootOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_reboot_serialize( - reboot_operation_input=reboot_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_reboot_without_preload_content( - self, - reboot_operation_input: Optional[RebootOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_agents_reboot - - Reboot the agents specified in the request. - - :param reboot_operation_input: - :type reboot_operation_input: RebootOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_reboot_serialize( - reboot_operation_input=reboot_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_agents_reboot_serialize( - self, - reboot_operation_input, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if reboot_operation_input is not None: - _body_params = reboot_operation_input - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/agents/operations/reboot', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_agents_release( - self, - release_operation_input: Optional[ReleaseOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_agents_release - - Releases all the agents from the given session. - - :param release_operation_input: - :type release_operation_input: ReleaseOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_release_serialize( - release_operation_input=release_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_release_with_http_info( - self, - release_operation_input: Optional[ReleaseOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_agents_release - - Releases all the agents from the given session. - - :param release_operation_input: - :type release_operation_input: ReleaseOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_release_serialize( - release_operation_input=release_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_release_without_preload_content( - self, - release_operation_input: Optional[ReleaseOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_agents_release - - Releases all the agents from the given session. - - :param release_operation_input: - :type release_operation_input: ReleaseOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_release_serialize( - release_operation_input=release_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_agents_release_serialize( - self, - release_operation_input, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if release_operation_input is not None: - _body_params = release_operation_input - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/agents/operations/release', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_agents_reserve( - self, - reserve_operation_input: Optional[ReserveOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_agents_reserve - - Reserves all the agents from the given session. - - :param reserve_operation_input: - :type reserve_operation_input: ReserveOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_reserve_serialize( - reserve_operation_input=reserve_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_reserve_with_http_info( - self, - reserve_operation_input: Optional[ReserveOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_agents_reserve - - Reserves all the agents from the given session. - - :param reserve_operation_input: - :type reserve_operation_input: ReserveOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_reserve_serialize( - reserve_operation_input=reserve_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_reserve_without_preload_content( - self, - reserve_operation_input: Optional[ReserveOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_agents_reserve - - Reserves all the agents from the given session. - - :param reserve_operation_input: - :type reserve_operation_input: ReserveOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_reserve_serialize( - reserve_operation_input=reserve_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_agents_reserve_serialize( - self, - reserve_operation_input, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if reserve_operation_input is not None: - _body_params = reserve_operation_input - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/agents/operations/reserve', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_agents_set_dpdk_mode( - self, - set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_agents_set_dpdk_mode - - Enable/disable DPDK for a list of agents. - - :param set_dpdk_mode_operation_input: - :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_set_dpdk_mode_serialize( - set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_set_dpdk_mode_with_http_info( - self, - set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_agents_set_dpdk_mode - - Enable/disable DPDK for a list of agents. - - :param set_dpdk_mode_operation_input: - :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_agents_set_dpdk_mode_serialize( - set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_agents_set_dpdk_mode_without_preload_content( - self, - set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_agents_set_dpdk_mode - - Enable/disable DPDK for a list of agents. + Update agents to the recommended version. - :param set_dpdk_mode_operation_input: - :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8234,8 +5362,7 @@ def start_agents_set_dpdk_mode_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_dpdk_mode_serialize( - set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, + _param = self._start_agents_update_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8250,11 +5377,10 @@ def start_agents_set_dpdk_mode_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_agents_set_dpdk_mode_serialize( + def _start_agents_update_serialize( self, - set_dpdk_mode_operation_input, _request_auth, _content_type, _headers, @@ -8278,8 +5404,6 @@ def _start_agents_set_dpdk_mode_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_dpdk_mode_operation_input is not None: - _body_params = set_dpdk_mode_operation_input # set the HTTP header `Accept` @@ -8290,19 +5414,6 @@ def _start_agents_set_dpdk_mode_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] = [ @@ -8312,7 +5423,7 @@ def _start_agents_set_dpdk_mode_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/set-dpdk-mode', + resource_path='/api/v2/agents/operations/update', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8329,9 +5440,9 @@ def _start_agents_set_dpdk_mode_serialize( @validate_call - def start_agents_set_ntp( + def start_controllers_clear_port_ownership( self, - set_ntp_operation_input: Optional[SetNtpOperationInput] = None, + clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8345,12 +5456,12 @@ def start_agents_set_ntp( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_set_ntp + """start_controllers_clear_port_ownership - Set the NTP servers for a list of agents. + Clear the ownership of the ports. - :param set_ntp_operation_input: - :type set_ntp_operation_input: SetNtpOperationInput + :param clear_ports_ownership_operation: + :type clear_ports_ownership_operation: ClearPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8373,8 +5484,8 @@ def start_agents_set_ntp( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_ntp_serialize( - set_ntp_operation_input=set_ntp_operation_input, + _param = self._start_controllers_clear_port_ownership_serialize( + clear_ports_ownership_operation=clear_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8389,12 +5500,12 @@ def start_agents_set_ntp( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_agents_set_ntp_with_http_info( + def start_controllers_clear_port_ownership_with_http_info( self, - set_ntp_operation_input: Optional[SetNtpOperationInput] = None, + clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8408,12 +5519,12 @@ def start_agents_set_ntp_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_set_ntp + """start_controllers_clear_port_ownership - Set the NTP servers for a list of agents. + Clear the ownership of the ports. - :param set_ntp_operation_input: - :type set_ntp_operation_input: SetNtpOperationInput + :param clear_ports_ownership_operation: + :type clear_ports_ownership_operation: ClearPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8436,8 +5547,8 @@ def start_agents_set_ntp_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_ntp_serialize( - set_ntp_operation_input=set_ntp_operation_input, + _param = self._start_controllers_clear_port_ownership_serialize( + clear_ports_ownership_operation=clear_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8452,12 +5563,12 @@ def start_agents_set_ntp_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_agents_set_ntp_without_preload_content( + def start_controllers_clear_port_ownership_without_preload_content( self, - set_ntp_operation_input: Optional[SetNtpOperationInput] = None, + clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8471,12 +5582,12 @@ def start_agents_set_ntp_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_set_ntp + """start_controllers_clear_port_ownership - Set the NTP servers for a list of agents. + Clear the ownership of the ports. - :param set_ntp_operation_input: - :type set_ntp_operation_input: SetNtpOperationInput + :param clear_ports_ownership_operation: + :type clear_ports_ownership_operation: ClearPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8499,8 +5610,8 @@ def start_agents_set_ntp_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_ntp_serialize( - set_ntp_operation_input=set_ntp_operation_input, + _param = self._start_controllers_clear_port_ownership_serialize( + clear_ports_ownership_operation=clear_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8515,11 +5626,11 @@ def start_agents_set_ntp_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_agents_set_ntp_serialize( + def _start_controllers_clear_port_ownership_serialize( self, - set_ntp_operation_input, + clear_ports_ownership_operation, _request_auth, _content_type, _headers, @@ -8543,8 +5654,8 @@ def _start_agents_set_ntp_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_ntp_operation_input is not None: - _body_params = set_ntp_operation_input + if clear_ports_ownership_operation is not None: + _body_params = clear_ports_ownership_operation # set the HTTP header `Accept` @@ -8577,7 +5688,7 @@ def _start_agents_set_ntp_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/set-ntp', + resource_path='/api/v2/controllers/operations/clear-port-ownership', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8594,8 +5705,9 @@ def _start_agents_set_ntp_serialize( @validate_call - def start_agents_update( + def start_controllers_power_cycle_nodes( self, + nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8609,10 +5721,12 @@ def start_agents_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_update + """start_controllers_power_cycle_nodes - Update agents to the recommended version. + Power cycle the compute nodes. + :param nodes_power_cycle_operation: + :type nodes_power_cycle_operation: NodesPowerCycleOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8635,7 +5749,8 @@ def start_agents_update( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_update_serialize( + _param = self._start_controllers_power_cycle_nodes_serialize( + nodes_power_cycle_operation=nodes_power_cycle_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8650,11 +5765,12 @@ def start_agents_update( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_agents_update_with_http_info( + def start_controllers_power_cycle_nodes_with_http_info( self, + nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8668,10 +5784,12 @@ def start_agents_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_update + """start_controllers_power_cycle_nodes - Update agents to the recommended version. + Power cycle the compute nodes. + :param nodes_power_cycle_operation: + :type nodes_power_cycle_operation: NodesPowerCycleOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8694,7 +5812,8 @@ def start_agents_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_update_serialize( + _param = self._start_controllers_power_cycle_nodes_serialize( + nodes_power_cycle_operation=nodes_power_cycle_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8709,11 +5828,12 @@ def start_agents_update_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_agents_update_without_preload_content( + def start_controllers_power_cycle_nodes_without_preload_content( self, + nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8727,10 +5847,12 @@ def start_agents_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_update + """start_controllers_power_cycle_nodes - Update agents to the recommended version. + Power cycle the compute nodes. + :param nodes_power_cycle_operation: + :type nodes_power_cycle_operation: NodesPowerCycleOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8753,7 +5875,8 @@ def start_agents_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_update_serialize( + _param = self._start_controllers_power_cycle_nodes_serialize( + nodes_power_cycle_operation=nodes_power_cycle_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8768,10 +5891,11 @@ def start_agents_update_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_agents_update_serialize( + def _start_controllers_power_cycle_nodes_serialize( self, + nodes_power_cycle_operation, _request_auth, _content_type, _headers, @@ -8795,6 +5919,8 @@ def _start_agents_update_serialize( # process the header parameters # process the form parameters # process the body parameter + if nodes_power_cycle_operation is not None: + _body_params = nodes_power_cycle_operation # set the HTTP header `Accept` @@ -8805,6 +5931,19 @@ def _start_agents_update_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8814,7 +5953,7 @@ def _start_agents_update_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/update', + resource_path='/api/v2/controllers/operations/power-cycle-nodes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8831,9 +5970,9 @@ def _start_agents_update_serialize( @validate_call - def start_controllers_clear_port_ownership( + def start_controllers_reboot_port( self, - clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, + reboot_ports_operation: Optional[RebootPortsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8847,12 +5986,12 @@ def start_controllers_clear_port_ownership( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_clear_port_ownership + """start_controllers_reboot_port - Clear the ownership of the ports. + Reboot ports. - :param clear_ports_ownership_operation: - :type clear_ports_ownership_operation: ClearPortsOwnershipOperation + :param reboot_ports_operation: + :type reboot_ports_operation: RebootPortsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8875,8 +6014,8 @@ def start_controllers_clear_port_ownership( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_clear_port_ownership_serialize( - clear_ports_ownership_operation=clear_ports_ownership_operation, + _param = self._start_controllers_reboot_port_serialize( + reboot_ports_operation=reboot_ports_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8891,12 +6030,12 @@ def start_controllers_clear_port_ownership( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_clear_port_ownership_with_http_info( + def start_controllers_reboot_port_with_http_info( self, - clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, + reboot_ports_operation: Optional[RebootPortsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8910,12 +6049,12 @@ def start_controllers_clear_port_ownership_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_clear_port_ownership + """start_controllers_reboot_port - Clear the ownership of the ports. + Reboot ports. - :param clear_ports_ownership_operation: - :type clear_ports_ownership_operation: ClearPortsOwnershipOperation + :param reboot_ports_operation: + :type reboot_ports_operation: RebootPortsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8938,8 +6077,8 @@ def start_controllers_clear_port_ownership_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_clear_port_ownership_serialize( - clear_ports_ownership_operation=clear_ports_ownership_operation, + _param = self._start_controllers_reboot_port_serialize( + reboot_ports_operation=reboot_ports_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8954,12 +6093,12 @@ def start_controllers_clear_port_ownership_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_clear_port_ownership_without_preload_content( + def start_controllers_reboot_port_without_preload_content( self, - clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, + reboot_ports_operation: Optional[RebootPortsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8973,12 +6112,12 @@ def start_controllers_clear_port_ownership_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_clear_port_ownership + """start_controllers_reboot_port - Clear the ownership of the ports. + Reboot ports. - :param clear_ports_ownership_operation: - :type clear_ports_ownership_operation: ClearPortsOwnershipOperation + :param reboot_ports_operation: + :type reboot_ports_operation: RebootPortsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9001,8 +6140,8 @@ def start_controllers_clear_port_ownership_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_clear_port_ownership_serialize( - clear_ports_ownership_operation=clear_ports_ownership_operation, + _param = self._start_controllers_reboot_port_serialize( + reboot_ports_operation=reboot_ports_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9017,11 +6156,11 @@ def start_controllers_clear_port_ownership_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_controllers_clear_port_ownership_serialize( + def _start_controllers_reboot_port_serialize( self, - clear_ports_ownership_operation, + reboot_ports_operation, _request_auth, _content_type, _headers, @@ -9045,8 +6184,8 @@ def _start_controllers_clear_port_ownership_serialize( # process the header parameters # process the form parameters # process the body parameter - if clear_ports_ownership_operation is not None: - _body_params = clear_ports_ownership_operation + if reboot_ports_operation is not None: + _body_params = reboot_ports_operation # set the HTTP header `Accept` @@ -9079,7 +6218,7 @@ def _start_controllers_clear_port_ownership_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/clear-port-ownership', + resource_path='/api/v2/controllers/operations/reboot-port', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9096,9 +6235,9 @@ def _start_controllers_clear_port_ownership_serialize( @validate_call - def start_controllers_power_cycle_nodes( + def start_controllers_set_app( self, - nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9112,12 +6251,12 @@ def start_controllers_power_cycle_nodes( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_power_cycle_nodes + """start_controllers_set_app - Power cycle the compute nodes. + Set the active app of the controllers. - :param nodes_power_cycle_operation: - :type nodes_power_cycle_operation: NodesPowerCycleOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9140,8 +6279,8 @@ def start_controllers_power_cycle_nodes( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_power_cycle_nodes_serialize( - nodes_power_cycle_operation=nodes_power_cycle_operation, + _param = self._start_controllers_set_app_serialize( + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9156,12 +6295,12 @@ def start_controllers_power_cycle_nodes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_power_cycle_nodes_with_http_info( + def start_controllers_set_app_with_http_info( self, - nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9175,12 +6314,12 @@ def start_controllers_power_cycle_nodes_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_power_cycle_nodes + """start_controllers_set_app - Power cycle the compute nodes. + Set the active app of the controllers. - :param nodes_power_cycle_operation: - :type nodes_power_cycle_operation: NodesPowerCycleOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9203,8 +6342,8 @@ def start_controllers_power_cycle_nodes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_power_cycle_nodes_serialize( - nodes_power_cycle_operation=nodes_power_cycle_operation, + _param = self._start_controllers_set_app_serialize( + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9219,12 +6358,12 @@ def start_controllers_power_cycle_nodes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_power_cycle_nodes_without_preload_content( + def start_controllers_set_app_without_preload_content( self, - nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9238,12 +6377,12 @@ def start_controllers_power_cycle_nodes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_power_cycle_nodes + """start_controllers_set_app - Power cycle the compute nodes. + Set the active app of the controllers. - :param nodes_power_cycle_operation: - :type nodes_power_cycle_operation: NodesPowerCycleOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9266,8 +6405,8 @@ def start_controllers_power_cycle_nodes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_power_cycle_nodes_serialize( - nodes_power_cycle_operation=nodes_power_cycle_operation, + _param = self._start_controllers_set_app_serialize( + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9282,11 +6421,11 @@ def start_controllers_power_cycle_nodes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_controllers_power_cycle_nodes_serialize( + def _start_controllers_set_app_serialize( self, - nodes_power_cycle_operation, + set_controller_app_operation, _request_auth, _content_type, _headers, @@ -9310,8 +6449,8 @@ def _start_controllers_power_cycle_nodes_serialize( # process the header parameters # process the form parameters # process the body parameter - if nodes_power_cycle_operation is not None: - _body_params = nodes_power_cycle_operation + if set_controller_app_operation is not None: + _body_params = set_controller_app_operation # set the HTTP header `Accept` @@ -9344,7 +6483,7 @@ def _start_controllers_power_cycle_nodes_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/power-cycle-nodes', + resource_path='/api/v2/controllers/operations/set-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9361,9 +6500,9 @@ def _start_controllers_power_cycle_nodes_serialize( @validate_call - def start_controllers_reboot_port( + def start_controllers_set_node_aggregation( self, - reboot_ports_operation: Optional[RebootPortsOperation] = None, + set_aggregation_mode_operation: Optional[SetAggregationModeOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9377,12 +6516,12 @@ def start_controllers_reboot_port( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_reboot_port + """start_controllers_set_node_aggregation - Reboot ports. + Set the aggregation mode of the compute nodes. - :param reboot_ports_operation: - :type reboot_ports_operation: RebootPortsOperation + :param set_aggregation_mode_operation: + :type set_aggregation_mode_operation: SetAggregationModeOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9405,8 +6544,8 @@ def start_controllers_reboot_port( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_reboot_port_serialize( - reboot_ports_operation=reboot_ports_operation, + _param = self._start_controllers_set_node_aggregation_serialize( + set_aggregation_mode_operation=set_aggregation_mode_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9421,12 +6560,12 @@ def start_controllers_reboot_port( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_reboot_port_with_http_info( + def start_controllers_set_node_aggregation_with_http_info( self, - reboot_ports_operation: Optional[RebootPortsOperation] = None, + set_aggregation_mode_operation: Optional[SetAggregationModeOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9440,12 +6579,12 @@ def start_controllers_reboot_port_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_reboot_port + """start_controllers_set_node_aggregation - Reboot ports. + Set the aggregation mode of the compute nodes. - :param reboot_ports_operation: - :type reboot_ports_operation: RebootPortsOperation + :param set_aggregation_mode_operation: + :type set_aggregation_mode_operation: SetAggregationModeOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9468,8 +6607,8 @@ def start_controllers_reboot_port_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_reboot_port_serialize( - reboot_ports_operation=reboot_ports_operation, + _param = self._start_controllers_set_node_aggregation_serialize( + set_aggregation_mode_operation=set_aggregation_mode_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9484,12 +6623,12 @@ def start_controllers_reboot_port_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_reboot_port_without_preload_content( + def start_controllers_set_node_aggregation_without_preload_content( self, - reboot_ports_operation: Optional[RebootPortsOperation] = None, + set_aggregation_mode_operation: Optional[SetAggregationModeOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9503,12 +6642,12 @@ def start_controllers_reboot_port_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_reboot_port + """start_controllers_set_node_aggregation - Reboot ports. + Set the aggregation mode of the compute nodes. - :param reboot_ports_operation: - :type reboot_ports_operation: RebootPortsOperation + :param set_aggregation_mode_operation: + :type set_aggregation_mode_operation: SetAggregationModeOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9531,8 +6670,8 @@ def start_controllers_reboot_port_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_reboot_port_serialize( - reboot_ports_operation=reboot_ports_operation, + _param = self._start_controllers_set_node_aggregation_serialize( + set_aggregation_mode_operation=set_aggregation_mode_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9547,11 +6686,11 @@ def start_controllers_reboot_port_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_controllers_reboot_port_serialize( + def _start_controllers_set_node_aggregation_serialize( self, - reboot_ports_operation, + set_aggregation_mode_operation, _request_auth, _content_type, _headers, @@ -9575,8 +6714,8 @@ def _start_controllers_reboot_port_serialize( # process the header parameters # process the form parameters # process the body parameter - if reboot_ports_operation is not None: - _body_params = reboot_ports_operation + if set_aggregation_mode_operation is not None: + _body_params = set_aggregation_mode_operation # set the HTTP header `Accept` @@ -9609,7 +6748,7 @@ def _start_controllers_reboot_port_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/reboot-port', + resource_path='/api/v2/controllers/operations/set-node-aggregation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9626,9 +6765,9 @@ def _start_controllers_reboot_port_serialize( @validate_call - def start_controllers_set_app( + def start_controllers_set_node_app( self, - set_app_operation: Optional[SetAppOperation] = None, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9642,12 +6781,12 @@ def start_controllers_set_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_set_app + """start_controllers_set_node_app - Set the active app of the controllers. + Set the active app of the compute nodes. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9670,8 +6809,8 @@ def start_controllers_set_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9686,12 +6825,12 @@ def start_controllers_set_app( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_set_app_with_http_info( + def start_controllers_set_node_app_with_http_info( self, - set_app_operation: Optional[SetAppOperation] = None, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9705,12 +6844,12 @@ def start_controllers_set_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_set_app + """start_controllers_set_node_app - Set the active app of the controllers. + Set the active app of the compute nodes. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9733,8 +6872,8 @@ def start_controllers_set_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9749,12 +6888,12 @@ def start_controllers_set_app_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_set_app_without_preload_content( + def start_controllers_set_node_app_without_preload_content( self, - set_app_operation: Optional[SetAppOperation] = None, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9768,12 +6907,12 @@ def start_controllers_set_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_set_app + """start_controllers_set_node_app - Set the active app of the controllers. + Set the active app of the compute nodes. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9796,8 +6935,8 @@ def start_controllers_set_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9812,11 +6951,11 @@ def start_controllers_set_app_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_controllers_set_app_serialize( + def _start_controllers_set_node_app_serialize( self, - set_app_operation, + set_nodes_app_operation, _request_auth, _content_type, _headers, @@ -9840,8 +6979,8 @@ def _start_controllers_set_app_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_app_operation is not None: - _body_params = set_app_operation + if set_nodes_app_operation is not None: + _body_params = set_nodes_app_operation # set the HTTP header `Accept` @@ -9874,7 +7013,7 @@ def _start_controllers_set_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/set-app', + resource_path='/api/v2/controllers/operations/set-node-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9891,9 +7030,9 @@ def _start_controllers_set_app_serialize( @validate_call - def start_controllers_set_node_aggregation( + def start_controllers_set_port_link_state( self, - set_aggregation_mode_operation: Optional[SetAggregationModeOperation] = None, + set_link_state_operation: Optional[SetLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9907,12 +7046,12 @@ def start_controllers_set_node_aggregation( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_set_node_aggregation + """start_controllers_set_port_link_state - Set the aggregation mode of the compute nodes. + Set the link state of the ports. - :param set_aggregation_mode_operation: - :type set_aggregation_mode_operation: SetAggregationModeOperation + :param set_link_state_operation: + :type set_link_state_operation: SetLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9935,8 +7074,8 @@ def start_controllers_set_node_aggregation( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_node_aggregation_serialize( - set_aggregation_mode_operation=set_aggregation_mode_operation, + _param = self._start_controllers_set_port_link_state_serialize( + set_link_state_operation=set_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9951,12 +7090,12 @@ def start_controllers_set_node_aggregation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_set_node_aggregation_with_http_info( + def start_controllers_set_port_link_state_with_http_info( self, - set_aggregation_mode_operation: Optional[SetAggregationModeOperation] = None, + set_link_state_operation: Optional[SetLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9970,12 +7109,12 @@ def start_controllers_set_node_aggregation_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_set_node_aggregation + """start_controllers_set_port_link_state - Set the aggregation mode of the compute nodes. + Set the link state of the ports. - :param set_aggregation_mode_operation: - :type set_aggregation_mode_operation: SetAggregationModeOperation + :param set_link_state_operation: + :type set_link_state_operation: SetLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9998,8 +7137,8 @@ def start_controllers_set_node_aggregation_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_node_aggregation_serialize( - set_aggregation_mode_operation=set_aggregation_mode_operation, + _param = self._start_controllers_set_port_link_state_serialize( + set_link_state_operation=set_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10014,12 +7153,12 @@ def start_controllers_set_node_aggregation_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_set_node_aggregation_without_preload_content( + def start_controllers_set_port_link_state_without_preload_content( self, - set_aggregation_mode_operation: Optional[SetAggregationModeOperation] = None, + set_link_state_operation: Optional[SetLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10033,12 +7172,12 @@ def start_controllers_set_node_aggregation_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_set_node_aggregation + """start_controllers_set_port_link_state - Set the aggregation mode of the compute nodes. + Set the link state of the ports. - :param set_aggregation_mode_operation: - :type set_aggregation_mode_operation: SetAggregationModeOperation + :param set_link_state_operation: + :type set_link_state_operation: SetLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10061,8 +7200,8 @@ def start_controllers_set_node_aggregation_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_node_aggregation_serialize( - set_aggregation_mode_operation=set_aggregation_mode_operation, + _param = self._start_controllers_set_port_link_state_serialize( + set_link_state_operation=set_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10077,11 +7216,11 @@ def start_controllers_set_node_aggregation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_controllers_set_node_aggregation_serialize( + def _start_controllers_set_port_link_state_serialize( self, - set_aggregation_mode_operation, + set_link_state_operation, _request_auth, _content_type, _headers, @@ -10105,8 +7244,8 @@ def _start_controllers_set_node_aggregation_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_aggregation_mode_operation is not None: - _body_params = set_aggregation_mode_operation + if set_link_state_operation is not None: + _body_params = set_link_state_operation # set the HTTP header `Accept` @@ -10139,7 +7278,7 @@ def _start_controllers_set_node_aggregation_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/set-node-aggregation', + resource_path='/api/v2/controllers/operations/set-port-link-state', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10156,9 +7295,9 @@ def _start_controllers_set_node_aggregation_serialize( @validate_call - def start_controllers_set_port_link_state( + def start_controllers_update_port_tags( self, - set_link_state_operation: Optional[SetLinkStateOperation] = None, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10172,12 +7311,12 @@ def start_controllers_set_port_link_state( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_set_port_link_state + """start_controllers_update_port_tags - Set the link state of the ports. + Update port tags. - :param set_link_state_operation: - :type set_link_state_operation: SetLinkStateOperation + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10200,8 +7339,8 @@ def start_controllers_set_port_link_state( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_port_link_state_serialize( - set_link_state_operation=set_link_state_operation, + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10216,12 +7355,12 @@ def start_controllers_set_port_link_state( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_set_port_link_state_with_http_info( + def start_controllers_update_port_tags_with_http_info( self, - set_link_state_operation: Optional[SetLinkStateOperation] = None, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10235,12 +7374,12 @@ def start_controllers_set_port_link_state_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_set_port_link_state + """start_controllers_update_port_tags - Set the link state of the ports. + Update port tags. - :param set_link_state_operation: - :type set_link_state_operation: SetLinkStateOperation + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10263,8 +7402,8 @@ def start_controllers_set_port_link_state_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_port_link_state_serialize( - set_link_state_operation=set_link_state_operation, + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10279,12 +7418,12 @@ def start_controllers_set_port_link_state_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_controllers_set_port_link_state_without_preload_content( + def start_controllers_update_port_tags_without_preload_content( self, - set_link_state_operation: Optional[SetLinkStateOperation] = None, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10298,12 +7437,12 @@ def start_controllers_set_port_link_state_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_set_port_link_state + """start_controllers_update_port_tags - Set the link state of the ports. + Update port tags. - :param set_link_state_operation: - :type set_link_state_operation: SetLinkStateOperation + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10326,8 +7465,8 @@ def start_controllers_set_port_link_state_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_port_link_state_serialize( - set_link_state_operation=set_link_state_operation, + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10342,11 +7481,11 @@ def start_controllers_set_port_link_state_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_controllers_set_port_link_state_serialize( + def _start_controllers_update_port_tags_serialize( self, - set_link_state_operation, + update_port_tags_operation, _request_auth, _content_type, _headers, @@ -10370,8 +7509,8 @@ def _start_controllers_set_port_link_state_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_link_state_operation is not None: - _body_params = set_link_state_operation + if update_port_tags_operation is not None: + _body_params = update_port_tags_operation # set the HTTP header `Accept` @@ -10404,7 +7543,7 @@ def _start_controllers_set_port_link_state_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/set-port-link-state', + resource_path='/api/v2/controllers/operations/update-port-tags', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index b415caa..23692b0 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -33,6 +33,7 @@ from cyperf.models.export_apps_operation_input import ExportAppsOperationInput from cyperf.models.find_param_matches_operation import FindParamMatchesOperation from cyperf.models.generic_file import GenericFile +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_categories_operation import GetCategoriesOperation from cyperf.models.get_resources_application_types200_response import GetResourcesApplicationTypes200Response @@ -125,7 +126,7 @@ def delete_resources_capture( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_capture_with_http_info( @@ -188,7 +189,7 @@ def delete_resources_capture_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_capture_without_preload_content( @@ -251,7 +252,7 @@ def delete_resources_capture_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_capture_serialize( self, @@ -379,7 +380,7 @@ def delete_resources_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_certificate_with_http_info( @@ -444,7 +445,7 @@ def delete_resources_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_certificate_without_preload_content( @@ -509,7 +510,7 @@ def delete_resources_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_certificate_serialize( self, @@ -637,7 +638,7 @@ def delete_resources_custom_fuzzing_script( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_custom_fuzzing_script_with_http_info( @@ -702,7 +703,7 @@ def delete_resources_custom_fuzzing_script_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_custom_fuzzing_script_without_preload_content( @@ -767,7 +768,7 @@ def delete_resources_custom_fuzzing_script_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_custom_fuzzing_script_serialize( self, @@ -895,7 +896,7 @@ def delete_resources_flow_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_flow_library_with_http_info( @@ -960,7 +961,7 @@ def delete_resources_flow_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_flow_library_without_preload_content( @@ -1025,7 +1026,7 @@ def delete_resources_flow_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_flow_library_serialize( self, @@ -1153,7 +1154,7 @@ def delete_resources_global_playlist( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_global_playlist_with_http_info( @@ -1218,7 +1219,7 @@ def delete_resources_global_playlist_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_global_playlist_without_preload_content( @@ -1283,7 +1284,7 @@ def delete_resources_global_playlist_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_global_playlist_serialize( self, @@ -1411,7 +1412,7 @@ def delete_resources_http_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_http_library_with_http_info( @@ -1476,7 +1477,7 @@ def delete_resources_http_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_http_library_without_preload_content( @@ -1541,7 +1542,7 @@ def delete_resources_http_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_http_library_serialize( self, @@ -1669,7 +1670,7 @@ def delete_resources_media_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_file_with_http_info( @@ -1734,7 +1735,7 @@ def delete_resources_media_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_file_without_preload_content( @@ -1799,7 +1800,7 @@ def delete_resources_media_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_media_file_serialize( self, @@ -1927,7 +1928,7 @@ def delete_resources_media_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_library_with_http_info( @@ -1992,7 +1993,7 @@ def delete_resources_media_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_library_without_preload_content( @@ -2057,7 +2058,7 @@ def delete_resources_media_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_media_library_serialize( self, @@ -2185,7 +2186,7 @@ def delete_resources_other_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_other_library_with_http_info( @@ -2250,7 +2251,7 @@ def delete_resources_other_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_other_library_without_preload_content( @@ -2315,7 +2316,7 @@ def delete_resources_other_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_other_library_serialize( self, @@ -2443,7 +2444,7 @@ def delete_resources_payload( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_payload_with_http_info( @@ -2508,7 +2509,7 @@ def delete_resources_payload_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_payload_without_preload_content( @@ -2573,7 +2574,7 @@ def delete_resources_payload_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_payload_serialize( self, @@ -2701,7 +2702,7 @@ def delete_resources_pcap( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_pcap_with_http_info( @@ -2766,7 +2767,7 @@ def delete_resources_pcap_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_pcap_without_preload_content( @@ -2831,7 +2832,7 @@ def delete_resources_pcap_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_pcap_serialize( self, @@ -2959,7 +2960,7 @@ def delete_resources_playlist( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_playlist_with_http_info( @@ -3024,7 +3025,7 @@ def delete_resources_playlist_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_playlist_without_preload_content( @@ -3089,7 +3090,7 @@ def delete_resources_playlist_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_playlist_serialize( self, @@ -3217,7 +3218,7 @@ def delete_resources_sip_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_sip_library_with_http_info( @@ -3282,7 +3283,7 @@ def delete_resources_sip_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_sip_library_without_preload_content( @@ -3347,7 +3348,7 @@ def delete_resources_sip_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_sip_library_serialize( self, @@ -3475,7 +3476,7 @@ def delete_resources_stats_profile( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_stats_profile_with_http_info( @@ -3540,7 +3541,7 @@ def delete_resources_stats_profile_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_stats_profile_without_preload_content( @@ -3605,7 +3606,7 @@ def delete_resources_stats_profile_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_stats_profile_serialize( self, @@ -3733,7 +3734,7 @@ def delete_resources_tls_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_certificate_with_http_info( @@ -3798,7 +3799,7 @@ def delete_resources_tls_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_certificate_without_preload_content( @@ -3863,7 +3864,7 @@ def delete_resources_tls_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_certificate_serialize( self, @@ -3991,7 +3992,7 @@ def delete_resources_tls_dh( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_dh_with_http_info( @@ -4056,7 +4057,7 @@ def delete_resources_tls_dh_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_dh_without_preload_content( @@ -4121,7 +4122,7 @@ def delete_resources_tls_dh_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_dh_serialize( self, @@ -4249,7 +4250,7 @@ def delete_resources_tls_key( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_key_with_http_info( @@ -4314,7 +4315,7 @@ def delete_resources_tls_key_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_key_without_preload_content( @@ -4379,7 +4380,7 @@ def delete_resources_tls_key_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_key_serialize( self, @@ -4509,7 +4510,7 @@ def delete_resources_user_defined_app( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_user_defined_app_with_http_info( @@ -4576,7 +4577,7 @@ def delete_resources_user_defined_app_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_user_defined_app_without_preload_content( @@ -4643,7 +4644,7 @@ def delete_resources_user_defined_app_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_user_defined_app_serialize( self, @@ -4709,11 +4710,9 @@ def _delete_resources_user_defined_app_serialize( @validate_call - def get_capture_flows( + def delete_resources_voice_custom_flow( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4726,16 +4725,13 @@ def get_capture_flows( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[AppFlow]: - """get_capture_flows + ) -> None: + """delete_resources_voice_custom_flow + Delete a particular voice custom flow. - :param capture_id: The ID of the capture. (required) - :type capture_id: str - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4758,10 +4754,8 @@ def get_capture_flows( :return: Returns the result object. """ # noqa: E501 - _param = self._get_capture_flows_serialize( - capture_id=capture_id, - take=take, - skip=skip, + _param = self._delete_resources_voice_custom_flow_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4769,7 +4763,8 @@ def get_capture_flows( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppFlow]", + '204': None, + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4777,14 +4772,12 @@ def get_capture_flows( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_capture_flows_with_http_info( + def delete_resources_voice_custom_flow_with_http_info( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4797,16 +4790,13 @@ def get_capture_flows_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[AppFlow]]: - """get_capture_flows + ) -> ApiResponse[None]: + """delete_resources_voice_custom_flow + Delete a particular voice custom flow. - :param capture_id: The ID of the capture. (required) - :type capture_id: str - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4829,10 +4819,8 @@ def get_capture_flows_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_capture_flows_serialize( - capture_id=capture_id, - take=take, - skip=skip, + _param = self._delete_resources_voice_custom_flow_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4840,7 +4828,8 @@ def get_capture_flows_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppFlow]", + '204': None, + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4848,14 +4837,12 @@ def get_capture_flows_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_capture_flows_without_preload_content( + def delete_resources_voice_custom_flow_without_preload_content( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4869,15 +4856,12 @@ def get_capture_flows_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_capture_flows + """delete_resources_voice_custom_flow + Delete a particular voice custom flow. - :param capture_id: The ID of the capture. (required) - :type capture_id: str - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4900,10 +4884,8 @@ def get_capture_flows_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_capture_flows_serialize( - capture_id=capture_id, - take=take, - skip=skip, + _param = self._delete_resources_voice_custom_flow_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4911,7 +4893,8 @@ def get_capture_flows_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppFlow]", + '204': None, + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4919,13 +4902,11 @@ def get_capture_flows_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_capture_flows_serialize( + def _delete_resources_voice_custom_flow_serialize( self, - capture_id, - take, - skip, + voice_custom_flow_id, _request_auth, _content_type, _headers, @@ -4945,17 +4926,9 @@ def _get_capture_flows_serialize( _body_params: Optional[bytes] = None # process the path parameters - if capture_id is not None: - _path_params['captureId'] = capture_id + if voice_custom_flow_id is not None: + _path_params['voiceCustomFlowId'] = voice_custom_flow_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -4977,8 +4950,8 @@ def _get_capture_flows_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/captures/{captureId}/flows', + method='DELETE', + resource_path='/api/v2/resources/voice-custom-flows/{voiceCustomFlowId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4995,10 +4968,9 @@ def _get_capture_flows_serialize( @validate_call - def get_flow_exchanges( + def get_capture_flows( self, capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - flow_id: Annotated[StrictStr, Field(description="The ID of the flow.")], take: Annotated[Optional[StrictInt], 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[ @@ -5013,14 +4985,12 @@ def get_flow_exchanges( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[AppExchange]: - """get_flow_exchanges + ) -> List[AppFlow]: + """get_capture_flows :param capture_id: The ID of the capture. (required) :type capture_id: str - :param flow_id: The ID of the flow. (required) - :type flow_id: str :param take: The number of search results to return :type take: int :param skip: The number of search results to skip @@ -5047,9 +5017,8 @@ def get_flow_exchanges( :return: Returns the result object. """ # noqa: E501 - _param = self._get_flow_exchanges_serialize( + _param = self._get_capture_flows_serialize( capture_id=capture_id, - flow_id=flow_id, take=take, skip=skip, _request_auth=_request_auth, @@ -5059,7 +5028,7 @@ def get_flow_exchanges( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppExchange]", + '200': "List[AppFlow]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5067,13 +5036,12 @@ def get_flow_exchanges( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_flow_exchanges_with_http_info( + def get_capture_flows_with_http_info( self, capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - flow_id: Annotated[StrictStr, Field(description="The ID of the flow.")], take: Annotated[Optional[StrictInt], 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[ @@ -5088,14 +5056,12 @@ def get_flow_exchanges_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[AppExchange]]: - """get_flow_exchanges + ) -> ApiResponse[List[AppFlow]]: + """get_capture_flows :param capture_id: The ID of the capture. (required) :type capture_id: str - :param flow_id: The ID of the flow. (required) - :type flow_id: str :param take: The number of search results to return :type take: int :param skip: The number of search results to skip @@ -5122,9 +5088,8 @@ def get_flow_exchanges_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_flow_exchanges_serialize( + _param = self._get_capture_flows_serialize( capture_id=capture_id, - flow_id=flow_id, take=take, skip=skip, _request_auth=_request_auth, @@ -5134,7 +5099,7 @@ def get_flow_exchanges_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppExchange]", + '200': "List[AppFlow]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5142,13 +5107,12 @@ def get_flow_exchanges_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_flow_exchanges_without_preload_content( + def get_capture_flows_without_preload_content( self, capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - flow_id: Annotated[StrictStr, Field(description="The ID of the flow.")], take: Annotated[Optional[StrictInt], 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[ @@ -5164,13 +5128,11 @@ def get_flow_exchanges_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_flow_exchanges + """get_capture_flows :param capture_id: The ID of the capture. (required) :type capture_id: str - :param flow_id: The ID of the flow. (required) - :type flow_id: str :param take: The number of search results to return :type take: int :param skip: The number of search results to skip @@ -5197,9 +5159,8 @@ def get_flow_exchanges_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_flow_exchanges_serialize( + _param = self._get_capture_flows_serialize( capture_id=capture_id, - flow_id=flow_id, take=take, skip=skip, _request_auth=_request_auth, @@ -5209,7 +5170,7 @@ def get_flow_exchanges_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppExchange]", + '200': "List[AppFlow]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5217,12 +5178,11 @@ def get_flow_exchanges_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_flow_exchanges_serialize( + def _get_capture_flows_serialize( self, capture_id, - flow_id, take, skip, _request_auth, @@ -5246,8 +5206,6 @@ def _get_flow_exchanges_serialize( # process the path parameters if capture_id is not None: _path_params['captureId'] = capture_id - if flow_id is not None: - _path_params['flowId'] = flow_id # process the query parameters if take is not None: @@ -5279,7 +5237,7 @@ def _get_flow_exchanges_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges', + resource_path='/api/v2/resources/captures/{captureId}/flows', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5296,9 +5254,12 @@ def _get_flow_exchanges_serialize( @validate_call - def get_resources_app_by_id( + def get_flow_exchanges( self, - app_id: Annotated[StrictStr, Field(description="The ID of the app.")], + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + flow_id: Annotated[StrictStr, Field(description="The ID of the flow.")], + take: Annotated[Optional[StrictInt], 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)], @@ -5311,13 +5272,18 @@ def get_resources_app_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppsecApp: - """get_resources_app_by_id + ) -> List[AppExchange]: + """get_flow_exchanges - Get a particular CyPerf application. - :param app_id: The ID of the app. (required) - :type app_id: str + :param capture_id: The ID of the capture. (required) + :type capture_id: str + :param flow_id: The ID of the flow. (required) + :type flow_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 @@ -5340,8 +5306,11 @@ def get_resources_app_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_app_by_id_serialize( - app_id=app_id, + _param = self._get_flow_exchanges_serialize( + capture_id=capture_id, + flow_id=flow_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5349,9 +5318,7 @@ def get_resources_app_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecApp", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppExchange]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5359,12 +5326,15 @@ def get_resources_app_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_app_by_id_with_http_info( + def get_flow_exchanges_with_http_info( self, - app_id: Annotated[StrictStr, Field(description="The ID of the app.")], + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + flow_id: Annotated[StrictStr, Field(description="The ID of the flow.")], + take: Annotated[Optional[StrictInt], 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)], @@ -5377,13 +5347,18 @@ def get_resources_app_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[AppsecApp]: - """get_resources_app_by_id + ) -> ApiResponse[List[AppExchange]]: + """get_flow_exchanges - Get a particular CyPerf application. - :param app_id: The ID of the app. (required) - :type app_id: str + :param capture_id: The ID of the capture. (required) + :type capture_id: str + :param flow_id: The ID of the flow. (required) + :type flow_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 @@ -5406,8 +5381,11 @@ def get_resources_app_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_app_by_id_serialize( - app_id=app_id, + _param = self._get_flow_exchanges_serialize( + capture_id=capture_id, + flow_id=flow_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5415,9 +5393,7 @@ def get_resources_app_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecApp", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppExchange]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5425,12 +5401,15 @@ def get_resources_app_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_app_by_id_without_preload_content( + def get_flow_exchanges_without_preload_content( self, - app_id: Annotated[StrictStr, Field(description="The ID of the app.")], + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + flow_id: Annotated[StrictStr, Field(description="The ID of the flow.")], + take: Annotated[Optional[StrictInt], 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)], @@ -5444,12 +5423,17 @@ def get_resources_app_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_app_by_id + """get_flow_exchanges - Get a particular CyPerf application. - :param app_id: The ID of the app. (required) - :type app_id: str + :param capture_id: The ID of the capture. (required) + :type capture_id: str + :param flow_id: The ID of the flow. (required) + :type flow_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 @@ -5472,8 +5456,11 @@ def get_resources_app_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_app_by_id_serialize( - app_id=app_id, + _param = self._get_flow_exchanges_serialize( + capture_id=capture_id, + flow_id=flow_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5481,9 +5468,7 @@ def get_resources_app_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecApp", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppExchange]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5491,11 +5476,14 @@ def get_resources_app_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_app_by_id_serialize( + def _get_flow_exchanges_serialize( self, - app_id, + capture_id, + flow_id, + take, + skip, _request_auth, _content_type, _headers, @@ -5515,9 +5503,19 @@ def _get_resources_app_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_id is not None: - _path_params['appId'] = app_id + if capture_id is not None: + _path_params['captureId'] = capture_id + if flow_id is not None: + _path_params['flowId'] = flow_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -5540,7 +5538,7 @@ def _get_resources_app_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/apps/{appId}', + resource_path='/api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5557,9 +5555,9 @@ def _get_resources_app_by_id_serialize( @validate_call - def get_resources_application_type_by_id( + def get_resources_app_by_id( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + app_id: Annotated[StrictStr, Field(description="The ID of the app.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5572,13 +5570,13 @@ def get_resources_application_type_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApplicationType: - """get_resources_application_type_by_id + ) -> AppsecApp: + """get_resources_app_by_id - Get a particular application. + Get a particular CyPerf application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param app_id: The ID of the app. (required) + :type app_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5601,8 +5599,8 @@ def get_resources_application_type_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_by_id_serialize( + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5610,7 +5608,9 @@ def get_resources_application_type_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "AppsecApp", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5618,12 +5618,12 @@ def get_resources_application_type_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_application_type_by_id_with_http_info( + def get_resources_app_by_id_with_http_info( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + app_id: Annotated[StrictStr, Field(description="The ID of the app.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5636,13 +5636,13 @@ def get_resources_application_type_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ApplicationType]: - """get_resources_application_type_by_id + ) -> ApiResponse[AppsecApp]: + """get_resources_app_by_id - Get a particular application. + Get a particular CyPerf application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param app_id: The ID of the app. (required) + :type app_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5665,8 +5665,8 @@ def get_resources_application_type_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_by_id_serialize( + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5674,7 +5674,9 @@ def get_resources_application_type_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "AppsecApp", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5682,12 +5684,12 @@ def get_resources_application_type_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_application_type_by_id_without_preload_content( + def get_resources_app_by_id_without_preload_content( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + app_id: Annotated[StrictStr, Field(description="The ID of the app.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5701,12 +5703,12 @@ def get_resources_application_type_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_application_type_by_id + """get_resources_app_by_id - Get a particular application. + Get a particular CyPerf application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param app_id: The ID of the app. (required) + :type app_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5729,8 +5731,8 @@ def get_resources_application_type_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_by_id_serialize( + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5738,7 +5740,9 @@ def get_resources_application_type_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "AppsecApp", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5746,11 +5750,11 @@ def get_resources_application_type_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_application_type_by_id_serialize( + def _get_resources_app_by_id_serialize( self, - application_type_id, + app_id, _request_auth, _content_type, _headers, @@ -5770,8 +5774,8 @@ def _get_resources_application_type_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if application_type_id is not None: - _path_params['applicationTypeId'] = application_type_id + if app_id is not None: + _path_params['appId'] = app_id # process the query parameters # process the header parameters # process the form parameters @@ -5795,7 +5799,7 @@ def _get_resources_application_type_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/application-types/{applicationTypeId}', + resource_path='/api/v2/resources/apps/{appId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5812,7 +5816,7 @@ def _get_resources_application_type_by_id_serialize( @validate_call - def get_resources_application_types( + def get_resources_app_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, @@ -5828,10 +5832,9 @@ def get_resources_application_types( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApplicationTypes200Response: - """get_resources_application_types + ) -> List[Category]: + """get_resources_app_categories - Get all the available applications. :param take: The number of search results to return :type take: int @@ -5859,7 +5862,7 @@ def get_resources_application_types( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( + _param = self._get_resources_app_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -5869,7 +5872,7 @@ def get_resources_application_types( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5877,10 +5880,10 @@ def get_resources_application_types( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_application_types_with_http_info( + def get_resources_app_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, @@ -5896,10 +5899,9 @@ def get_resources_application_types_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApplicationTypes200Response]: - """get_resources_application_types + ) -> ApiResponse[List[Category]]: + """get_resources_app_categories - Get all the available applications. :param take: The number of search results to return :type take: int @@ -5927,7 +5929,7 @@ def get_resources_application_types_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( + _param = self._get_resources_app_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -5937,7 +5939,7 @@ def get_resources_application_types_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5945,10 +5947,10 @@ def get_resources_application_types_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_application_types_without_preload_content( + def get_resources_app_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, @@ -5965,9 +5967,8 @@ def get_resources_application_types_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_application_types + """get_resources_app_categories - Get all the available applications. :param take: The number of search results to return :type take: int @@ -5995,7 +5996,7 @@ def get_resources_application_types_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( + _param = self._get_resources_app_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -6005,7 +6006,7 @@ def get_resources_application_types_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6013,9 +6014,9 @@ def get_resources_application_types_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_application_types_serialize( + def _get_resources_app_categories_serialize( self, take, skip, @@ -6069,7 +6070,7 @@ def _get_resources_application_types_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/application-types', + resource_path='/api/v2/resources/app-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6086,14 +6087,9 @@ def _get_resources_application_types_serialize( @validate_call - def get_resources_apps( + def get_resources_application_type_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - 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, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6106,23 +6102,13 @@ def get_resources_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApps200Response: - """get_resources_apps + ) -> ApplicationType: + """get_resources_application_type_by_id - Get all the available CyPerf applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param 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 application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6145,13 +6131,8 @@ def get_resources_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_apps_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6159,8 +6140,7 @@ def get_resources_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '401': "ErrorResponse", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6168,17 +6148,76 @@ def get_resources_apps( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) + + + @validate_call + def get_resources_application_type_by_id_with_http_info( + self, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[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_application_type_by_id + Get a particular application. + + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_application_type_by_id_serialize( + application_type_id=application_type_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_apps_with_http_info( + def get_resources_application_type_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - 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, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6191,23 +6230,13 @@ def get_resources_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApps200Response]: - """get_resources_apps + ) -> RESTResponseType: + """get_resources_application_type_by_id - Get all the available CyPerf applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param 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 application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6230,385 +6259,8 @@ def get_resources_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_apps_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '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_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, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_apps - - Get all the available CyPerf applications. - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_apps_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_apps_serialize( - self, - take, - skip, - search_col, - search_val, - filter_mode, - sort, - _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)) - - # 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/apps', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_resources_attack_by_id( - self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppsecAttack: - """get_resources_attack_by_id - - Get a particular CyPerf attack. - - :param attack_id: The ID of the attack. (required) - :type attack_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_attack_by_id_serialize( - attack_id=attack_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", - '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_attack_by_id_with_http_info( - self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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[AppsecAttack]: - """get_resources_attack_by_id - - Get a particular CyPerf attack. - - :param attack_id: The ID of the attack. (required) - :type attack_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_attack_by_id_serialize( - attack_id=attack_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", - '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_attack_by_id_without_preload_content( - self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_attack_by_id - - Get a particular CyPerf attack. - - :param attack_id: The ID of the attack. (required) - :type attack_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_attack_by_id_serialize( - attack_id=attack_id, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6616,9 +6268,7 @@ def get_resources_attack_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6626,11 +6276,11 @@ def get_resources_attack_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_attack_by_id_serialize( + def _get_resources_application_type_by_id_serialize( self, - attack_id, + application_type_id, _request_auth, _content_type, _headers, @@ -6650,8 +6300,8 @@ def _get_resources_attack_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if attack_id is not None: - _path_params['attackId'] = attack_id + if application_type_id is not None: + _path_params['applicationTypeId'] = application_type_id # process the query parameters # process the header parameters # process the form parameters @@ -6675,7 +6325,7 @@ def _get_resources_attack_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/attacks/{attackId}', + resource_path='/api/v2/resources/application-types/{applicationTypeId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6692,74 +6342,7 @@ def _get_resources_attack_by_id_serialize( @validate_call - def get_resources_attack_categories( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Category]: - """get_resources_attack_categories - - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_attack_categories_with_http_info( + def get_resources_application_types( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -6775,9 +6358,10 @@ def get_resources_attack_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Category]]: - """get_resources_attack_categories + ) -> GetResourcesApplicationTypes200Response: + """get_resources_application_types + Get all the available applications. :param take: The number of search results to return :type take: int @@ -6805,4795 +6389,9 @@ def get_resources_attack_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_attack_categories_without_preload_content( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_attack_categories - - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_attack_categories_serialize( - self, - take, - skip, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/attack-categories', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_resources_attacks( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesAttacks200Response: - """get_resources_attacks - - Get all the available CyPerf attacks. - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_attacks_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '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_attacks_with_http_info( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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[GetResourcesAttacks200Response]: - """get_resources_attacks - - Get all the available CyPerf attacks. - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_attacks_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '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_attacks_without_preload_content( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_attacks - - Get all the available CyPerf attacks. - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_attacks_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '401': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_attacks_serialize( - self, - take, - skip, - search_col, - search_val, - filter_mode, - sort, - 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 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/attacks', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_resources_auth_profile_by_id( - self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AuthProfile: - """get_resources_auth_profile_by_id - - Get a particular Auth profile. - - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '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_auth_profile_by_id_with_http_info( - self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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[AuthProfile]: - """get_resources_auth_profile_by_id - - Get a particular Auth profile. - - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '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_auth_profile_by_id_without_preload_content( - self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_auth_profile_by_id - - Get a particular Auth profile. - - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_auth_profile_by_id_serialize( - self, - auth_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 auth_profile_id is not None: - _path_params['authProfileId'] = auth_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/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/auth-profiles/{authProfileId}', - 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_auth_profiles( - 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, - ) -> GetResourcesAuthProfiles200Response: - """get_resources_auth_profiles - - Get all the available Auth profiles. - - :param 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_auth_profiles_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': "GetResourcesAuthProfiles200Response", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_auth_profiles_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[GetResourcesAuthProfiles200Response]: - """get_resources_auth_profiles - - Get all the available Auth profiles. - - :param 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_auth_profiles_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': "GetResourcesAuthProfiles200Response", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_auth_profiles_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_auth_profiles - - Get all the available Auth profiles. - - :param 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_auth_profiles_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': "GetResourcesAuthProfiles200Response", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_auth_profiles_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/auth-profiles', - 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_capture_by_id( - self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReplayCapture: - """get_resources_capture_by_id - - Get a particular CyPerf capture loaded by the user. - - :param capture_id: The ID of the capture. (required) - :type capture_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_capture_by_id_serialize( - capture_id=capture_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '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_capture_by_id_with_http_info( - self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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[ReplayCapture]: - """get_resources_capture_by_id - - Get a particular CyPerf capture loaded by the user. - - :param capture_id: The ID of the capture. (required) - :type capture_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_capture_by_id_serialize( - capture_id=capture_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '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_capture_by_id_without_preload_content( - self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_capture_by_id - - Get a particular CyPerf capture loaded by the user. - - :param capture_id: The ID of the capture. (required) - :type capture_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_capture_by_id_serialize( - capture_id=capture_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '401': "ErrorResponse", - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_capture_by_id_serialize( - self, - capture_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 capture_id is not None: - _path_params['captureId'] = capture_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/captures/{captureId}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_resources_captures( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ReplayCapture]: - """get_resources_captures - - - :param 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_captures_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_captures_with_http_info( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ReplayCapture]]: - """get_resources_captures - - - :param 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_captures_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_captures_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_captures - - - :param 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_captures_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_captures_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/captures', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_resources_captures_upload_file_result( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_captures_upload_file_result - - Get the result of the upload file operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_resources_captures_upload_file_result_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_captures_upload_file_result_with_http_info( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_captures_upload_file_result - - Get the result of the upload file operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_resources_captures_upload_file_result_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_captures_upload_file_result_without_preload_content( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """get_resources_captures_upload_file_result - - Get the result of the upload file operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_resources_captures_upload_file_result_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_captures_upload_file_result_serialize( - self, - upload_file_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/captures/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_certificate_by_id( - self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the 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_certificate_by_id - - Get a particular certificates archive file. - - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_certificate_by_id_serialize( - certificate_id=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_certificate_by_id_with_http_info( - self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the 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_certificate_by_id - - Get a particular certificates archive file. - - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_certificate_by_id_serialize( - certificate_id=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_certificate_by_id_without_preload_content( - self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the 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_certificate_by_id - - Get a particular certificates archive file. - - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_certificate_by_id_serialize( - certificate_id=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_certificate_by_id_serialize( - self, - 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 certificate_id is not None: - _path_params['certificateId'] = 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/certificates/{certificateId}', - 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_certificate_content_file( - self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the 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_certificate_content_file - - Get the content of a particular certificate archive file. - - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_certificate_content_file_serialize( - certificate_id=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_certificate_content_file_with_http_info( - self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the 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_certificate_content_file - - Get the content of a particular certificate archive file. - - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_certificate_content_file_serialize( - certificate_id=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_certificate_content_file_without_preload_content( - self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the 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_certificate_content_file - - Get the content of a particular certificate archive file. - - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_certificate_content_file_serialize( - certificate_id=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_certificate_content_file_serialize( - self, - 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 certificate_id is not None: - _path_params['certificateId'] = 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/certificates/{certificateId}/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_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_certificates - - Get all the available certificates 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_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_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_certificates - - Get all the available certificates 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_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_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_certificates - - Get all the available certificates 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_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_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/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_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_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_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_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_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_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_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_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_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_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/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_custom_fuzzing_script_by_id( - self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_custom_fuzzing_script_by_id - - Get a particular custom fuzzing script. - - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_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_custom_fuzzing_script_by_id_with_http_info( - self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_custom_fuzzing_script_by_id - - Get a particular custom fuzzing script. - - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_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_custom_fuzzing_script_by_id_without_preload_content( - self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_custom_fuzzing_script_by_id - - Get a particular custom fuzzing script. - - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_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_custom_fuzzing_script_by_id_serialize( - self, - custom_fuzzing_script_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 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 - # 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/custom-fuzzing-scripts/{customFuzzingScriptId}', - 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_custom_fuzzing_script_content_file( - self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_custom_fuzzing_script_content_file - - Get the content of a particular custom fuzzing script file. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_custom_fuzzing_script_content_file_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_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_custom_fuzzing_script_content_file_with_http_info( - self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_custom_fuzzing_script_content_file - - Get the content of a particular custom fuzzing script file. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_custom_fuzzing_script_content_file_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_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_custom_fuzzing_script_content_file_without_preload_content( - self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_custom_fuzzing_script_content_file - - Get the content of a particular custom fuzzing script file. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_custom_fuzzing_script_content_file_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_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_custom_fuzzing_script_content_file_serialize( - self, - custom_fuzzing_script_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 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 - # 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/custom-fuzzing-scripts/{customFuzzingScriptId}/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_custom_fuzzing_scripts( - 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_custom_fuzzing_scripts - - Get all the available custom fuzzing scripts. - - :param 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_custom_fuzzing_scripts_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_custom_fuzzing_scripts_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_custom_fuzzing_scripts - - Get all the available custom fuzzing scripts. - - :param 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_custom_fuzzing_scripts_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_custom_fuzzing_scripts_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_custom_fuzzing_scripts - - Get all the available custom fuzzing scripts. - - :param 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_custom_fuzzing_scripts_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_custom_fuzzing_scripts_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/custom-fuzzing-scripts', - 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_custom_fuzzing_scripts_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_custom_fuzzing_scripts_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_custom_fuzzing_scripts_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_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[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_custom_fuzzing_scripts_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_custom_fuzzing_scripts_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_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[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_custom_fuzzing_scripts_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_custom_fuzzing_scripts_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_custom_fuzzing_scripts_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/custom-fuzzing-scripts/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_flow_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, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_flow_library - - Get all the available flow library 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_flow_library_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_flow_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, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_flow_library - - Get all the available flow library 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_flow_library_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_flow_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, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_flow_library - - Get all the available flow library 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_flow_library_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_flow_library_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/flow-library', - 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_flow_library_by_id( - self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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, - ) -> GenericFile: - """get_resources_flow_library_by_id - - Get a particular flow library file. - - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_flow_library_by_id_serialize( - flow_library_id=flow_library_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_flow_library_by_id_with_http_info( - self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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[GenericFile]: - """get_resources_flow_library_by_id - - Get a particular flow library file. - - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_flow_library_by_id_serialize( - flow_library_id=flow_library_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_flow_library_by_id_without_preload_content( - self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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: - """get_resources_flow_library_by_id - - Get a particular flow library file. - - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_flow_library_by_id_serialize( - flow_library_id=flow_library_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_flow_library_by_id_serialize( - self, - flow_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 flow_library_id is not None: - _path_params['flowLibraryId'] = flow_library_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/flow-library/{flowLibraryId}', - 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_flow_library_content_file( - self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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, - ) -> bytearray: - """get_resources_flow_library_content_file - - Get the content of a particular flow library file. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_flow_library_content_file_serialize( - flow_library_id=flow_library_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_flow_library_content_file_with_http_info( - self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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[bytearray]: - """get_resources_flow_library_content_file - - Get the content of a particular flow library file. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_flow_library_content_file_serialize( - flow_library_id=flow_library_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_flow_library_content_file_without_preload_content( - self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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: - """get_resources_flow_library_content_file - - Get the content of a particular flow library file. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_flow_library_content_file_serialize( - flow_library_id=flow_library_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_flow_library_content_file_serialize( - self, - flow_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 flow_library_id is not None: - _path_params['flowLibraryId'] = flow_library_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/flow-library/{flowLibraryId}/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_flow_library_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_flow_library_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_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_application_types_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11601,8 +6399,7 @@ def get_resources_flow_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11610,12 +6407,13 @@ def get_resources_flow_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_flow_library_upload_file_result_with_http_info( + def get_resources_application_types_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)], @@ -11628,13 +6426,15 @@ def get_resources_flow_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_flow_library_upload_file_result + ) -> ApiResponse[GetResourcesApplicationTypes200Response]: + """get_resources_application_types - Get the result of the upload file operation. + Get all the available applications. - :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 @@ -11657,8 +6457,9 @@ def get_resources_flow_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_application_types_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11666,8 +6467,7 @@ def get_resources_flow_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11675,12 +6475,13 @@ def get_resources_flow_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_flow_library_upload_file_result_without_preload_content( + def get_resources_application_types_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)], @@ -11694,12 +6495,14 @@ 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_application_types - Get the result of the upload file operation. + Get all the available applications. - :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 @@ -11722,8 +6525,9 @@ def get_resources_flow_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_application_types_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11731,8 +6535,7 @@ def get_resources_flow_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11740,11 +6543,12 @@ def get_resources_flow_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_flow_library_upload_file_result_serialize( + def _get_resources_application_types_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -11764,9 +6568,15 @@ def _get_resources_flow_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # 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 @@ -11789,7 +6599,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/application-types', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11806,9 +6616,15 @@ def _get_resources_flow_library_upload_file_result_serialize( @validate_call - def get_resources_global_playlist_by_id( + def get_resources_apps( 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, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11821,13 +6637,25 @@ 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 + ) -> GetResourcesApps200Response: + """get_resources_apps - Get a particular global playlists archive file. + Get all the available CyPerf applications. - :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 search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11850,8 +6678,14 @@ 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_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11859,9 +6693,9 @@ def get_resources_global_playlist_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11869,12 +6703,18 @@ def get_resources_global_playlist_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_global_playlist_by_id_with_http_info( + def get_resources_apps_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, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11887,13 +6727,25 @@ 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[GetResourcesApps200Response]: + """get_resources_apps - Get a particular global playlists archive file. + Get all the available CyPerf applications. - :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 search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11916,8 +6768,14 @@ 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_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11925,9 +6783,9 @@ def get_resources_global_playlist_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11935,12 +6793,18 @@ def get_resources_global_playlist_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_global_playlist_by_id_without_preload_content( + def get_resources_apps_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, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11954,12 +6818,24 @@ 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_apps - Get a particular global playlists archive file. + Get all the available CyPerf applications. - :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 search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11982,8 +6858,14 @@ 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_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11991,9 +6873,9 @@ def get_resources_global_playlist_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12001,11 +6883,17 @@ def get_resources_global_playlist_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_global_playlist_by_id_serialize( + def _get_resources_apps_serialize( self, - global_playlist_id, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + categories, _request_auth, _content_type, _headers, @@ -12025,9 +6913,35 @@ 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)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if categories is not None: + + _query_params.append(('categories', categories)) + # process the header parameters # process the form parameters # process the body parameter @@ -12050,7 +6964,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/apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12067,9 +6981,9 @@ def _get_resources_global_playlist_by_id_serialize( @validate_call - def get_resources_global_playlist_content_file( + def get_resources_attack_by_id( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12082,13 +6996,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 + ) -> AppsecAttack: + """get_resources_attack_by_id - Get the content of a particular global playlists archive file. + Get a particular CyPerf attack. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12111,8 +7025,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_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12120,20 +7034,22 @@ def get_resources_global_playlist_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "AppsecAttack", + '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_global_playlist_content_file_with_http_info( + def get_resources_attack_by_id_with_http_info( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12146,13 +7062,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[AppsecAttack]: + """get_resources_attack_by_id - Get the content of a particular global playlists archive file. + Get a particular CyPerf attack. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12175,8 +7091,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_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12184,20 +7100,22 @@ def get_resources_global_playlist_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "AppsecAttack", + '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_global_playlist_content_file_without_preload_content( + def get_resources_attack_by_id_without_preload_content( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12211,12 +7129,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_attack_by_id - Get the content of a particular global playlists archive file. + Get a particular CyPerf attack. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12239,8 +7157,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_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12248,19 +7166,21 @@ def get_resources_global_playlist_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "AppsecAttack", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_global_playlist_content_file_serialize( + def _get_resources_attack_by_id_serialize( self, - global_playlist_id, + attack_id, _request_auth, _content_type, _headers, @@ -12280,8 +7200,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 attack_id is not None: + _path_params['attackId'] = attack_id # process the query parameters # process the header parameters # process the form parameters @@ -12292,7 +7212,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' ] ) @@ -12306,7 +7225,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/attacks/{attackId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12323,7 +7242,7 @@ def _get_resources_global_playlist_content_file_serialize( @validate_call - def get_resources_global_playlists( + def get_resources_attack_categories( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -12339,10 +7258,9 @@ 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 + ) -> List[Category]: + """get_resources_attack_categories - Get all the available global playlists files. :param take: The number of search results to return :type take: int @@ -12370,7 +7288,7 @@ def get_resources_global_playlists( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -12380,8 +7298,7 @@ def get_resources_global_playlists( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12389,10 +7306,10 @@ def get_resources_global_playlists( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_global_playlists_with_http_info( + def get_resources_attack_categories_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -12408,10 +7325,9 @@ 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[List[Category]]: + """get_resources_attack_categories - Get all the available global playlists files. :param take: The number of search results to return :type take: int @@ -12439,7 +7355,7 @@ def get_resources_global_playlists_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -12449,8 +7365,7 @@ def get_resources_global_playlists_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( @@ -12458,10 +7373,10 @@ def get_resources_global_playlists_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_global_playlists_without_preload_content( + def get_resources_attack_categories_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -12478,9 +7393,8 @@ 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_attack_categories - Get all the available global playlists files. :param take: The number of search results to return :type take: int @@ -12508,7 +7422,7 @@ def get_resources_global_playlists_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -12518,8 +7432,7 @@ def get_resources_global_playlists_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( @@ -12527,9 +7440,9 @@ def get_resources_global_playlists_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_global_playlists_serialize( + def _get_resources_attack_categories_serialize( self, take, skip, @@ -12583,7 +7496,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/attack-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12600,9 +7513,15 @@ def _get_resources_global_playlists_serialize( @validate_call - def get_resources_global_playlists_upload_file_result( + def get_resources_attacks( 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, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12615,13 +7534,25 @@ def get_resources_global_playlists_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_global_playlists_upload_file_result + ) -> GetResourcesAttacks200Response: + """get_resources_attacks - Get the result of the upload file operation. + Get all the available CyPerf attacks. - :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 categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12644,8 +7575,14 @@ def get_resources_global_playlists_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12653,8 +7590,9 @@ def get_resources_global_playlists_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GetResourcesAttacks200Response", '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12662,12 +7600,18 @@ def get_resources_global_playlists_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_global_playlists_upload_file_result_with_http_info( + def get_resources_attacks_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, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12680,13 +7624,25 @@ def get_resources_global_playlists_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_global_playlists_upload_file_result + ) -> ApiResponse[GetResourcesAttacks200Response]: + """get_resources_attacks - Get the result of the upload file operation. + Get all the available CyPerf attacks. - :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 categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12709,8 +7665,14 @@ def get_resources_global_playlists_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12718,8 +7680,9 @@ def get_resources_global_playlists_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GetResourcesAttacks200Response", '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12727,12 +7690,18 @@ def get_resources_global_playlists_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_global_playlists_upload_file_result_without_preload_content( + def get_resources_attacks_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, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12746,12 +7715,24 @@ 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_attacks - Get the result of the upload file operation. + Get all the available CyPerf attacks. - :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 categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12774,8 +7755,14 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12783,8 +7770,9 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GetResourcesAttacks200Response", '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12792,11 +7780,17 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_global_playlists_upload_file_result_serialize( + def _get_resources_attacks_serialize( self, - upload_file_id, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + categories, _request_auth, _content_type, _headers, @@ -12816,9 +7810,35 @@ def _get_resources_global_playlists_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if categories is not None: + + _query_params.append(('categories', categories)) + # process the header parameters # process the form parameters # process the body parameter @@ -12841,7 +7861,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/attacks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12858,10 +7878,9 @@ def _get_resources_global_playlists_upload_file_result_serialize( @validate_call - def get_resources_http_library( + def get_resources_auth_profile_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12874,15 +7893,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 + ) -> AuthProfile: + """get_resources_auth_profile_by_id - Get all the available http library files. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12905,9 +7922,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_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12915,8 +7931,8 @@ def get_resources_http_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12924,13 +7940,12 @@ def get_resources_http_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_library_with_http_info( + def get_resources_auth_profile_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12943,15 +7958,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[AuthProfile]: + """get_resources_auth_profile_by_id - Get all the available http library files. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12974,9 +7987,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_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12984,8 +7996,8 @@ def get_resources_http_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12993,13 +8005,12 @@ def get_resources_http_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_library_without_preload_content( + def get_resources_auth_profile_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13013,14 +8024,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_auth_profile_by_id - Get all the available http library files. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13043,9 +8052,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_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13053,8 +8061,8 @@ def get_resources_http_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13062,12 +8070,11 @@ def get_resources_http_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_http_library_serialize( + def _get_resources_auth_profile_by_id_serialize( self, - take, - skip, + auth_profile_id, _request_auth, _content_type, _headers, @@ -13087,15 +8094,9 @@ def _get_resources_http_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if auth_profile_id is not None: + _path_params['authProfileId'] = auth_profile_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -13118,7 +8119,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/auth-profiles/{authProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13135,9 +8136,10 @@ def _get_resources_http_library_serialize( @validate_call - def get_resources_http_library_by_id( + def get_resources_auth_profiles( 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)], @@ -13150,13 +8152,15 @@ def get_resources_http_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_http_library_by_id + ) -> GetResourcesAuthProfiles200Response: + """get_resources_auth_profiles - Get a particular http library file. + Get all the available Auth profiles. - :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 @@ -13179,8 +8183,9 @@ def get_resources_http_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13188,9 +8193,7 @@ def get_resources_http_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13198,12 +8201,13 @@ def get_resources_http_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_library_by_id_with_http_info( + def get_resources_auth_profiles_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)], @@ -13216,13 +8220,15 @@ def get_resources_http_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_http_library_by_id + ) -> ApiResponse[GetResourcesAuthProfiles200Response]: + """get_resources_auth_profiles - Get a particular http library file. + Get all the available Auth profiles. - :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 @@ -13245,8 +8251,9 @@ def get_resources_http_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13254,9 +8261,7 @@ def get_resources_http_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13264,12 +8269,13 @@ def get_resources_http_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_library_by_id_without_preload_content( + def get_resources_auth_profiles_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)], @@ -13283,12 +8289,14 @@ def get_resources_http_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_by_id + """get_resources_auth_profiles - Get a particular http library file. + Get all the available Auth profiles. - :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 @@ -13311,8 +8319,9 @@ def get_resources_http_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13320,9 +8329,7 @@ def get_resources_http_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13330,11 +8337,12 @@ def get_resources_http_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_http_library_by_id_serialize( + def _get_resources_auth_profiles_serialize( self, - http_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -13354,9 +8362,15 @@ def _get_resources_http_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_library_id is not None: - _path_params['httpLibraryId'] = http_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -13379,7 +8393,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/auth-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13396,73 +8410,9 @@ def _get_resources_http_library_by_id_serialize( @validate_call - def get_resources_http_library_content_file( - self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http 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, - ) -> bytearray: - """get_resources_http_library_content_file - - Get the content of a particular http library file. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores 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_http_library_content_file_serialize( - http_library_id=http_library_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_http_library_content_file_with_http_info( + def get_resources_capture_by_id( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13475,13 +8425,13 @@ 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 + ) -> ReplayCapture: + """get_resources_capture_by_id - Get the content of a particular http library file. + Get a particular CyPerf capture loaded by the user. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param capture_id: The ID of the capture. (required) + :type capture_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13504,8 +8454,8 @@ 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_capture_by_id_serialize( + capture_id=capture_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13513,20 +8463,88 @@ def get_resources_http_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "ReplayCapture", + '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_capture_by_id_with_http_info( + self, + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[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[ReplayCapture]: + """get_resources_capture_by_id + + Get a particular CyPerf capture loaded by the user. + + :param capture_id: The ID of the capture. (required) + :type capture_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_capture_by_id_serialize( + capture_id=capture_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ReplayCapture", + '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_http_library_content_file_without_preload_content( + def get_resources_capture_by_id_without_preload_content( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13540,12 +8558,12 @@ 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_capture_by_id - Get the content of a particular http library file. + Get a particular CyPerf capture loaded by the user. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param capture_id: The ID of the capture. (required) + :type capture_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13568,8 +8586,8 @@ 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_capture_by_id_serialize( + capture_id=capture_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13577,19 +8595,21 @@ def get_resources_http_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "ReplayCapture", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_http_library_content_file_serialize( + def _get_resources_capture_by_id_serialize( self, - http_library_id, + capture_id, _request_auth, _content_type, _headers, @@ -13609,8 +8629,8 @@ 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 + if capture_id is not None: + _path_params['captureId'] = capture_id # process the query parameters # process the header parameters # process the form parameters @@ -13621,7 +8641,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' ] ) @@ -13635,7 +8654,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/captures/{captureId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13652,9 +8671,10 @@ def _get_resources_http_library_content_file_serialize( @validate_call - def get_resources_http_library_upload_file_result( + def get_resources_captures( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13667,13 +8687,14 @@ def get_resources_http_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_http_library_upload_file_result + ) -> List[ReplayCapture]: + """get_resources_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13696,8 +8717,9 @@ def get_resources_http_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13705,8 +8727,7 @@ def get_resources_http_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13714,12 +8735,13 @@ def get_resources_http_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_library_upload_file_result_with_http_info( + def get_resources_captures_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13732,13 +8754,14 @@ def get_resources_http_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_http_library_upload_file_result + ) -> ApiResponse[List[ReplayCapture]]: + """get_resources_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13761,8 +8784,9 @@ def get_resources_http_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13770,8 +8794,7 @@ def get_resources_http_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13779,12 +8802,13 @@ def get_resources_http_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_library_upload_file_result_without_preload_content( + def get_resources_captures_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13798,12 +8822,13 @@ 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_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13826,8 +8851,9 @@ def get_resources_http_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13835,8 +8861,7 @@ def get_resources_http_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13844,11 +8869,12 @@ def get_resources_http_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_http_library_upload_file_result_serialize( + def _get_resources_captures_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -13868,9 +8894,15 @@ def _get_resources_http_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # 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 @@ -13893,7 +8925,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/captures', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13910,9 +8942,9 @@ def _get_resources_http_library_upload_file_result_serialize( @validate_call - def get_resources_http_profile_by_id( + def get_resources_captures_encrypted_upload_file_result( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13925,13 +8957,13 @@ def get_resources_http_profile_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HTTPProfile: - """get_resources_http_profile_by_id + ) -> None: + """get_resources_captures_encrypted_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13954,8 +8986,8 @@ def get_resources_http_profile_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13963,8 +8995,8 @@ def get_resources_http_profile_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13972,12 +9004,12 @@ def get_resources_http_profile_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_profile_by_id_with_http_info( + def get_resources_captures_encrypted_upload_file_result_with_http_info( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13990,13 +9022,13 @@ def get_resources_http_profile_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HTTPProfile]: - """get_resources_http_profile_by_id + ) -> ApiResponse[None]: + """get_resources_captures_encrypted_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14019,8 +9051,8 @@ def get_resources_http_profile_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14028,8 +9060,8 @@ def get_resources_http_profile_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14037,12 +9069,12 @@ def get_resources_http_profile_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_profile_by_id_without_preload_content( + def get_resources_captures_encrypted_upload_file_result_without_preload_content( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14056,12 +9088,12 @@ def get_resources_http_profile_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_profile_by_id + """get_resources_captures_encrypted_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14084,8 +9116,8 @@ def get_resources_http_profile_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14093,8 +9125,8 @@ def get_resources_http_profile_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14102,11 +9134,11 @@ def get_resources_http_profile_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_http_profile_by_id_serialize( + def _get_resources_captures_encrypted_upload_file_result_serialize( self, - http_profile_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -14126,8 +9158,8 @@ def _get_resources_http_profile_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_profile_id is not None: - _path_params['httpProfileId'] = http_profile_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -14151,7 +9183,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/captures/encrypted/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14168,10 +9200,9 @@ def _get_resources_http_profile_by_id_serialize( @validate_call - def get_resources_http_profiles( + def get_resources_captures_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)], @@ -14184,15 +9215,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 + ) -> None: + """get_resources_captures_upload_file_result - Get all the available HTTP profiles. + 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 @@ -14215,9 +9244,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_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14225,7 +9253,8 @@ def get_resources_http_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14233,13 +9262,12 @@ def get_resources_http_profiles( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_profiles_with_http_info( + def get_resources_captures_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)], @@ -14252,15 +9280,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[None]: + """get_resources_captures_upload_file_result - Get all the available HTTP profiles. + 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 @@ -14283,9 +9309,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_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14293,7 +9318,8 @@ def get_resources_http_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14301,13 +9327,12 @@ def get_resources_http_profiles_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_http_profiles_without_preload_content( + def get_resources_captures_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)], @@ -14321,14 +9346,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_captures_upload_file_result - Get all the available HTTP profiles. + 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 @@ -14351,9 +9374,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_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14361,7 +9383,8 @@ def get_resources_http_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14369,12 +9392,11 @@ def get_resources_http_profiles_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_http_profiles_serialize( + def _get_resources_captures_upload_file_result_serialize( self, - take, - skip, + upload_file_id, _request_auth, _content_type, _headers, @@ -14394,15 +9416,9 @@ def _get_resources_http_profiles_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 @@ -14425,7 +9441,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/captures/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14442,9 +9458,9 @@ def _get_resources_http_profiles_serialize( @validate_call - def get_resources_media_file_by_id( + def get_resources_certificate_by_id( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14458,12 +9474,12 @@ def get_resources_media_file_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_media_file_by_id + """get_resources_certificate_by_id - Get a particular media file. + Get a particular certificates archive file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14486,8 +9502,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_certificate_by_id_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14505,12 +9521,12 @@ def get_resources_media_file_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_file_by_id_with_http_info( + def get_resources_certificate_by_id_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14524,12 +9540,12 @@ def get_resources_media_file_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_media_file_by_id + """get_resources_certificate_by_id - Get a particular media file. + Get a particular certificates archive file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14552,8 +9568,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_certificate_by_id_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14571,12 +9587,12 @@ def get_resources_media_file_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_file_by_id_without_preload_content( + def get_resources_certificate_by_id_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14590,12 +9606,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_certificate_by_id - Get a particular media file. + Get a particular certificates archive file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14618,8 +9634,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_certificate_by_id_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14637,11 +9653,11 @@ def get_resources_media_file_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_media_file_by_id_serialize( + def _get_resources_certificate_by_id_serialize( self, - media_file_id, + certificate_id, _request_auth, _content_type, _headers, @@ -14661,8 +9677,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 certificate_id is not None: + _path_params['certificateId'] = certificate_id # process the query parameters # process the header parameters # process the form parameters @@ -14686,7 +9702,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/certificates/{certificateId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14703,9 +9719,9 @@ def _get_resources_media_file_by_id_serialize( @validate_call - def get_resources_media_file_content_file( + def get_resources_certificate_content_file( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14719,12 +9735,12 @@ def get_resources_media_file_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_media_file_content_file + """get_resources_certificate_content_file - Get the content of a particular media file. + Get the content of a particular certificate archive file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14747,8 +9763,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_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14764,12 +9780,12 @@ def get_resources_media_file_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_file_content_file_with_http_info( + def get_resources_certificate_content_file_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14783,12 +9799,12 @@ def get_resources_media_file_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_media_file_content_file + """get_resources_certificate_content_file - Get the content of a particular media file. + Get the content of a particular certificate archive file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14811,8 +9827,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_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14828,12 +9844,12 @@ def get_resources_media_file_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_file_content_file_without_preload_content( + def get_resources_certificate_content_file_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14847,12 +9863,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_certificate_content_file - Get the content of a particular media file. + Get the content of a particular certificate archive file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14875,8 +9891,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_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14892,11 +9908,11 @@ def get_resources_media_file_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_media_file_content_file_serialize( + def _get_resources_certificate_content_file_serialize( self, - media_file_id, + certificate_id, _request_auth, _content_type, _headers, @@ -14916,8 +9932,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 certificate_id is not None: + _path_params['certificateId'] = certificate_id # process the query parameters # process the header parameters # process the form parameters @@ -14942,7 +9958,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/certificates/{certificateId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14959,7 +9975,7 @@ def _get_resources_media_file_content_file_serialize( @validate_call - def get_resources_media_files( + def get_resources_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, @@ -14976,9 +9992,9 @@ def get_resources_media_files( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_media_files + """get_resources_certificates - Get all the available media files. + Get all the available certificates files. :param take: The number of search results to return :type take: int @@ -15006,7 +10022,7 @@ def get_resources_media_files( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( + _param = self._get_resources_certificates_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -15025,10 +10041,10 @@ def get_resources_media_files( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_files_with_http_info( + def get_resources_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, @@ -15045,9 +10061,9 @@ def get_resources_media_files_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_media_files + """get_resources_certificates - Get all the available media files. + Get all the available certificates files. :param take: The number of search results to return :type take: int @@ -15075,7 +10091,7 @@ def get_resources_media_files_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( + _param = self._get_resources_certificates_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -15094,10 +10110,10 @@ def get_resources_media_files_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_files_without_preload_content( + def get_resources_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, @@ -15114,9 +10130,9 @@ 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_certificates - Get all the available media files. + Get all the available certificates files. :param take: The number of search results to return :type take: int @@ -15144,7 +10160,7 @@ def get_resources_media_files_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( + _param = self._get_resources_certificates_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -15163,9 +10179,9 @@ def get_resources_media_files_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_media_files_serialize( + def _get_resources_certificates_serialize( self, take, skip, @@ -15219,7 +10235,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/certificates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15236,7 +10252,7 @@ def _get_resources_media_files_serialize( @validate_call - def get_resources_media_files_upload_file_result( + def get_resources_certificates_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -15252,7 +10268,7 @@ def get_resources_media_files_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_media_files_upload_file_result + """get_resources_certificates_upload_file_result Get the result of the upload file operation. @@ -15280,7 +10296,7 @@ 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( + _param = self._get_resources_certificates_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15298,10 +10314,10 @@ def get_resources_media_files_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_files_upload_file_result_with_http_info( + def get_resources_certificates_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -15317,7 +10333,7 @@ def get_resources_media_files_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_files_upload_file_result + """get_resources_certificates_upload_file_result Get the result of the upload file operation. @@ -15345,7 +10361,7 @@ 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( + _param = self._get_resources_certificates_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15363,10 +10379,10 @@ def get_resources_media_files_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_files_upload_file_result_without_preload_content( + def get_resources_certificates_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -15382,7 +10398,7 @@ 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_certificates_upload_file_result Get the result of the upload file operation. @@ -15410,7 +10426,7 @@ 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( + _param = self._get_resources_certificates_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15428,9 +10444,9 @@ def get_resources_media_files_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_media_files_upload_file_result_serialize( + def _get_resources_certificates_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -15477,7 +10493,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/certificates/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15494,10 +10510,9 @@ def _get_resources_media_files_upload_file_result_serialize( @validate_call - def get_resources_media_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)], @@ -15510,15 +10525,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_custom_fuzzing_script_by_id - Get all the available media 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 @@ -15541,9 +10554,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_custom_fuzzing_script_by_id_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15551,8 +10563,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( @@ -15560,13 +10573,12 @@ def get_resources_media_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_library_with_http_info( + 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)], @@ -15579,15 +10591,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_custom_fuzzing_script_by_id - Get all the available media 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 @@ -15610,9 +10620,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_custom_fuzzing_script_by_id_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15620,8 +10629,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( @@ -15629,13 +10639,12 @@ def get_resources_media_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_library_without_preload_content( + 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)], @@ -15649,14 +10658,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_custom_fuzzing_script_by_id - Get all the available media 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 @@ -15679,9 +10686,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_custom_fuzzing_script_by_id_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15689,8 +10695,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( @@ -15698,12 +10705,11 @@ def get_resources_media_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_media_library_serialize( + def _get_resources_custom_fuzzing_script_by_id_serialize( self, - take, - skip, + custom_fuzzing_script_id, _request_auth, _content_type, _headers, @@ -15723,15 +10729,9 @@ def _get_resources_media_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 @@ -15754,7 +10754,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/custom-fuzzing-scripts/{customFuzzingScriptId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15771,9 +10771,9 @@ def _get_resources_media_library_serialize( @validate_call - def get_resources_media_library_by_id( + def get_resources_custom_fuzzing_script_content_file( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media 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)], @@ -15786,13 +10786,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_custom_fuzzing_script_content_file - Get a particular media library file. + Get the content of a particular custom fuzzing script file. - :param media_library_id: The ID of the media library. (required) - :type media_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 @@ -15815,8 +10815,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_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15824,22 +10824,20 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_library_by_id_with_http_info( + def get_resources_custom_fuzzing_script_content_file_with_http_info( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media 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)], @@ -15852,13 +10850,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_custom_fuzzing_script_content_file - Get a particular media library file. + Get the content of a particular custom fuzzing script file. - :param media_library_id: The ID of the media library. (required) - :type media_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 @@ -15881,8 +10879,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_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15890,22 +10888,20 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_library_by_id_without_preload_content( + def get_resources_custom_fuzzing_script_content_file_without_preload_content( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media 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)], @@ -15919,12 +10915,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_custom_fuzzing_script_content_file - Get a particular media library file. + Get the content of a particular custom fuzzing script file. - :param media_library_id: The ID of the media library. (required) - :type media_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 @@ -15947,8 +10943,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_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15956,21 +10952,19 @@ 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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_media_library_by_id_serialize( + def _get_resources_custom_fuzzing_script_content_file_serialize( self, - media_library_id, + custom_fuzzing_script_id, _request_auth, _content_type, _headers, @@ -15990,8 +10984,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 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 @@ -16002,6 +10996,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' ] ) @@ -16015,7 +11010,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/custom-fuzzing-scripts/{customFuzzingScriptId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16032,9 +11027,10 @@ def _get_resources_media_library_by_id_serialize( @validate_call - def get_resources_media_library_content_file( + def get_resources_custom_fuzzing_scripts( 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)], @@ -16047,13 +11043,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_custom_fuzzing_scripts - Get the content of a particular media library file. + Get all the available custom fuzzing scripts. - :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 @@ -16076,8 +11074,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_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16085,20 +11084,22 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_library_content_file_with_http_info( + def get_resources_custom_fuzzing_scripts_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)], @@ -16111,13 +11112,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_custom_fuzzing_scripts - Get the content of a particular media library file. + Get all the available custom fuzzing scripts. - :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 @@ -16140,8 +11143,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_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16149,20 +11153,22 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_library_content_file_without_preload_content( + def get_resources_custom_fuzzing_scripts_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)], @@ -16176,12 +11182,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_custom_fuzzing_scripts - Get the content of a particular media library file. + Get all the available custom fuzzing scripts. - :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 @@ -16204,8 +11212,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_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16213,19 +11222,21 @@ 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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_media_library_content_file_serialize( + def _get_resources_custom_fuzzing_scripts_serialize( self, - media_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -16245,9 +11256,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 @@ -16257,7 +11274,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' ] ) @@ -16271,7 +11287,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/custom-fuzzing-scripts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16288,7 +11304,7 @@ def _get_resources_media_library_content_file_serialize( @validate_call - def get_resources_media_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[ @@ -16304,7 +11320,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_custom_fuzzing_scripts_upload_file_result Get the result of the upload file operation. @@ -16332,7 +11348,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_custom_fuzzing_scripts_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -16350,10 +11366,10 @@ def get_resources_media_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_library_upload_file_result_with_http_info( + 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[ @@ -16369,7 +11385,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_custom_fuzzing_scripts_upload_file_result Get the result of the upload file operation. @@ -16397,7 +11413,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_custom_fuzzing_scripts_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -16415,10 +11431,10 @@ def get_resources_media_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_media_library_upload_file_result_without_preload_content( + 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[ @@ -16434,7 +11450,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_custom_fuzzing_scripts_upload_file_result Get the result of the upload file operation. @@ -16462,7 +11478,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_custom_fuzzing_scripts_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -16480,9 +11496,9 @@ def get_resources_media_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_media_library_upload_file_result_serialize( + def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -16529,7 +11545,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/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16546,7 +11562,7 @@ def _get_resources_media_library_upload_file_result_serialize( @validate_call - def get_resources_other_library( + def get_resources_flow_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, @@ -16563,9 +11579,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_flow_library - Get all the available other library files. + Get all the available flow library files. :param take: The number of search results to return :type take: int @@ -16593,7 +11609,7 @@ def get_resources_other_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_serialize( + _param = self._get_resources_flow_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -16612,10 +11628,10 @@ def get_resources_other_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_other_library_with_http_info( + def get_resources_flow_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, @@ -16632,9 +11648,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_flow_library - Get all the available other library files. + Get all the available flow library files. :param take: The number of search results to return :type take: int @@ -16662,7 +11678,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_flow_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -16681,10 +11697,10 @@ def get_resources_other_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_other_library_without_preload_content( + def get_resources_flow_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, @@ -16701,9 +11717,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_flow_library - Get all the available other library files. + Get all the available flow library files. :param take: The number of search results to return :type take: int @@ -16731,7 +11747,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_flow_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -16750,9 +11766,9 @@ def get_resources_other_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_other_library_serialize( + def _get_resources_flow_library_serialize( self, take, skip, @@ -16806,7 +11822,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/flow-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16823,9 +11839,9 @@ def _get_resources_other_library_serialize( @validate_call - def get_resources_other_library_by_id( + def get_resources_flow_library_by_id( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16839,12 +11855,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_flow_library_by_id - Get a particular other library file. + Get a particular flow library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_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 @@ -16867,8 +11883,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_flow_library_by_id_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16886,12 +11902,12 @@ def get_resources_other_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_other_library_by_id_with_http_info( + def get_resources_flow_library_by_id_with_http_info( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16905,12 +11921,207 @@ 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_flow_library_by_id - Get a particular other library file. + Get a particular flow library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_flow_library_by_id_serialize( + flow_library_id=flow_library_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_flow_library_by_id_without_preload_content( + self, + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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: + """get_resources_flow_library_by_id + + Get a particular flow library file. + + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_flow_library_by_id_serialize( + flow_library_id=flow_library_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_flow_library_by_id_serialize( + self, + flow_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 flow_library_id is not None: + _path_params['flowLibraryId'] = flow_library_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/flow-library/{flowLibraryId}', + 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_flow_library_content_file( + self, + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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, + ) -> bytearray: + """get_resources_flow_library_content_file + + Get the content of a particular flow library file. + + :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 @@ -16933,8 +12144,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_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16942,22 +12153,84 @@ def get_resources_other_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) + + + @validate_call + def get_resources_flow_library_content_file_with_http_info( + self, + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow 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[bytearray]: + """get_resources_flow_library_content_file + + Get the content of a particular flow library file. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_flow_library_content_file_serialize( + flow_library_id=flow_library_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_other_library_by_id_without_preload_content( + def get_resources_flow_library_content_file_without_preload_content( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16971,12 +12244,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_flow_library_content_file - Get a particular other library file. + Get the content of a particular flow library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_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 @@ -16999,8 +12272,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_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17008,21 +12281,19 @@ def get_resources_other_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_other_library_by_id_serialize( + def _get_resources_flow_library_content_file_serialize( self, - other_library_id, + flow_library_id, _request_auth, _content_type, _headers, @@ -17042,8 +12313,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 flow_library_id is not None: + _path_params['flowLibraryId'] = flow_library_id # process the query parameters # process the header parameters # process the form parameters @@ -17054,6 +12325,7 @@ def _get_resources_other_library_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -17067,7 +12339,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/flow-library/{flowLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17084,9 +12356,9 @@ def _get_resources_other_library_by_id_serialize( @validate_call - def get_resources_other_library_content_file( + def get_resources_flow_library_upload_file_result( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17099,13 +12371,13 @@ def get_resources_other_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_other_library_content_file + ) -> None: + """get_resources_flow_library_upload_file_result - Get the content of a particular other library file. + Get the result of the upload file operation. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17128,8 +12400,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_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17137,20 +12409,21 @@ def get_resources_other_library_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_other_library_content_file_with_http_info( + def get_resources_flow_library_upload_file_result_with_http_info( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17163,13 +12436,13 @@ def get_resources_other_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_other_library_content_file + ) -> ApiResponse[None]: + """get_resources_flow_library_upload_file_result - Get the content of a particular other library file. + Get the result of the upload file operation. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17192,8 +12465,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_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17201,20 +12474,21 @@ def get_resources_other_library_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_other_library_content_file_without_preload_content( + def get_resources_flow_library_upload_file_result_without_preload_content( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17228,12 +12502,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_flow_library_upload_file_result - Get the content of a particular other library file. + Get the result of the upload file operation. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17256,8 +12530,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_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17265,19 +12539,20 @@ def get_resources_other_library_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_other_library_content_file_serialize( + def _get_resources_flow_library_upload_file_result_serialize( self, - other_library_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -17297,8 +12572,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 upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -17309,7 +12584,6 @@ def _get_resources_other_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -17323,7 +12597,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/flow-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17340,9 +12614,9 @@ def _get_resources_other_library_content_file_serialize( @validate_call - def get_resources_other_library_upload_file_result( + def get_resources_global_playlist_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17355,13 +12629,13 @@ def get_resources_other_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_other_library_upload_file_result + ) -> GenericFile: + """get_resources_global_playlist_by_id - Get the result of the upload file operation. + Get a particular global playlists archive file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_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 @@ -17384,8 +12658,8 @@ def get_resources_other_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlist_by_id_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17393,8 +12667,9 @@ def get_resources_other_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -17402,12 +12677,12 @@ def get_resources_other_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_other_library_upload_file_result_with_http_info( + def get_resources_global_playlist_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17420,13 +12695,13 @@ def get_resources_other_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_other_library_upload_file_result + ) -> ApiResponse[GenericFile]: + """get_resources_global_playlist_by_id - Get the result of the upload file operation. + Get a particular global playlists archive file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_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 @@ -17449,8 +12724,8 @@ def get_resources_other_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlist_by_id_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17458,8 +12733,9 @@ def get_resources_other_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -17467,12 +12743,12 @@ def get_resources_other_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_other_library_upload_file_result_without_preload_content( + def get_resources_global_playlist_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17486,12 +12762,12 @@ def get_resources_other_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library_upload_file_result + """get_resources_global_playlist_by_id - Get the result of the upload file operation. + Get a particular global playlists archive file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_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 @@ -17514,8 +12790,8 @@ def get_resources_other_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlist_by_id_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17523,8 +12799,9 @@ def get_resources_other_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -17532,11 +12809,11 @@ def get_resources_other_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_other_library_upload_file_result_serialize( + def _get_resources_global_playlist_by_id_serialize( self, - upload_file_id, + global_playlist_id, _request_auth, _content_type, _headers, @@ -17556,8 +12833,8 @@ def _get_resources_other_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if global_playlist_id is not None: + _path_params['globalPlaylistId'] = global_playlist_id # process the query parameters # process the header parameters # process the form parameters @@ -17581,7 +12858,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/global-playlists/{globalPlaylistId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17598,9 +12875,9 @@ def _get_resources_other_library_upload_file_result_serialize( @validate_call - def get_resources_payload_by_id( + def get_resources_global_playlist_content_file( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17613,13 +12890,13 @@ def get_resources_payload_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_payload_by_id + ) -> bytearray: + """get_resources_global_playlist_content_file - Get a particular payload file. + Get the content of a particular global playlists archive file. - :param payload_id: The ID of the payload. (required) - :type payload_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 @@ -17642,8 +12919,8 @@ def get_resources_payload_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17651,22 +12928,20 @@ def get_resources_payload_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_payload_by_id_with_http_info( + def get_resources_global_playlist_content_file_with_http_info( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17679,13 +12954,13 @@ def get_resources_payload_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_payload_by_id + ) -> ApiResponse[bytearray]: + """get_resources_global_playlist_content_file - Get a particular payload file. + Get the content of a particular global playlists archive file. - :param payload_id: The ID of the payload. (required) - :type payload_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 @@ -17708,8 +12983,8 @@ def get_resources_payload_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17717,22 +12992,20 @@ def get_resources_payload_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_payload_by_id_without_preload_content( + def get_resources_global_playlist_content_file_without_preload_content( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17746,12 +13019,12 @@ def get_resources_payload_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payload_by_id + """get_resources_global_playlist_content_file - Get a particular payload file. + Get the content of a particular global playlists archive file. - :param payload_id: The ID of the payload. (required) - :type payload_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 @@ -17774,8 +13047,8 @@ def get_resources_payload_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17783,21 +13056,19 @@ def get_resources_payload_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_payload_by_id_serialize( + def _get_resources_global_playlist_content_file_serialize( self, - payload_id, + global_playlist_id, _request_auth, _content_type, _headers, @@ -17817,8 +13088,8 @@ def _get_resources_payload_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if payload_id is not None: - _path_params['payloadId'] = payload_id + if global_playlist_id is not None: + _path_params['globalPlaylistId'] = global_playlist_id # process the query parameters # process the header parameters # process the form parameters @@ -17829,6 +13100,7 @@ def _get_resources_payload_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -17842,7 +13114,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/global-playlists/{globalPlaylistId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17859,9 +13131,10 @@ def _get_resources_payload_by_id_serialize( @validate_call - def get_resources_payload_content_file( + def get_resources_global_playlists( 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)], @@ -17874,13 +13147,15 @@ 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 + ) -> GetResourcesCertificates200Response: + """get_resources_global_playlists - Get the content of a particular payload file. + Get all the available global playlists 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 @@ -17903,8 +13178,9 @@ 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_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17912,20 +13188,22 @@ def get_resources_payload_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_payload_content_file_with_http_info( + def get_resources_global_playlists_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)], @@ -17938,13 +13216,15 @@ 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[GetResourcesCertificates200Response]: + """get_resources_global_playlists - Get the content of a particular payload file. + Get all the available global playlists 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 @@ -17967,8 +13247,9 @@ 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_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17976,20 +13257,22 @@ def get_resources_payload_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_payload_content_file_without_preload_content( + def get_resources_global_playlists_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)], @@ -18003,12 +13286,14 @@ 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_global_playlists - Get the content of a particular payload file. + Get all the available global playlists 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 @@ -18031,8 +13316,9 @@ 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_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18040,19 +13326,21 @@ def get_resources_payload_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_payload_content_file_serialize( + def _get_resources_global_playlists_serialize( self, - payload_id, + take, + skip, _request_auth, _content_type, _headers, @@ -18072,9 +13360,15 @@ 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 # 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 @@ -18084,7 +13378,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' ] ) @@ -18098,7 +13391,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/global-playlists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18115,79 +13408,9 @@ def _get_resources_payload_content_file_serialize( @validate_call - 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, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[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_payloads - - Get all the available payload 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_payloads_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_payloads_with_http_info( + def get_resources_global_playlists_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18200,15 +13423,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 + ) -> None: + """get_resources_global_playlists_upload_file_result - Get all the available payload 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 @@ -18231,9 +13452,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_global_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18241,8 +13461,8 @@ def get_resources_payloads_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( @@ -18250,13 +13470,77 @@ def get_resources_payloads_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) + + + @validate_call + 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[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_global_playlists_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_global_playlists_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_payloads_without_preload_content( + def get_resources_global_playlists_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18270,14 +13554,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_global_playlists_upload_file_result - Get all the available payload 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 @@ -18300,9 +13582,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_global_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18310,8 +13591,8 @@ def get_resources_payloads_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( @@ -18319,12 +13600,11 @@ def get_resources_payloads_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_payloads_serialize( + def _get_resources_global_playlists_upload_file_result_serialize( self, - take, - skip, + upload_file_id, _request_auth, _content_type, _headers, @@ -18344,15 +13624,9 @@ def _get_resources_payloads_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 @@ -18375,7 +13649,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/global-playlists/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18392,9 +13666,10 @@ def _get_resources_payloads_serialize( @validate_call - def get_resources_payloads_upload_file_result( + def get_resources_http_library( 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)], @@ -18407,13 +13682,15 @@ def get_resources_payloads_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_payloads_upload_file_result + ) -> GetResourcesCertificates200Response: + """get_resources_http_library - Get the result of the upload file operation. + Get all the available http library files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18436,8 +13713,9 @@ def get_resources_payloads_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18445,8 +13723,8 @@ def get_resources_payloads_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18454,12 +13732,13 @@ def get_resources_payloads_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_payloads_upload_file_result_with_http_info( + def get_resources_http_library_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)], @@ -18472,13 +13751,15 @@ def get_resources_payloads_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_payloads_upload_file_result + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_http_library - Get the result of the upload file operation. + Get all the available http library files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18501,8 +13782,9 @@ def get_resources_payloads_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18510,8 +13792,8 @@ def get_resources_payloads_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18519,12 +13801,13 @@ def get_resources_payloads_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_payloads_upload_file_result_without_preload_content( + def get_resources_http_library_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)], @@ -18538,12 +13821,14 @@ 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_http_library - Get the result of the upload file operation. + Get all the available http library files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18566,8 +13851,9 @@ def get_resources_payloads_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18575,8 +13861,8 @@ def get_resources_payloads_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18584,11 +13870,12 @@ def get_resources_payloads_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_payloads_upload_file_result_serialize( + def _get_resources_http_library_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -18608,9 +13895,15 @@ def _get_resources_payloads_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # 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 @@ -18633,7 +13926,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/http-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18650,9 +13943,9 @@ def _get_resources_payloads_upload_file_result_serialize( @validate_call - def get_resources_pcap_by_id( + def get_resources_http_library_by_id( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18666,12 +13959,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_http_library_by_id - Get a particular pcap file. + Get a particular http library file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_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 @@ -18694,8 +13987,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_http_library_by_id_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18713,12 +14006,12 @@ def get_resources_pcap_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_pcap_by_id_with_http_info( + def get_resources_http_library_by_id_with_http_info( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18732,12 +14025,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_http_library_by_id - Get a particular pcap file. + Get a particular http library file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_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 @@ -18760,8 +14053,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_http_library_by_id_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18779,12 +14072,12 @@ def get_resources_pcap_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_pcap_by_id_without_preload_content( + def get_resources_http_library_by_id_without_preload_content( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18798,12 +14091,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_http_library_by_id - Get a particular pcap file. + Get a particular http library file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_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 @@ -18826,8 +14119,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_http_library_by_id_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18845,11 +14138,11 @@ def get_resources_pcap_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_pcap_by_id_serialize( + def _get_resources_http_library_by_id_serialize( self, - pcap_id, + http_library_id, _request_auth, _content_type, _headers, @@ -18869,8 +14162,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 http_library_id is not None: + _path_params['httpLibraryId'] = http_library_id # process the query parameters # process the header parameters # process the form parameters @@ -18894,7 +14187,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/http-library/{httpLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18911,9 +14204,9 @@ def _get_resources_pcap_by_id_serialize( @validate_call - def get_resources_pcap_content_file( + def get_resources_http_library_content_file( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18927,12 +14220,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_http_library_content_file - Get the content of a particular pcap file. + Get the content of a particular http library file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_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 @@ -18955,8 +14248,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_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18972,12 +14265,12 @@ def get_resources_pcap_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_pcap_content_file_with_http_info( + def get_resources_http_library_content_file_with_http_info( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18991,12 +14284,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_http_library_content_file - Get the content of a particular pcap file. + Get the content of a particular http library file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_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 @@ -19019,8 +14312,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_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19036,12 +14329,12 @@ def get_resources_pcap_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_pcap_content_file_without_preload_content( + def get_resources_http_library_content_file_without_preload_content( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19055,12 +14348,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_http_library_content_file - Get the content of a particular pcap file. + Get the content of a particular http library file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_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 @@ -19083,8 +14376,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_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19100,11 +14393,11 @@ def get_resources_pcap_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_pcap_content_file_serialize( + def _get_resources_http_library_content_file_serialize( self, - pcap_id, + http_library_id, _request_auth, _content_type, _headers, @@ -19124,8 +14417,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 http_library_id is not None: + _path_params['httpLibraryId'] = http_library_id # process the query parameters # process the header parameters # process the form parameters @@ -19150,7 +14443,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/http-library/{httpLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19167,10 +14460,9 @@ def _get_resources_pcap_content_file_serialize( @validate_call - def get_resources_pcaps( + def get_resources_http_library_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)], @@ -19183,15 +14475,13 @@ def get_resources_pcaps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_pcaps + ) -> None: + """get_resources_http_library_upload_file_result - Get all the available pcap 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 @@ -19214,9 +14504,8 @@ def get_resources_pcaps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19224,8 +14513,8 @@ def get_resources_pcaps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19233,13 +14522,12 @@ def get_resources_pcaps( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_pcaps_with_http_info( + def get_resources_http_library_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)], @@ -19252,15 +14540,13 @@ def get_resources_pcaps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_pcaps + ) -> ApiResponse[None]: + """get_resources_http_library_upload_file_result - Get all the available pcap 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 @@ -19283,9 +14569,8 @@ def get_resources_pcaps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19293,8 +14578,8 @@ def get_resources_pcaps_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( @@ -19302,13 +14587,12 @@ def get_resources_pcaps_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_pcaps_without_preload_content( + def get_resources_http_library_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)], @@ -19322,14 +14606,12 @@ def get_resources_pcaps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcaps + """get_resources_http_library_upload_file_result - Get all the available pcap 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 @@ -19352,9 +14634,8 @@ def get_resources_pcaps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19362,8 +14643,8 @@ def get_resources_pcaps_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( @@ -19371,12 +14652,11 @@ def get_resources_pcaps_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_pcaps_serialize( + def _get_resources_http_library_upload_file_result_serialize( self, - take, - skip, + upload_file_id, _request_auth, _content_type, _headers, @@ -19396,15 +14676,9 @@ def _get_resources_pcaps_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 @@ -19427,7 +14701,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/http-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19444,9 +14718,9 @@ def _get_resources_pcaps_serialize( @validate_call - def get_resources_pcaps_upload_file_result( + def get_resources_http_profile_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19459,13 +14733,13 @@ def get_resources_pcaps_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_pcaps_upload_file_result + ) -> HTTPProfile: + """get_resources_http_profile_by_id - Get the result of the upload file operation. + Get a particular HTTP profile. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :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 @@ -19488,8 +14762,8 @@ def get_resources_pcaps_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19497,8 +14771,8 @@ def get_resources_pcaps_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19506,12 +14780,12 @@ def get_resources_pcaps_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_pcaps_upload_file_result_with_http_info( + def get_resources_http_profile_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19524,13 +14798,13 @@ def get_resources_pcaps_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_pcaps_upload_file_result + ) -> ApiResponse[HTTPProfile]: + """get_resources_http_profile_by_id - Get the result of the upload file operation. + Get a particular HTTP profile. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :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 @@ -19553,8 +14827,8 @@ def get_resources_pcaps_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19562,8 +14836,8 @@ def get_resources_pcaps_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19571,12 +14845,12 @@ def get_resources_pcaps_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_pcaps_upload_file_result_without_preload_content( + def get_resources_http_profile_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19590,12 +14864,12 @@ def get_resources_pcaps_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcaps_upload_file_result + """get_resources_http_profile_by_id - Get the result of the upload file operation. + Get a particular HTTP profile. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :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 @@ -19618,8 +14892,8 @@ def get_resources_pcaps_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19627,8 +14901,8 @@ def get_resources_pcaps_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19636,11 +14910,11 @@ def get_resources_pcaps_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_pcaps_upload_file_result_serialize( + def _get_resources_http_profile_by_id_serialize( self, - upload_file_id, + http_profile_id, _request_auth, _content_type, _headers, @@ -19660,8 +14934,8 @@ def _get_resources_pcaps_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if http_profile_id is not None: + _path_params['httpProfileId'] = http_profile_id # process the query parameters # process the header parameters # process the form parameters @@ -19685,7 +14959,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/http-profiles/{httpProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19702,9 +14976,10 @@ def _get_resources_pcaps_upload_file_result_serialize( @validate_call - def get_resources_playlist_by_id( + def get_resources_http_profiles( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19717,13 +14992,15 @@ def get_resources_playlist_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_playlist_by_id + ) -> GetResourcesHttpProfiles200Response: + """get_resources_http_profiles - Get a particular playlist file. + Get all the available HTTP profiles. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19746,8 +15023,9 @@ def get_resources_playlist_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19755,9 +15033,7 @@ def get_resources_playlist_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19765,12 +15041,13 @@ def get_resources_playlist_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_playlist_by_id_with_http_info( + def get_resources_http_profiles_with_http_info( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19783,13 +15060,15 @@ def get_resources_playlist_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_playlist_by_id + ) -> ApiResponse[GetResourcesHttpProfiles200Response]: + """get_resources_http_profiles - Get a particular playlist file. + Get all the available HTTP profiles. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19812,8 +15091,9 @@ def get_resources_playlist_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19821,9 +15101,7 @@ def get_resources_playlist_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19831,12 +15109,13 @@ def get_resources_playlist_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_playlist_by_id_without_preload_content( + def get_resources_http_profiles_without_preload_content( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19850,12 +15129,14 @@ def get_resources_playlist_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlist_by_id + """get_resources_http_profiles - Get a particular playlist file. + Get all the available HTTP profiles. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19878,8 +15159,9 @@ def get_resources_playlist_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19887,9 +15169,7 @@ def get_resources_playlist_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19897,11 +15177,12 @@ def get_resources_playlist_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_playlist_by_id_serialize( + def _get_resources_http_profiles_serialize( self, - playlist_id, + take, + skip, _request_auth, _content_type, _headers, @@ -19921,9 +15202,15 @@ def _get_resources_playlist_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if playlist_id is not None: - _path_params['playlistId'] = playlist_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -19946,7 +15233,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/http-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19963,9 +15250,9 @@ def _get_resources_playlist_by_id_serialize( @validate_call - def get_resources_playlist_content_file( + def get_resources_media_file_by_id( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19978,13 +15265,13 @@ def get_resources_playlist_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_playlist_content_file + ) -> GenericFile: + """get_resources_media_file_by_id - Get the content of a particular playlist file. + Get a particular media file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_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 @@ -20007,8 +15294,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_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20016,20 +15303,22 @@ def get_resources_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_playlist_content_file_with_http_info( + def get_resources_media_file_by_id_with_http_info( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20042,13 +15331,13 @@ def get_resources_playlist_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_playlist_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_media_file_by_id - Get the content of a particular playlist file. + Get a particular media file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_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 @@ -20071,8 +15360,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_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20080,20 +15369,22 @@ def get_resources_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_playlist_content_file_without_preload_content( + def get_resources_media_file_by_id_without_preload_content( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20107,12 +15398,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_media_file_by_id - Get the content of a particular playlist file. + Get a particular media file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_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 @@ -20135,8 +15426,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_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20144,19 +15435,21 @@ def get_resources_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_playlist_content_file_serialize( + def _get_resources_media_file_by_id_serialize( self, - playlist_id, + media_file_id, _request_auth, _content_type, _headers, @@ -20176,8 +15469,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 media_file_id is not None: + _path_params['mediaFileId'] = media_file_id # process the query parameters # process the header parameters # process the form parameters @@ -20188,7 +15481,6 @@ def _get_resources_playlist_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -20202,7 +15494,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/media-files/{mediaFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20219,10 +15511,9 @@ def _get_resources_playlist_content_file_serialize( @validate_call - def get_resources_playlist_values( + def get_resources_media_file_content_file( 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, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20235,15 +15526,13 @@ def get_resources_playlist_values( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_playlist_values + ) -> bytearray: + """get_resources_media_file_content_file - Get some specific values from a playlist file. + Get the content of a particular media file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str + :param 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 @@ -20266,9 +15555,8 @@ 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_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20276,22 +15564,20 @@ def get_resources_playlist_values( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "bytearray", '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_playlist_values_with_http_info( + def get_resources_media_file_content_file_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, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20304,15 +15590,13 @@ def get_resources_playlist_values_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_playlist_values + ) -> ApiResponse[bytearray]: + """get_resources_media_file_content_file - Get some specific values from a playlist file. + Get the content of a particular media file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str + :param 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 @@ -20335,9 +15619,8 @@ 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_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20345,22 +15628,20 @@ def get_resources_playlist_values_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "bytearray", '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_playlist_values_without_preload_content( + def get_resources_media_file_content_file_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, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20374,14 +15655,12 @@ def get_resources_playlist_values_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlist_values + """get_resources_media_file_content_file - Get some specific values from a playlist file. + Get the content of a particular media file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str + :param 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 @@ -20404,9 +15683,8 @@ 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_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20414,21 +15692,19 @@ def get_resources_playlist_values_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_playlist_values_serialize( + def _get_resources_media_file_content_file_serialize( self, - playlist_id, - filter, + media_file_id, _request_auth, _content_type, _headers, @@ -20448,13 +15724,9 @@ 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 + if media_file_id is not None: + _path_params['mediaFileId'] = media_file_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 @@ -20464,6 +15736,7 @@ def _get_resources_playlist_values_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -20477,7 +15750,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/media-files/{mediaFileId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20494,7 +15767,7 @@ def _get_resources_playlist_values_serialize( @validate_call - def get_resources_playlists( + def get_resources_media_files( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -20511,9 +15784,9 @@ def get_resources_playlists( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_playlists + """get_resources_media_files - Get all the available playlist files. + Get all the available media files. :param take: The number of search results to return :type take: int @@ -20541,7 +15814,7 @@ def get_resources_playlists( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( + _param = self._get_resources_media_files_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -20560,10 +15833,10 @@ def get_resources_playlists( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_playlists_with_http_info( + def get_resources_media_files_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -20580,9 +15853,9 @@ def get_resources_playlists_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_playlists + """get_resources_media_files - Get all the available playlist files. + Get all the available media files. :param take: The number of search results to return :type take: int @@ -20610,7 +15883,7 @@ def get_resources_playlists_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( + _param = self._get_resources_media_files_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -20629,10 +15902,10 @@ def get_resources_playlists_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_playlists_without_preload_content( + def get_resources_media_files_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -20649,9 +15922,9 @@ 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_media_files - Get all the available playlist files. + Get all the available media files. :param take: The number of search results to return :type take: int @@ -20679,7 +15952,7 @@ def get_resources_playlists_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( + _param = self._get_resources_media_files_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -20698,9 +15971,9 @@ def get_resources_playlists_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_playlists_serialize( + def _get_resources_media_files_serialize( self, take, skip, @@ -20754,7 +16027,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/media-files', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20771,7 +16044,7 @@ def _get_resources_playlists_serialize( @validate_call - def get_resources_playlists_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[ @@ -20787,7 +16060,7 @@ def get_resources_playlists_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_playlists_upload_file_result + """get_resources_media_files_upload_file_result Get the result of the upload file operation. @@ -20815,7 +16088,7 @@ def get_resources_playlists_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_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, @@ -20833,10 +16106,10 @@ def get_resources_playlists_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_playlists_upload_file_result_with_http_info( + 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[ @@ -20852,7 +16125,7 @@ def get_resources_playlists_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_playlists_upload_file_result + """get_resources_media_files_upload_file_result Get the result of the upload file operation. @@ -20880,7 +16153,7 @@ 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( + _param = self._get_resources_media_files_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -20898,10 +16171,10 @@ def get_resources_playlists_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_playlists_upload_file_result_without_preload_content( + 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[ @@ -20917,7 +16190,7 @@ 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_media_files_upload_file_result Get the result of the upload file operation. @@ -20945,7 +16218,7 @@ 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( + _param = self._get_resources_media_files_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -20963,9 +16236,9 @@ def get_resources_playlists_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_playlists_upload_file_result_serialize( + def _get_resources_media_files_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -21012,7 +16285,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/media-files/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21029,7 +16302,7 @@ def _get_resources_playlists_upload_file_result_serialize( @validate_call - def get_resources_sip_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, @@ -21046,9 +16319,9 @@ def get_resources_sip_library( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_sip_library + """get_resources_media_library - Get all the available sip library files. + Get all the available media library files. :param take: The number of search results to return :type take: int @@ -21076,7 +16349,7 @@ def get_resources_sip_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( + _param = self._get_resources_media_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -21095,10 +16368,10 @@ def get_resources_sip_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_sip_library_with_http_info( + 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, @@ -21115,9 +16388,9 @@ def get_resources_sip_library_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_sip_library + """get_resources_media_library - Get all the available sip library files. + Get all the available media library files. :param take: The number of search results to return :type take: int @@ -21145,7 +16418,7 @@ def get_resources_sip_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( + _param = self._get_resources_media_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -21164,10 +16437,10 @@ def get_resources_sip_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_sip_library_without_preload_content( + 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, @@ -21184,9 +16457,9 @@ def get_resources_sip_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library + """get_resources_media_library - Get all the available sip library files. + Get all the available media library files. :param take: The number of search results to return :type take: int @@ -21214,7 +16487,7 @@ def get_resources_sip_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( + _param = self._get_resources_media_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -21233,9 +16506,9 @@ def get_resources_sip_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_sip_library_serialize( + def _get_resources_media_library_serialize( self, take, skip, @@ -21289,7 +16562,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/media-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21306,9 +16579,9 @@ def _get_resources_sip_library_serialize( @validate_call - def get_resources_sip_library_by_id( + def get_resources_media_library_by_id( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21322,12 +16595,12 @@ def get_resources_sip_library_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_sip_library_by_id + """get_resources_media_library_by_id - Get a particular sip library file. + Get a particular media library file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_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 @@ -21350,8 +16623,8 @@ def get_resources_sip_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21369,12 +16642,12 @@ def get_resources_sip_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_sip_library_by_id_with_http_info( + def get_resources_media_library_by_id_with_http_info( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21388,12 +16661,12 @@ def get_resources_sip_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_sip_library_by_id + """get_resources_media_library_by_id - Get a particular sip library file. + Get a particular media library file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_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 @@ -21416,8 +16689,8 @@ def get_resources_sip_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21435,12 +16708,12 @@ def get_resources_sip_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_sip_library_by_id_without_preload_content( + def get_resources_media_library_by_id_without_preload_content( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21454,12 +16727,12 @@ def get_resources_sip_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library_by_id + """get_resources_media_library_by_id - Get a particular sip library file. + Get a particular media library file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_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 @@ -21482,8 +16755,8 @@ def get_resources_sip_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21501,11 +16774,11 @@ def get_resources_sip_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_sip_library_by_id_serialize( + def _get_resources_media_library_by_id_serialize( self, - sip_library_id, + media_library_id, _request_auth, _content_type, _headers, @@ -21525,8 +16798,8 @@ def _get_resources_sip_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if sip_library_id is not None: - _path_params['sipLibraryId'] = sip_library_id + if media_library_id is not None: + _path_params['mediaLibraryId'] = media_library_id # process the query parameters # process the header parameters # process the form parameters @@ -21550,7 +16823,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/media-library/{mediaLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21567,9 +16840,9 @@ def _get_resources_sip_library_by_id_serialize( @validate_call - def get_resources_sip_library_content_file( + def get_resources_media_library_content_file( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21583,12 +16856,12 @@ def get_resources_sip_library_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_sip_library_content_file + """get_resources_media_library_content_file - Get the content of a particular sip library file. + Get the content of a particular media library file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_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 @@ -21611,8 +16884,8 @@ 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_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21628,12 +16901,12 @@ def get_resources_sip_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_sip_library_content_file_with_http_info( + def get_resources_media_library_content_file_with_http_info( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21647,12 +16920,12 @@ def get_resources_sip_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_sip_library_content_file + """get_resources_media_library_content_file - Get the content of a particular sip library file. + Get the content of a particular media library file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_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 @@ -21675,8 +16948,8 @@ 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_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21692,12 +16965,12 @@ def get_resources_sip_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_sip_library_content_file_without_preload_content( + def get_resources_media_library_content_file_without_preload_content( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21711,12 +16984,12 @@ 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_media_library_content_file - Get the content of a particular sip library file. + Get the content of a particular media library file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_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 @@ -21739,8 +17012,8 @@ 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_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21756,11 +17029,11 @@ def get_resources_sip_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_sip_library_content_file_serialize( + def _get_resources_media_library_content_file_serialize( self, - sip_library_id, + media_library_id, _request_auth, _content_type, _headers, @@ -21780,8 +17053,8 @@ 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 + 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 @@ -21806,7 +17079,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/media-library/{mediaLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21823,7 +17096,7 @@ def _get_resources_sip_library_content_file_serialize( @validate_call - def get_resources_sip_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[ @@ -21839,7 +17112,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_media_library_upload_file_result Get the result of the upload file operation. @@ -21867,7 +17140,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_media_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -21885,10 +17158,10 @@ def get_resources_sip_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_sip_library_upload_file_result_with_http_info( + 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[ @@ -21904,7 +17177,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_media_library_upload_file_result Get the result of the upload file operation. @@ -21932,7 +17205,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_media_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -21950,10 +17223,10 @@ def get_resources_sip_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_sip_library_upload_file_result_without_preload_content( + 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[ @@ -21969,7 +17242,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_media_library_upload_file_result Get the result of the upload file operation. @@ -21997,7 +17270,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_media_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -22015,9 +17288,9 @@ def get_resources_sip_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_sip_library_upload_file_result_serialize( + def _get_resources_media_library_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -22064,7 +17337,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/media-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22081,7 +17354,7 @@ def _get_resources_sip_library_upload_file_result_serialize( @validate_call - def get_resources_stats_profile( + def get_resources_other_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, @@ -22098,9 +17371,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_other_library - Get all the available stats profile files. + Get all the available other library files. :param take: The number of search results to return :type take: int @@ -22128,7 +17401,7 @@ def get_resources_stats_profile( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_serialize( + _param = self._get_resources_other_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -22147,10 +17420,10 @@ def get_resources_stats_profile( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_stats_profile_with_http_info( + def get_resources_other_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, @@ -22167,9 +17440,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_other_library - Get all the available stats profile files. + Get all the available other library files. :param take: The number of search results to return :type take: int @@ -22197,7 +17470,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_other_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -22216,10 +17489,10 @@ def get_resources_stats_profile_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_stats_profile_without_preload_content( + def get_resources_other_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, @@ -22236,9 +17509,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_other_library - Get all the available stats profile files. + Get all the available other library files. :param take: The number of search results to return :type take: int @@ -22266,7 +17539,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_other_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -22285,9 +17558,9 @@ def get_resources_stats_profile_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_stats_profile_serialize( + def _get_resources_other_library_serialize( self, take, skip, @@ -22341,7 +17614,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/other-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22358,9 +17631,9 @@ def _get_resources_stats_profile_serialize( @validate_call - def get_resources_stats_profile_by_id( + def get_resources_other_library_by_id( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22374,12 +17647,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_other_library_by_id - Get a particular stats profile file. + Get a particular other library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_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 @@ -22402,8 +17675,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_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22421,12 +17694,12 @@ def get_resources_stats_profile_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_stats_profile_by_id_with_http_info( + def get_resources_other_library_by_id_with_http_info( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22440,12 +17713,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_other_library_by_id - Get a particular stats profile file. + Get a particular other library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_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 @@ -22468,8 +17741,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_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22487,12 +17760,12 @@ def get_resources_stats_profile_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_stats_profile_by_id_without_preload_content( + def get_resources_other_library_by_id_without_preload_content( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22506,12 +17779,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_other_library_by_id - Get a particular stats profile file. + Get a particular other library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_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 @@ -22534,8 +17807,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_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22553,11 +17826,11 @@ def get_resources_stats_profile_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_stats_profile_by_id_serialize( + def _get_resources_other_library_by_id_serialize( self, - stats_profile_id, + other_library_id, _request_auth, _content_type, _headers, @@ -22577,8 +17850,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 other_library_id is not None: + _path_params['otherLibraryId'] = other_library_id # process the query parameters # process the header parameters # process the form parameters @@ -22602,7 +17875,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/other-library/{otherLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22619,9 +17892,9 @@ def _get_resources_stats_profile_by_id_serialize( @validate_call - def get_resources_stats_profile_content_file( + def get_resources_other_library_content_file( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22635,12 +17908,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_other_library_content_file - Get the content of a particular stats profile file. + Get the content of a particular other library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_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 @@ -22663,8 +17936,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_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22680,12 +17953,12 @@ def get_resources_stats_profile_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_stats_profile_content_file_with_http_info( + def get_resources_other_library_content_file_with_http_info( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22699,12 +17972,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_other_library_content_file - Get the content of a particular stats profile file. + Get the content of a particular other library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_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 @@ -22727,8 +18000,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_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22744,12 +18017,12 @@ def get_resources_stats_profile_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_stats_profile_content_file_without_preload_content( + def get_resources_other_library_content_file_without_preload_content( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22763,12 +18036,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_resources_other_library_content_file - Get the content of a particular stats profile file. + Get the content of a particular other library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_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 @@ -22791,8 +18064,8 @@ def get_resources_stats_profile_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_content_file_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22808,11 +18081,11 @@ def get_resources_stats_profile_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_stats_profile_content_file_serialize( + def _get_resources_other_library_content_file_serialize( self, - stats_profile_id, + other_library_id, _request_auth, _content_type, _headers, @@ -22832,8 +18105,8 @@ def _get_resources_stats_profile_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if stats_profile_id is not None: - _path_params['statsProfileId'] = stats_profile_id + 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 @@ -22858,7 +18131,7 @@ def _get_resources_stats_profile_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile/{statsProfileId}/contentFile', + resource_path='/api/v2/resources/other-library/{otherLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22875,7 +18148,7 @@ def _get_resources_stats_profile_content_file_serialize( @validate_call - def get_resources_stats_profile_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[ @@ -22891,7 +18164,7 @@ def get_resources_stats_profile_upload_file_result( _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_other_library_upload_file_result Get the result of the upload file operation. @@ -22919,7 +18192,7 @@ 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( + _param = self._get_resources_other_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -22937,10 +18210,10 @@ def get_resources_stats_profile_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_stats_profile_upload_file_result_with_http_info( + 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[ @@ -22956,7 +18229,7 @@ def get_resources_stats_profile_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_stats_profile_upload_file_result + """get_resources_other_library_upload_file_result Get the result of the upload file operation. @@ -22984,7 +18257,7 @@ def get_resources_stats_profile_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_upload_file_result_serialize( + _param = self._get_resources_other_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -23002,10 +18275,10 @@ def get_resources_stats_profile_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_stats_profile_upload_file_result_without_preload_content( + 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[ @@ -23021,7 +18294,7 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_stats_profile_upload_file_result + """get_resources_other_library_upload_file_result Get the result of the upload file operation. @@ -23049,7 +18322,7 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_upload_file_result_serialize( + _param = self._get_resources_other_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -23067,9 +18340,9 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_stats_profile_upload_file_result_serialize( + def _get_resources_other_library_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -23116,7 +18389,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/other-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23133,9 +18406,9 @@ def _get_resources_stats_profile_upload_file_result_serialize( @validate_call - def get_resources_strike_by_id( + def get_resources_payload_by_id( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23148,13 +18421,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 + ) -> GenericFile: + """get_resources_payload_by_id - Get a particular strike. + Get a particular payload file. - :param strike_id: The ID of the strike. (required) - :type strike_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 @@ -23177,8 +18450,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_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23186,7 +18459,9 @@ def get_resources_strike_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23194,12 +18469,12 @@ def get_resources_strike_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_strike_by_id_with_http_info( + def get_resources_payload_by_id_with_http_info( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23212,13 +18487,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[GenericFile]: + """get_resources_payload_by_id - Get a particular strike. + Get a particular payload file. - :param strike_id: The ID of the strike. (required) - :type strike_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 @@ -23241,8 +18516,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_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23250,7 +18525,9 @@ def get_resources_strike_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23258,12 +18535,12 @@ def get_resources_strike_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_strike_by_id_without_preload_content( + def get_resources_payload_by_id_without_preload_content( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23277,12 +18554,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_payload_by_id - Get a particular strike. + Get a particular payload file. - :param strike_id: The ID of the strike. (required) - :type strike_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 @@ -23305,8 +18582,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_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23314,7 +18591,9 @@ def get_resources_strike_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23322,11 +18601,11 @@ def get_resources_strike_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_strike_by_id_serialize( + def _get_resources_payload_by_id_serialize( self, - strike_id, + payload_id, _request_auth, _content_type, _headers, @@ -23346,8 +18625,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 payload_id is not None: + _path_params['payloadId'] = payload_id # process the query parameters # process the header parameters # process the form parameters @@ -23371,7 +18650,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/payloads/{payloadId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23388,10 +18667,9 @@ def _get_resources_strike_by_id_serialize( @validate_call - def get_resources_strike_categories( + def get_resources_payload_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, + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23404,14 +18682,13 @@ def get_resources_strike_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Category]: - """get_resources_strike_categories + ) -> bytearray: + """get_resources_payload_content_file + Get the content of a particular payload file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23434,9 +18711,8 @@ def get_resources_strike_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23444,21 +18720,20 @@ def get_resources_strike_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", - '500': "ErrorResponse", + '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_strike_categories_with_http_info( + def get_resources_payload_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, + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23471,14 +18746,13 @@ def get_resources_strike_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Category]]: - """get_resources_strike_categories + ) -> ApiResponse[bytearray]: + """get_resources_payload_content_file + Get the content of a particular payload file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23501,9 +18775,8 @@ def get_resources_strike_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23511,21 +18784,20 @@ def get_resources_strike_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", - '500': "ErrorResponse", + '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_strike_categories_without_preload_content( + def get_resources_payload_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, + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23539,13 +18811,12 @@ 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_payload_content_file + Get the content of a particular payload file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23568,9 +18839,8 @@ def get_resources_strike_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23578,20 +18848,19 @@ def get_resources_strike_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_strike_categories_serialize( + def _get_resources_payload_content_file_serialize( self, - take, - skip, + payload_id, _request_auth, _content_type, _headers, @@ -23611,15 +18880,9 @@ def _get_resources_strike_categories_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 @@ -23629,6 +18892,7 @@ def _get_resources_strike_categories_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -23642,7 +18906,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/payloads/{payloadId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23659,16 +18923,10 @@ def _get_resources_strike_categories_serialize( @validate_call - def get_resources_strikes( + 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, - 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)], @@ -23681,27 +18939,15 @@ 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 + ) -> GetResourcesCertificates200Response: + """get_resources_payloads - Get all the available strikes. + Get all the available payload 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 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 @@ -23724,15 +18970,9 @@ def get_resources_strikes( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( + _param = self._get_resources_payloads_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, @@ -23740,8 +18980,8 @@ def get_resources_strikes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23749,19 +18989,13 @@ def get_resources_strikes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_strikes_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, - 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)], @@ -23774,27 +19008,15 @@ 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[GetResourcesCertificates200Response]: + """get_resources_payloads - Get all the available strikes. + Get all the available payload 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 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 @@ -23817,15 +19039,9 @@ def get_resources_strikes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( + _param = self._get_resources_payloads_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, @@ -23833,8 +19049,8 @@ def get_resources_strikes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23842,19 +19058,13 @@ def get_resources_strikes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_strikes_without_preload_content( + 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, - 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)], @@ -23868,26 +19078,14 @@ 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_payloads - Get all the available strikes. + Get all the available payload 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 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 @@ -23910,15 +19108,9 @@ def get_resources_strikes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( + _param = self._get_resources_payloads_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, @@ -23926,8 +19118,8 @@ def get_resources_strikes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23935,18 +19127,12 @@ def get_resources_strikes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_strikes_serialize( + def _get_resources_payloads_serialize( self, take, skip, - search_col, - search_val, - filter_mode, - sort, - compatible_with, - categories, _request_auth, _content_type, _headers, @@ -23975,30 +19161,6 @@ def _get_resources_strikes_serialize( _query_params.append(('skip', skip)) - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - - if 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 @@ -24021,7 +19183,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/payloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24038,9 +19200,9 @@ def _get_resources_strikes_serialize( @validate_call - def get_resources_tls_certificate_by_id( + def get_resources_payloads_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)], @@ -24053,13 +19215,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 + ) -> None: + """get_resources_payloads_upload_file_result - Get 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 @@ -24082,8 +19244,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_payloads_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24091,9 +19253,8 @@ def get_resources_tls_certificate_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24101,12 +19262,12 @@ def get_resources_tls_certificate_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_certificate_by_id_with_http_info( + def get_resources_payloads_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)], @@ -24119,13 +19280,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[None]: + """get_resources_payloads_upload_file_result - Get 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 @@ -24148,8 +19309,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_payloads_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24157,9 +19318,8 @@ def get_resources_tls_certificate_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24167,12 +19327,12 @@ def get_resources_tls_certificate_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_certificate_by_id_without_preload_content( + def get_resources_payloads_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)], @@ -24186,12 +19346,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_payloads_upload_file_result - Get 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 @@ -24214,8 +19374,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_payloads_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24223,9 +19383,8 @@ def get_resources_tls_certificate_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24233,11 +19392,11 @@ def get_resources_tls_certificate_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_certificate_by_id_serialize( + def _get_resources_payloads_upload_file_result_serialize( self, - tls_certificate_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -24257,8 +19416,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 upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -24282,7 +19441,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/payloads/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24299,9 +19458,9 @@ def _get_resources_tls_certificate_by_id_serialize( @validate_call - def get_resources_tls_certificate_content_file( + def get_resources_pcap_by_id( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24314,13 +19473,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 + ) -> GenericFile: + """get_resources_pcap_by_id - Get the content of a particular TLS certificate file. + Get a particular pcap file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_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 @@ -24343,8 +19502,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_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24352,20 +19511,22 @@ def get_resources_tls_certificate_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_certificate_content_file_with_http_info( + def get_resources_pcap_by_id_with_http_info( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24378,13 +19539,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[GenericFile]: + """get_resources_pcap_by_id - Get the content of a particular TLS certificate file. + Get a particular pcap file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_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 @@ -24407,8 +19568,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_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24416,20 +19577,22 @@ def get_resources_tls_certificate_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_certificate_content_file_without_preload_content( + def get_resources_pcap_by_id_without_preload_content( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24443,12 +19606,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_pcap_by_id - Get the content of a particular TLS certificate file. + Get a particular pcap file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_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 @@ -24471,8 +19634,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_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24480,19 +19643,21 @@ def get_resources_tls_certificate_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_certificate_content_file_serialize( + def _get_resources_pcap_by_id_serialize( self, - tls_certificate_id, + pcap_id, _request_auth, _content_type, _headers, @@ -24512,8 +19677,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 pcap_id is not None: + _path_params['pcapId'] = pcap_id # process the query parameters # process the header parameters # process the form parameters @@ -24524,7 +19689,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' ] ) @@ -24538,7 +19702,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/pcaps/{pcapId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24555,10 +19719,9 @@ def _get_resources_tls_certificate_content_file_serialize( @validate_call - def get_resources_tls_certificates( + def get_resources_pcap_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, + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24571,15 +19734,13 @@ 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 + ) -> bytearray: + """get_resources_pcap_content_file - Get all the available TLS certificate files + Get the content of a particular pcap file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24602,9 +19763,8 @@ def get_resources_tls_certificates( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24612,22 +19772,20 @@ def get_resources_tls_certificates( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_certificates_with_http_info( + def get_resources_pcap_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, + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24640,15 +19798,13 @@ 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[bytearray]: + """get_resources_pcap_content_file - Get all the available TLS certificate files + Get the content of a particular pcap file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24671,9 +19827,8 @@ def get_resources_tls_certificates_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24681,22 +19836,20 @@ def get_resources_tls_certificates_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_certificates_without_preload_content( + def get_resources_pcap_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, + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24710,14 +19863,12 @@ 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_pcap_content_file - Get all the available TLS certificate files + Get the content of a particular pcap file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24740,9 +19891,8 @@ def get_resources_tls_certificates_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24750,21 +19900,19 @@ def get_resources_tls_certificates_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_certificates_serialize( + def _get_resources_pcap_content_file_serialize( self, - take, - skip, + pcap_id, _request_auth, _content_type, _headers, @@ -24784,15 +19932,9 @@ def _get_resources_tls_certificates_serialize( _body_params: Optional[bytes] = None # process the path parameters + if pcap_id is not None: + _path_params['pcapId'] = pcap_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -24802,6 +19944,7 @@ def _get_resources_tls_certificates_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -24815,7 +19958,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/pcaps/{pcapId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24832,9 +19975,10 @@ def _get_resources_tls_certificates_serialize( @validate_call - def get_resources_tls_certificates_upload_file_result( + def get_resources_pcaps( 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)], @@ -24847,13 +19991,15 @@ 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 + ) -> GetResourcesCertificates200Response: + """get_resources_pcaps - Get the result of the upload file operation. + Get all the available pcap files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24876,8 +20022,9 @@ 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_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24885,8 +20032,8 @@ def get_resources_tls_certificates_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24894,12 +20041,13 @@ def get_resources_tls_certificates_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_certificates_upload_file_result_with_http_info( + def get_resources_pcaps_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)], @@ -24912,13 +20060,15 @@ 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[GetResourcesCertificates200Response]: + """get_resources_pcaps - Get the result of the upload file operation. + Get all the available pcap files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24941,8 +20091,9 @@ 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_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24950,8 +20101,8 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24959,12 +20110,13 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_certificates_upload_file_result_without_preload_content( + def get_resources_pcaps_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)], @@ -24978,12 +20130,14 @@ 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_pcaps - Get the result of the upload file operation. + Get all the available pcap files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25006,8 +20160,9 @@ 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_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25015,8 +20170,8 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25024,11 +20179,12 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_certificates_upload_file_result_serialize( + def _get_resources_pcaps_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -25048,9 +20204,15 @@ 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 # 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 @@ -25073,7 +20235,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/pcaps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25090,9 +20252,9 @@ def _get_resources_tls_certificates_upload_file_result_serialize( @validate_call - def get_resources_tls_dh_by_id( + def get_resources_pcaps_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)], @@ -25105,13 +20267,13 @@ 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 + ) -> None: + """get_resources_pcaps_upload_file_result - Get 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 @@ -25134,8 +20296,8 @@ def get_resources_tls_dh_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25143,9 +20305,8 @@ def get_resources_tls_dh_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25153,12 +20314,12 @@ def get_resources_tls_dh_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_dh_by_id_with_http_info( + def get_resources_pcaps_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)], @@ -25171,13 +20332,13 @@ 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[None]: + """get_resources_pcaps_upload_file_result - Get 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 @@ -25200,8 +20361,8 @@ def get_resources_tls_dh_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25209,9 +20370,8 @@ def get_resources_tls_dh_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25219,12 +20379,12 @@ def get_resources_tls_dh_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_dh_by_id_without_preload_content( + def get_resources_pcaps_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)], @@ -25238,12 +20398,12 @@ def get_resources_tls_dh_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dh_by_id + """get_resources_pcaps_upload_file_result - Get 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 @@ -25266,8 +20426,8 @@ def get_resources_tls_dh_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25275,9 +20435,8 @@ def get_resources_tls_dh_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25285,11 +20444,11 @@ def get_resources_tls_dh_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_dh_by_id_serialize( + def _get_resources_pcaps_upload_file_result_serialize( self, - tls_dh_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -25309,8 +20468,8 @@ def _get_resources_tls_dh_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_dh_id is not None: - _path_params['tlsDhId'] = tls_dh_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -25334,7 +20493,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/pcaps/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25351,9 +20510,9 @@ def _get_resources_tls_dh_by_id_serialize( @validate_call - def get_resources_tls_dh_content_file( + def get_resources_playlist_by_id( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25366,13 +20525,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 + ) -> GenericFile: + """get_resources_playlist_by_id - Get the content of a particular TLS DH file. + Get a particular playlist file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_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 @@ -25395,8 +20554,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_playlist_by_id_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25404,20 +20563,22 @@ def get_resources_tls_dh_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_dh_content_file_with_http_info( + def get_resources_playlist_by_id_with_http_info( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25430,13 +20591,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[GenericFile]: + """get_resources_playlist_by_id - Get the content of a particular TLS DH file. + Get a particular playlist file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_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 @@ -25459,8 +20620,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_playlist_by_id_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25468,20 +20629,22 @@ def get_resources_tls_dh_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_dh_content_file_without_preload_content( + def get_resources_playlist_by_id_without_preload_content( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25495,12 +20658,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_playlist_by_id - Get the content of a particular TLS DH file. + Get a particular playlist file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_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 @@ -25523,8 +20686,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_playlist_by_id_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25532,19 +20695,21 @@ def get_resources_tls_dh_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_dh_content_file_serialize( + def _get_resources_playlist_by_id_serialize( self, - tls_dh_id, + playlist_id, _request_auth, _content_type, _headers, @@ -25564,8 +20729,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 playlist_id is not None: + _path_params['playlistId'] = playlist_id # process the query parameters # process the header parameters # process the form parameters @@ -25576,7 +20741,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' ] ) @@ -25590,7 +20754,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/playlists/{playlistId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25607,10 +20771,9 @@ def _get_resources_tls_dh_content_file_serialize( @validate_call - def get_resources_tls_dhs( + 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)], @@ -25623,15 +20786,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 + ) -> bytearray: + """get_resources_playlist_content_file - Get all the available TLS DH 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 @@ -25654,9 +20815,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_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25664,22 +20824,20 @@ def get_resources_tls_dhs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '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_dhs_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)], @@ -25692,15 +20850,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[bytearray]: + """get_resources_playlist_content_file - Get all the available TLS DH 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 @@ -25723,9 +20879,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_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25733,22 +20888,20 @@ def get_resources_tls_dhs_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_dhs_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)], @@ -25762,14 +20915,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_playlist_content_file - Get all the available TLS DH 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 @@ -25792,9 +20943,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_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25802,21 +20952,19 @@ def get_resources_tls_dhs_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_dhs_serialize( + def _get_resources_playlist_content_file_serialize( self, - take, - skip, + playlist_id, _request_auth, _content_type, _headers, @@ -25836,15 +20984,9 @@ def _get_resources_tls_dhs_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 @@ -25854,6 +20996,7 @@ def _get_resources_tls_dhs_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -25867,7 +21010,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/playlists/{playlistId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25884,9 +21027,10 @@ def _get_resources_tls_dhs_serialize( @validate_call - def get_resources_tls_dhs_upload_file_result( + def get_resources_playlist_values( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25900,12 +21044,14 @@ def get_resources_tls_dhs_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_tls_dhs_upload_file_result + """get_resources_playlist_values - Get the result of the upload file operation. + Get some specific values from a playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25928,8 +21074,9 @@ 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_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25938,7 +21085,7 @@ def get_resources_tls_dhs_upload_file_result( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25946,12 +21093,13 @@ def get_resources_tls_dhs_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_dhs_upload_file_result_with_http_info( + def get_resources_playlist_values_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25965,12 +21113,14 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_tls_dhs_upload_file_result + """get_resources_playlist_values - Get the result of the upload file operation. + Get some specific values from a playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25993,8 +21143,9 @@ 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_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26003,7 +21154,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -26011,12 +21162,13 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_dhs_upload_file_result_without_preload_content( + def get_resources_playlist_values_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26030,12 +21182,14 @@ 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_playlist_values - Get the result of the upload file operation. + Get some specific values from a playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26058,8 +21212,9 @@ 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_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26068,7 +21223,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -26076,11 +21231,12 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_dhs_upload_file_result_serialize( + def _get_resources_playlist_values_serialize( self, - upload_file_id, + playlist_id, + filter, _request_auth, _content_type, _headers, @@ -26100,9 +21256,13 @@ 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 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 @@ -26125,7 +21285,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/playlists/{playlistId}/values', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26142,9 +21302,10 @@ def _get_resources_tls_dhs_upload_file_result_serialize( @validate_call - def get_resources_tls_key_by_id( + def get_resources_playlists( 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)], @@ -26157,13 +21318,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_playlists - Get a particular TLS key file. + Get all the available playlist 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 @@ -26186,8 +21349,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_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26195,9 +21359,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( @@ -26205,12 +21368,13 @@ def get_resources_tls_key_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_key_by_id_with_http_info( + def get_resources_playlists_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)], @@ -26223,13 +21387,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_playlists - Get a particular TLS key file. + Get all the available playlist 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 @@ -26252,8 +21418,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_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26261,9 +21428,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( @@ -26271,12 +21437,13 @@ def get_resources_tls_key_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_key_by_id_without_preload_content( + def get_resources_playlists_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)], @@ -26290,12 +21457,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_playlists - Get a particular TLS key file. + Get all the available playlist 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 @@ -26318,8 +21487,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_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26327,9 +21497,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( @@ -26337,11 +21506,12 @@ def get_resources_tls_key_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_key_by_id_serialize( + def _get_resources_playlists_serialize( self, - tls_key_id, + take, + skip, _request_auth, _content_type, _headers, @@ -26361,9 +21531,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 @@ -26386,7 +21562,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/playlists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26403,9 +21579,9 @@ def _get_resources_tls_key_by_id_serialize( @validate_call - def get_resources_tls_key_content_file( + def get_resources_playlists_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)], @@ -26418,13 +21594,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_playlists_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 @@ -26447,8 +21623,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_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26456,20 +21632,21 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_key_content_file_with_http_info( + def get_resources_playlists_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)], @@ -26482,13 +21659,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_playlists_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 @@ -26511,8 +21688,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_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26520,20 +21697,21 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_key_content_file_without_preload_content( + def get_resources_playlists_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)], @@ -26547,12 +21725,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_playlists_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 @@ -26575,8 +21753,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_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26584,19 +21762,20 @@ 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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_key_content_file_serialize( + def _get_resources_playlists_upload_file_result_serialize( self, - tls_key_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -26616,8 +21795,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 @@ -26628,7 +21807,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' ] ) @@ -26642,7 +21820,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/playlists/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26659,7 +21837,7 @@ def _get_resources_tls_key_content_file_serialize( @validate_call - def get_resources_tls_keys( + 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, @@ -26676,9 +21854,9 @@ def get_resources_tls_keys( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_tls_keys + """get_resources_sip_library - Get all the available TLS key files. + Get all the available sip library files. :param take: The number of search results to return :type take: int @@ -26706,7 +21884,7 @@ def get_resources_tls_keys( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( + _param = self._get_resources_sip_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26725,10 +21903,10 @@ def get_resources_tls_keys( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_keys_with_http_info( + 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, @@ -26745,9 +21923,9 @@ def get_resources_tls_keys_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_keys + """get_resources_sip_library - Get all the available TLS key files. + Get all the available sip library files. :param take: The number of search results to return :type take: int @@ -26775,7 +21953,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_sip_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26794,10 +21972,10 @@ def get_resources_tls_keys_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_keys_without_preload_content( + 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, @@ -26814,9 +21992,9 @@ 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_sip_library - Get all the available TLS key files. + Get all the available sip library files. :param take: The number of search results to return :type take: int @@ -26844,7 +22022,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_sip_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26863,9 +22041,9 @@ def get_resources_tls_keys_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_keys_serialize( + def _get_resources_sip_library_serialize( self, take, skip, @@ -26919,7 +22097,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/sip-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26936,9 +22114,9 @@ def _get_resources_tls_keys_serialize( @validate_call - def get_resources_tls_keys_upload_file_result( + def get_resources_sip_library_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26951,13 +22129,13 @@ def get_resources_tls_keys_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_tls_keys_upload_file_result + ) -> GenericFile: + """get_resources_sip_library_by_id - Get the result of the upload file operation. + Get a particular sip library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26980,8 +22158,8 @@ def get_resources_tls_keys_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26989,8 +22167,9 @@ def get_resources_tls_keys_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( @@ -26998,12 +22177,12 @@ def get_resources_tls_keys_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_keys_upload_file_result_with_http_info( + def get_resources_sip_library_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27016,13 +22195,13 @@ def get_resources_tls_keys_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_tls_keys_upload_file_result + ) -> ApiResponse[GenericFile]: + """get_resources_sip_library_by_id - Get the result of the upload file operation. + Get a particular sip library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27045,8 +22224,8 @@ def get_resources_tls_keys_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27054,8 +22233,9 @@ def get_resources_tls_keys_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( @@ -27063,12 +22243,12 @@ def get_resources_tls_keys_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_tls_keys_upload_file_result_without_preload_content( + def get_resources_sip_library_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27082,12 +22262,12 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_keys_upload_file_result + """get_resources_sip_library_by_id - Get the result of the upload file operation. + Get a particular sip library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27110,8 +22290,8 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27119,8 +22299,9 @@ def get_resources_tls_keys_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( @@ -27128,11 +22309,11 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_tls_keys_upload_file_result_serialize( + def _get_resources_sip_library_by_id_serialize( self, - upload_file_id, + sip_library_id, _request_auth, _content_type, _headers, @@ -27152,8 +22333,8 @@ def _get_resources_tls_keys_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if sip_library_id is not None: + _path_params['sipLibraryId'] = sip_library_id # process the query parameters # process the header parameters # process the form parameters @@ -27177,7 +22358,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/sip-library/{sipLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27194,10 +22375,9 @@ def _get_resources_tls_keys_upload_file_result_serialize( @validate_call - def get_resources_user_defined_apps( + def get_resources_sip_library_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27210,14 +22390,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 + ) -> bytearray: + """get_resources_sip_library_content_file + Get the content of a particular sip library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27240,9 +22419,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._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27250,21 +22428,20 @@ def get_resources_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", - '500': "ErrorResponse", + '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_user_defined_apps_with_http_info( + def get_resources_sip_library_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27277,14 +22454,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[bytearray]: + """get_resources_sip_library_content_file + Get the content of a particular sip library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27307,9 +22483,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._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27317,21 +22492,20 @@ def get_resources_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", - '500': "ErrorResponse", + '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_user_defined_apps_without_preload_content( + def get_resources_sip_library_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27345,13 +22519,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 + """get_resources_sip_library_content_file + Get the content of a particular sip library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27374,9 +22547,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._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27384,20 +22556,19 @@ def get_resources_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_user_defined_apps_serialize( + def _get_resources_sip_library_content_file_serialize( self, - take, - skip, + sip_library_id, _request_auth, _content_type, _headers, @@ -27417,15 +22588,9 @@ def _get_resources_user_defined_apps_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 @@ -27435,6 +22600,7 @@ def _get_resources_user_defined_apps_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -27448,7 +22614,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/sip-library/{sipLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27465,7 +22631,7 @@ def _get_resources_user_defined_apps_serialize( @validate_call - def get_resources_user_defined_apps_upload_file_result( + def get_resources_sip_library_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -27481,7 +22647,7 @@ def get_resources_user_defined_apps_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_user_defined_apps_upload_file_result + """get_resources_sip_library_upload_file_result Get the result of the upload file operation. @@ -27509,7 +22675,7 @@ def get_resources_user_defined_apps_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_sip_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -27527,10 +22693,10 @@ def get_resources_user_defined_apps_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_user_defined_apps_upload_file_result_with_http_info( + def get_resources_sip_library_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -27546,7 +22712,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_user_defined_apps_upload_file_result + """get_resources_sip_library_upload_file_result Get the result of the upload file operation. @@ -27574,7 +22740,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_sip_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -27592,10 +22758,10 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_user_defined_apps_upload_file_result_without_preload_content( + def get_resources_sip_library_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -27611,7 +22777,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_user_defined_apps_upload_file_result + """get_resources_sip_library_upload_file_result Get the result of the upload file operation. @@ -27639,7 +22805,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_sip_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -27657,9 +22823,9 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_user_defined_apps_upload_file_result_serialize( + def _get_resources_sip_library_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -27706,7 +22872,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/sip-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27723,9 +22889,10 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( @validate_call - def poll_resources_apps_export_all( + def get_resources_stats_profile( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27738,13 +22905,15 @@ def poll_resources_apps_export_all( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_apps_export_all + ) -> GetResourcesCertificates200Response: + """get_resources_stats_profile - Get the state of an ongoing operation. + Get all the available stats profile files. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27767,8 +22936,9 @@ 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._get_resources_stats_profile_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27776,20 +22946,22 @@ def poll_resources_apps_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_apps_export_all_with_http_info( + def get_resources_stats_profile_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27802,13 +22974,15 @@ def poll_resources_apps_export_all_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_apps_export_all + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_stats_profile - Get the state of an ongoing operation. + Get all the available stats profile files. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27831,8 +23005,9 @@ 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._get_resources_stats_profile_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27840,20 +23015,22 @@ def poll_resources_apps_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_apps_export_all_without_preload_content( + def get_resources_stats_profile_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27867,12 +23044,14 @@ 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 + """get_resources_stats_profile - Get the state of an ongoing operation. + Get all the available stats profile files. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27895,8 +23074,9 @@ 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._get_resources_stats_profile_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27904,19 +23084,21 @@ def poll_resources_apps_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_apps_export_all_serialize( + def _get_resources_stats_profile_serialize( self, - id, + take, + skip, _request_auth, _content_type, _headers, @@ -27936,9 +23118,15 @@ def _poll_resources_apps_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + 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 @@ -27961,7 +23149,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/stats-profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27978,9 +23166,9 @@ def _poll_resources_apps_export_all_serialize( @validate_call - def poll_resources_captures_batch_delete( + def get_resources_stats_profile_by_id( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27993,13 +23181,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 + ) -> GenericFile: + """get_resources_stats_profile_by_id - Get the state of an ongoing operation. + Get a particular stats profile file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -28022,8 +23210,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._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28031,20 +23219,22 @@ def poll_resources_captures_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_captures_batch_delete_with_http_info( + def get_resources_stats_profile_by_id_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28057,13 +23247,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[GenericFile]: + """get_resources_stats_profile_by_id - Get the state of an ongoing operation. + Get a particular stats profile file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -28086,8 +23276,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._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28095,20 +23285,22 @@ def poll_resources_captures_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_captures_batch_delete_without_preload_content( + def get_resources_stats_profile_by_id_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28122,12 +23314,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 + """get_resources_stats_profile_by_id - Get the state of an ongoing operation. + Get a particular stats profile file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -28150,8 +23342,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._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28159,19 +23351,21 @@ def poll_resources_captures_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_captures_batch_delete_serialize( + def _get_resources_stats_profile_by_id_serialize( self, - id, + stats_profile_id, _request_auth, _content_type, _headers, @@ -28191,8 +23385,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 stats_profile_id is not None: + _path_params['statsProfileId'] = stats_profile_id # process the query parameters # process the header parameters # process the form parameters @@ -28216,7 +23410,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/stats-profile/{statsProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28233,9 +23427,9 @@ def _poll_resources_captures_batch_delete_serialize( @validate_call - def poll_resources_captures_upload_file( + def get_resources_stats_profile_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28248,13 +23442,13 @@ def poll_resources_captures_upload_file( _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_upload_file + ) -> bytearray: + """get_resources_stats_profile_content_file - Get the state of an ongoing operation. + Get the content of a particular stats profile file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28277,8 +23471,8 @@ def poll_resources_captures_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28286,21 +23480,20 @@ def poll_resources_captures_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_upload_file_with_http_info( + def get_resources_stats_profile_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28313,13 +23506,13 @@ def poll_resources_captures_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[AsyncContext]: - """poll_resources_captures_upload_file + ) -> ApiResponse[bytearray]: + """get_resources_stats_profile_content_file - Get the state of an ongoing operation. + Get the content of a particular stats profile file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28342,8 +23535,8 @@ def poll_resources_captures_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28351,21 +23544,20 @@ def poll_resources_captures_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_upload_file_without_preload_content( + def get_resources_stats_profile_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28379,12 +23571,12 @@ def poll_resources_captures_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_captures_upload_file + """get_resources_stats_profile_content_file - Get the state of an ongoing operation. + Get the content of a particular stats profile file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28407,8 +23599,8 @@ def poll_resources_captures_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28416,20 +23608,19 @@ def poll_resources_captures_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_captures_upload_file_serialize( + def _get_resources_stats_profile_content_file_serialize( self, - upload_file_id, + stats_profile_id, _request_auth, _content_type, _headers, @@ -28449,8 +23640,8 @@ 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 stats_profile_id is not None: + _path_params['statsProfileId'] = stats_profile_id # process the query parameters # process the header parameters # process the form parameters @@ -28461,6 +23652,7 @@ def _poll_resources_captures_upload_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -28474,7 +23666,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/stats-profile/{statsProfileId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28491,7 +23683,7 @@ def _poll_resources_captures_upload_file_serialize( @validate_call - def poll_resources_certificates_upload_file( + def get_resources_stats_profile_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -28507,9 +23699,9 @@ def poll_resources_certificates_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_certificates_upload_file + """get_resources_stats_profile_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -28535,7 +23727,7 @@ def poll_resources_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( + _param = self._get_resources_stats_profile_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28553,10 +23745,10 @@ def poll_resources_certificates_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_certificates_upload_file_with_http_info( + def 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[ @@ -28572,9 +23764,9 @@ def poll_resources_certificates_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_certificates_upload_file + """get_resources_stats_profile_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -28600,7 +23792,7 @@ def poll_resources_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( + _param = self._get_resources_stats_profile_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28618,10 +23810,10 @@ def poll_resources_certificates_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_certificates_upload_file_without_preload_content( + def 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[ @@ -28637,9 +23829,9 @@ 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 + """get_resources_stats_profile_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -28665,7 +23857,7 @@ def poll_resources_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( + _param = self._get_resources_stats_profile_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28683,9 +23875,9 @@ def poll_resources_certificates_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_certificates_upload_file_serialize( + def _get_resources_stats_profile_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -28732,7 +23924,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/stats-profile/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28749,10 +23941,9 @@ def _poll_resources_certificates_upload_file_serialize( @validate_call - def poll_resources_config_export_user_defined_apps( + def get_resources_strike_by_id( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28765,15 +23956,13 @@ def poll_resources_config_export_user_defined_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_config_export_user_defined_apps + ) -> ApplicationType: + """get_resources_strike_by_id - Get the state of an ongoing operation. + Get a particular strike. - :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 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 @@ -28796,9 +23985,8 @@ def poll_resources_config_export_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - id=id, + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28806,21 +23994,20 @@ def poll_resources_config_export_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "ApplicationType", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_config_export_user_defined_apps_with_http_info( + def get_resources_strike_by_id_with_http_info( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28833,15 +24020,13 @@ def poll_resources_config_export_user_defined_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_config_export_user_defined_apps + ) -> ApiResponse[ApplicationType]: + """get_resources_strike_by_id - Get the state of an ongoing operation. + Get a particular strike. - :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 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 @@ -28864,9 +24049,8 @@ def poll_resources_config_export_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - id=id, + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28874,21 +24058,20 @@ def poll_resources_config_export_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "ApplicationType", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_config_export_user_defined_apps_without_preload_content( + def get_resources_strike_by_id_without_preload_content( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28902,14 +24085,12 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_config_export_user_defined_apps + """get_resources_strike_by_id - Get the state of an ongoing operation. + Get a particular strike. - :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 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 @@ -28932,9 +24113,8 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - id=id, + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28942,20 +24122,19 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "ApplicationType", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_config_export_user_defined_apps_serialize( + def _get_resources_strike_by_id_serialize( self, - config_id, - id, + strike_id, _request_auth, _content_type, _headers, @@ -28975,10 +24154,8 @@ def _poll_resources_config_export_user_defined_apps_serialize( _body_params: Optional[bytes] = None # process the path parameters - if config_id is not None: - _path_params['configId'] = config_id - if id is not None: - _path_params['id'] = id + if strike_id is not None: + _path_params['strikeId'] = strike_id # process the query parameters # process the header parameters # process the form parameters @@ -29002,7 +24179,7 @@ def _poll_resources_config_export_user_defined_apps_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id}', + resource_path='/api/v2/resources/strikes/{strikeId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29019,9 +24196,10 @@ def _poll_resources_config_export_user_defined_apps_serialize( @validate_call - def poll_resources_create_app( + def get_resources_strike_categories( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29034,13 +24212,14 @@ 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 + ) -> List[Category]: + """get_resources_strike_categories - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29063,8 +24242,9 @@ def poll_resources_create_app( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._get_resources_strike_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29072,20 +24252,21 @@ def poll_resources_create_app( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "List[Category]", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_create_app_with_http_info( + def get_resources_strike_categories_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29098,13 +24279,14 @@ 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[List[Category]]: + """get_resources_strike_categories - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29127,8 +24309,9 @@ 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._get_resources_strike_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29136,20 +24319,21 @@ def poll_resources_create_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "List[Category]", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_create_app_without_preload_content( + def get_resources_strike_categories_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29163,12 +24347,13 @@ 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 + """get_resources_strike_categories - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29191,8 +24376,9 @@ 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._get_resources_strike_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29200,19 +24386,20 @@ def poll_resources_create_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "List[Category]", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_create_app_serialize( + def _get_resources_strike_categories_serialize( self, - id, + take, + skip, _request_auth, _content_type, _headers, @@ -29232,9 +24419,15 @@ def _poll_resources_create_app_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + 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 @@ -29257,7 +24450,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/strike-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29274,9 +24467,16 @@ def _poll_resources_create_app_serialize( @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file( + 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)], @@ -29289,13 +24489,27 @@ def poll_resources_custom_fuzzing_scripts_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_custom_fuzzing_scripts_upload_file + ) -> GetResourcesApplicationTypes200Response: + """get_resources_strikes - Get the state of an ongoing 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 @@ -29318,8 +24532,15 @@ def poll_resources_custom_fuzzing_scripts_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._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, @@ -29327,7 +24548,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GetResourcesApplicationTypes200Response", '400': "ErrorResponse", '500': "ErrorResponse", } @@ -29336,12 +24557,19 @@ def poll_resources_custom_fuzzing_scripts_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( + def get_resources_strikes_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, + 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)], @@ -29354,13 +24582,27 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_custom_fuzzing_scripts_upload_file + ) -> ApiResponse[GetResourcesApplicationTypes200Response]: + """get_resources_strikes - Get the state of an ongoing 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 @@ -29383,8 +24625,15 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._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, @@ -29392,7 +24641,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GetResourcesApplicationTypes200Response", '400': "ErrorResponse", '500': "ErrorResponse", } @@ -29401,12 +24650,19 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( + def get_resources_strikes_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, + 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)], @@ -29420,12 +24676,26 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_custom_fuzzing_scripts_upload_file + """get_resources_strikes - Get the state of an ongoing 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 @@ -29448,8 +24718,15 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._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, @@ -29457,7 +24734,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GetResourcesApplicationTypes200Response", '400': "ErrorResponse", '500': "ErrorResponse", } @@ -29466,11 +24743,18 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( + def _get_resources_strikes_serialize( self, - upload_file_id, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + compatible_with, + categories, _request_auth, _content_type, _headers, @@ -29490,9 +24774,39 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + 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 @@ -29515,7 +24829,7 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/strikes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29532,9 +24846,9 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( @validate_call - def poll_resources_edit_app( + def get_resources_tls_certificate_by_id( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29547,13 +24861,13 @@ def poll_resources_edit_app( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_edit_app + ) -> GenericFile: + """get_resources_tls_certificate_by_id - Get the state of an ongoing operation. + Get a particular TLS certificate file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -29576,8 +24890,8 @@ def poll_resources_edit_app( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _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, @@ -29585,20 +24899,22 @@ def poll_resources_edit_app( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_edit_app_with_http_info( + def get_resources_tls_certificate_by_id_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29611,13 +24927,13 @@ def poll_resources_edit_app_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_edit_app + ) -> ApiResponse[GenericFile]: + """get_resources_tls_certificate_by_id - Get the state of an ongoing operation. + Get a particular TLS certificate file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -29640,8 +24956,8 @@ def poll_resources_edit_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29649,20 +24965,22 @@ def poll_resources_edit_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_edit_app_without_preload_content( + def get_resources_tls_certificate_by_id_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29676,12 +24994,12 @@ def poll_resources_edit_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_edit_app + """get_resources_tls_certificate_by_id - Get the state of an ongoing operation. + Get a particular TLS certificate file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -29704,8 +25022,8 @@ def poll_resources_edit_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29713,19 +25031,21 @@ def poll_resources_edit_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_edit_app_serialize( + def _get_resources_tls_certificate_by_id_serialize( self, - id, + tls_certificate_id, _request_auth, _content_type, _headers, @@ -29745,8 +25065,8 @@ def _poll_resources_edit_app_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + 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 @@ -29770,7 +25090,7 @@ def _poll_resources_edit_app_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/operations/edit-app/{id}', + resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29787,9 +25107,9 @@ def _poll_resources_edit_app_serialize( @validate_call - def poll_resources_find_param_matches( + def get_resources_tls_certificate_content_file( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29802,13 +25122,13 @@ def poll_resources_find_param_matches( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_find_param_matches + ) -> bytearray: + """get_resources_tls_certificate_content_file - Get the state of an ongoing operation. + Get the content of a particular TLS certificate file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -29831,8 +25151,8 @@ def poll_resources_find_param_matches( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29840,20 +25160,20 @@ def poll_resources_find_param_matches( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_find_param_matches_with_http_info( + def get_resources_tls_certificate_content_file_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29866,13 +25186,13 @@ def poll_resources_find_param_matches_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_find_param_matches + ) -> ApiResponse[bytearray]: + """get_resources_tls_certificate_content_file - Get the state of an ongoing operation. + Get the content of a particular TLS certificate file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -29895,8 +25215,8 @@ def poll_resources_find_param_matches_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29904,20 +25224,20 @@ def poll_resources_find_param_matches_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_find_param_matches_without_preload_content( + def get_resources_tls_certificate_content_file_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29931,12 +25251,12 @@ def poll_resources_find_param_matches_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_find_param_matches + """get_resources_tls_certificate_content_file - Get the state of an ongoing operation. + Get the content of a particular TLS certificate file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -29959,8 +25279,8 @@ def poll_resources_find_param_matches_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29968,19 +25288,19 @@ def poll_resources_find_param_matches_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_find_param_matches_serialize( + def _get_resources_tls_certificate_content_file_serialize( self, - id, + tls_certificate_id, _request_auth, _content_type, _headers, @@ -30000,8 +25320,8 @@ def _poll_resources_find_param_matches_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + 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 @@ -30012,6 +25332,7 @@ def _poll_resources_find_param_matches_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -30025,7 +25346,7 @@ def _poll_resources_find_param_matches_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/operations/find-param-matches/{id}', + resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30042,9 +25363,10 @@ def _poll_resources_find_param_matches_serialize( @validate_call - def poll_resources_flow_library_upload_file( + def get_resources_tls_certificates( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30057,13 +25379,15 @@ def poll_resources_flow_library_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_flow_library_upload_file + ) -> GetResourcesCertificates200Response: + """get_resources_tls_certificates - Get the state of an ongoing operation. + Get all the available TLS certificate files - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30086,8 +25410,9 @@ def poll_resources_flow_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30095,8 +25420,8 @@ def poll_resources_flow_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -30104,12 +25429,13 @@ def poll_resources_flow_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_flow_library_upload_file_with_http_info( + def get_resources_tls_certificates_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30122,13 +25448,15 @@ def poll_resources_flow_library_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_flow_library_upload_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_tls_certificates - Get the state of an ongoing operation. + Get all the available TLS certificate files - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30151,8 +25479,9 @@ def poll_resources_flow_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30160,8 +25489,8 @@ def poll_resources_flow_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -30169,12 +25498,13 @@ def poll_resources_flow_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_flow_library_upload_file_without_preload_content( + def get_resources_tls_certificates_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30188,12 +25518,14 @@ def poll_resources_flow_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_flow_library_upload_file + """get_resources_tls_certificates - Get the state of an ongoing operation. + Get all the available TLS certificate files - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30216,8 +25548,9 @@ def poll_resources_flow_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30225,8 +25558,8 @@ def poll_resources_flow_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -30234,11 +25567,12 @@ def poll_resources_flow_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_flow_library_upload_file_serialize( + def _get_resources_tls_certificates_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -30258,9 +25592,15 @@ def _poll_resources_flow_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + 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 @@ -30283,7 +25623,7 @@ def _poll_resources_flow_library_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/tls-certificates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30300,9 +25640,9 @@ def _poll_resources_flow_library_upload_file_serialize( @validate_call - def poll_resources_get_attack_categories( + def get_resources_tls_certificates_upload_file_result( 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)], @@ -30315,13 +25655,13 @@ def poll_resources_get_attack_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_get_attack_categories + ) -> None: + """get_resources_tls_certificates_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file 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 @@ -30344,8 +25684,8 @@ def poll_resources_get_attack_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30353,20 +25693,21 @@ def poll_resources_get_attack_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '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_get_attack_categories_with_http_info( + def get_resources_tls_certificates_upload_file_result_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)], @@ -30379,13 +25720,13 @@ def poll_resources_get_attack_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_get_attack_categories + ) -> ApiResponse[None]: + """get_resources_tls_certificates_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file 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 @@ -30408,8 +25749,8 @@ def poll_resources_get_attack_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30417,20 +25758,21 @@ def poll_resources_get_attack_categories_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attack_categories_without_preload_content( + def get_resources_tls_certificates_upload_file_result_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)], @@ -30444,12 +25786,12 @@ def poll_resources_get_attack_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_attack_categories + """get_resources_tls_certificates_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file 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 @@ -30472,8 +25814,8 @@ def poll_resources_get_attack_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30481,19 +25823,20 @@ def poll_resources_get_attack_categories_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_attack_categories_serialize( + def _get_resources_tls_certificates_upload_file_result_serialize( self, - id, + upload_file_id, _request_auth, _content_type, _headers, @@ -30513,8 +25856,8 @@ def _poll_resources_get_attack_categories_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + 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 @@ -30538,7 +25881,7 @@ def _poll_resources_get_attack_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/operations/get-attack-categories/{id}', + resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30555,9 +25898,9 @@ def _poll_resources_get_attack_categories_serialize( @validate_call - def poll_resources_get_attacks( + def get_resources_tls_dh_by_id( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30570,13 +25913,13 @@ def poll_resources_get_attacks( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_get_attacks + ) -> GenericFile: + """get_resources_tls_dh_by_id - Get the state of an ongoing operation. + Get a particular TLS DH file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -30599,8 +25942,8 @@ def poll_resources_get_attacks( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30608,20 +25951,22 @@ def poll_resources_get_attacks( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_get_attacks_with_http_info( + def get_resources_tls_dh_by_id_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30634,13 +25979,13 @@ def poll_resources_get_attacks_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_get_attacks + ) -> ApiResponse[GenericFile]: + """get_resources_tls_dh_by_id - Get the state of an ongoing operation. + Get a particular TLS DH file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -30663,8 +26008,8 @@ def poll_resources_get_attacks_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30672,20 +26017,22 @@ def poll_resources_get_attacks_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_get_attacks_without_preload_content( + def get_resources_tls_dh_by_id_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30699,12 +26046,12 @@ def poll_resources_get_attacks_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_attacks + """get_resources_tls_dh_by_id - Get the state of an ongoing operation. + Get a particular TLS DH file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -30727,8 +26074,8 @@ def poll_resources_get_attacks_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30736,19 +26083,21 @@ def poll_resources_get_attacks_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_attacks_serialize( + def _get_resources_tls_dh_by_id_serialize( self, - id, + tls_dh_id, _request_auth, _content_type, _headers, @@ -30768,8 +26117,8 @@ def _poll_resources_get_attacks_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = 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 @@ -30793,7 +26142,7 @@ def _poll_resources_get_attacks_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/operations/get-attacks/{id}', + resource_path='/api/v2/resources/tls-dhs/{tlsDhId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30810,9 +26159,9 @@ def _poll_resources_get_attacks_serialize( @validate_call - def poll_resources_get_strike_categories( + def get_resources_tls_dh_content_file( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30825,13 +26174,13 @@ def poll_resources_get_strike_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_get_strike_categories + ) -> bytearray: + """get_resources_tls_dh_content_file - Get the state of an ongoing operation. + Get the content of a particular TLS DH file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -30854,8 +26203,8 @@ def poll_resources_get_strike_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strike_categories_serialize( - id=id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30863,20 +26212,20 @@ def poll_resources_get_strike_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_strike_categories_with_http_info( + def get_resources_tls_dh_content_file_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30889,13 +26238,13 @@ def poll_resources_get_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[AsyncContext]: - """poll_resources_get_strike_categories + ) -> ApiResponse[bytearray]: + """get_resources_tls_dh_content_file - Get the state of an ongoing operation. + Get the content of a particular TLS DH file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -30918,8 +26267,8 @@ def poll_resources_get_strike_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strike_categories_serialize( - id=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, @@ -30927,20 +26276,20 @@ def poll_resources_get_strike_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_strike_categories_without_preload_content( + def get_resources_tls_dh_content_file_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30954,12 +26303,12 @@ def poll_resources_get_strike_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_strike_categories + """get_resources_tls_dh_content_file - Get the state of an ongoing operation. + Get the content of a particular TLS DH file. - :param id: The ID of the async operation. (required) - :type id: int + :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 @@ -30982,8 +26331,8 @@ def poll_resources_get_strike_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strike_categories_serialize( - id=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, @@ -30991,19 +26340,19 @@ def poll_resources_get_strike_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_strike_categories_serialize( + def _get_resources_tls_dh_content_file_serialize( self, - id, + tls_dh_id, _request_auth, _content_type, _headers, @@ -31023,8 +26372,8 @@ def _poll_resources_get_strike_categories_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = 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 @@ -31035,6 +26384,7 @@ def _poll_resources_get_strike_categories_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -31048,7 +26398,7 @@ def _poll_resources_get_strike_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/operations/get-strike-categories/{id}', + resource_path='/api/v2/resources/tls-dhs/{tlsDhId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31065,9 +26415,10 @@ def _poll_resources_get_strike_categories_serialize( @validate_call - def poll_resources_get_strikes( + def get_resources_tls_dhs( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31080,13 +26431,15 @@ def poll_resources_get_strikes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_get_strikes + ) -> GetResourcesCertificates200Response: + """get_resources_tls_dhs - Get the state of an ongoing operation. + Get all the available TLS DH files. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31109,8 +26462,9 @@ def poll_resources_get_strikes( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strikes_serialize( - id=id, + _param = self._get_resources_tls_dhs_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31118,20 +26472,22 @@ def poll_resources_get_strikes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_get_strikes_with_http_info( + def get_resources_tls_dhs_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31144,13 +26500,15 @@ def poll_resources_get_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[AsyncContext]: - """poll_resources_get_strikes + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_tls_dhs - Get the state of an ongoing operation. + Get all the available TLS DH files. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31173,8 +26531,9 @@ def poll_resources_get_strikes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strikes_serialize( - id=id, + _param = self._get_resources_tls_dhs_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31182,20 +26541,22 @@ def poll_resources_get_strikes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '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 poll_resources_get_strikes_without_preload_content( + def get_resources_tls_dhs_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31209,12 +26570,14 @@ def poll_resources_get_strikes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_strikes + """get_resources_tls_dhs - Get the state of an ongoing operation. + Get all the available TLS DH files. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31237,8 +26600,9 @@ 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._get_resources_tls_dhs_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31246,19 +26610,21 @@ def poll_resources_get_strikes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_strikes_serialize( + def _get_resources_tls_dhs_serialize( self, - id, + take, + skip, _request_auth, _content_type, _headers, @@ -31278,9 +26644,15 @@ def _poll_resources_get_strikes_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + 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 @@ -31303,7 +26675,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/tls-dhs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31320,7 +26692,7 @@ def _poll_resources_get_strikes_serialize( @validate_call - def poll_resources_global_playlists_upload_file( + def get_resources_tls_dhs_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31336,9 +26708,9 @@ 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 + """get_resources_tls_dhs_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -31364,7 +26736,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._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31382,10 +26754,10 @@ def poll_resources_global_playlists_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_global_playlists_upload_file_with_http_info( + def get_resources_tls_dhs_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31401,9 +26773,9 @@ 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 + """get_resources_tls_dhs_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -31429,7 +26801,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._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31447,10 +26819,10 @@ def poll_resources_global_playlists_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_global_playlists_upload_file_without_preload_content( + def get_resources_tls_dhs_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31466,9 +26838,9 @@ 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 + """get_resources_tls_dhs_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -31494,7 +26866,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._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31512,9 +26884,9 @@ def poll_resources_global_playlists_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_global_playlists_upload_file_serialize( + def _get_resources_tls_dhs_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -31561,7 +26933,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/tls-dhs/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31578,9 +26950,9 @@ def _poll_resources_global_playlists_upload_file_serialize( @validate_call - def poll_resources_http_library_upload_file( + def get_resources_tls_key_by_id( 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)], @@ -31593,13 +26965,13 @@ def poll_resources_http_library_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_http_library_upload_file + ) -> GenericFile: + """get_resources_tls_key_by_id - Get the state of an ongoing operation. + Get 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 @@ -31622,8 +26994,8 @@ def poll_resources_http_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31631,8 +27003,9 @@ def poll_resources_http_library_upload_file( ) _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( @@ -31640,12 +27013,12 @@ def poll_resources_http_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_http_library_upload_file_with_http_info( + def get_resources_tls_key_by_id_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)], @@ -31658,13 +27031,13 @@ def poll_resources_http_library_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_http_library_upload_file + ) -> ApiResponse[GenericFile]: + """get_resources_tls_key_by_id - Get the state of an ongoing operation. + Get 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 @@ -31687,8 +27060,8 @@ def poll_resources_http_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31696,8 +27069,9 @@ def poll_resources_http_library_upload_file_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( @@ -31705,12 +27079,12 @@ def poll_resources_http_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_http_library_upload_file_without_preload_content( + def get_resources_tls_key_by_id_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)], @@ -31724,12 +27098,12 @@ def poll_resources_http_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_http_library_upload_file + """get_resources_tls_key_by_id - Get the state of an ongoing operation. + Get 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 @@ -31752,8 +27126,8 @@ def poll_resources_http_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31761,8 +27135,9 @@ def poll_resources_http_library_upload_file_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( @@ -31770,11 +27145,11 @@ def poll_resources_http_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_http_library_upload_file_serialize( + def _get_resources_tls_key_by_id_serialize( self, - upload_file_id, + tls_key_id, _request_auth, _content_type, _headers, @@ -31794,8 +27169,8 @@ def _poll_resources_http_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + 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 @@ -31819,7 +27194,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/tls-keys/{tlsKeyId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31836,9 +27211,9 @@ def _poll_resources_http_library_upload_file_serialize( @validate_call - def poll_resources_media_files_upload_file( + 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)], @@ -31851,13 +27226,13 @@ def poll_resources_media_files_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_media_files_upload_file + ) -> bytearray: + """get_resources_tls_key_content_file - Get the state of an ongoing 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 @@ -31880,8 +27255,8 @@ def poll_resources_media_files_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31889,21 +27264,20 @@ def poll_resources_media_files_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_files_upload_file_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)], @@ -31916,13 +27290,13 @@ def poll_resources_media_files_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_media_files_upload_file + ) -> ApiResponse[bytearray]: + """get_resources_tls_key_content_file - Get the state of an ongoing 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 @@ -31945,8 +27319,8 @@ def poll_resources_media_files_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31954,21 +27328,20 @@ def poll_resources_media_files_upload_file_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_files_upload_file_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)], @@ -31982,12 +27355,12 @@ def poll_resources_media_files_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_media_files_upload_file + """get_resources_tls_key_content_file - Get the state of an ongoing 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 @@ -32010,8 +27383,8 @@ def poll_resources_media_files_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32019,20 +27392,19 @@ def poll_resources_media_files_upload_file_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_media_files_upload_file_serialize( + def _get_resources_tls_key_content_file_serialize( self, - upload_file_id, + tls_key_id, _request_auth, _content_type, _headers, @@ -32052,8 +27424,8 @@ def _poll_resources_media_files_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + 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 @@ -32064,6 +27436,7 @@ def _poll_resources_media_files_upload_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -32077,7 +27450,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/tls-keys/{tlsKeyId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32094,74 +27467,10 @@ def _poll_resources_media_files_upload_file_serialize( @validate_call - def poll_resources_media_library_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_media_library_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_media_library_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_media_library_upload_file_with_http_info( + def get_resources_tls_keys( 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)], @@ -32174,13 +27483,15 @@ def poll_resources_media_library_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_media_library_upload_file + ) -> GetResourcesCertificates200Response: + """get_resources_tls_keys - Get the state of an ongoing operation. + Get all the available TLS key files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32203,8 +27514,9 @@ def poll_resources_media_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_keys_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32212,8 +27524,8 @@ def poll_resources_media_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -32221,12 +27533,82 @@ def poll_resources_media_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) + + @validate_call + def get_resources_tls_keys_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[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_keys + + Get all the available TLS key 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_keys_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 poll_resources_media_library_upload_file_without_preload_content( + def get_resources_tls_keys_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)], @@ -32240,12 +27622,14 @@ 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 + """get_resources_tls_keys - Get the state of an ongoing operation. + Get all the available TLS key files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32268,8 +27652,9 @@ def poll_resources_media_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_keys_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32277,8 +27662,8 @@ def poll_resources_media_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -32286,11 +27671,12 @@ def poll_resources_media_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_media_library_upload_file_serialize( + def _get_resources_tls_keys_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -32310,9 +27696,15 @@ def _poll_resources_media_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + 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 @@ -32335,7 +27727,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/tls-keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32352,7 +27744,7 @@ def _poll_resources_media_library_upload_file_serialize( @validate_call - def poll_resources_other_library_upload_file( + def get_resources_tls_keys_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32368,9 +27760,9 @@ 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 + """get_resources_tls_keys_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -32396,7 +27788,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._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32414,10 +27806,10 @@ def poll_resources_other_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_other_library_upload_file_with_http_info( + def get_resources_tls_keys_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32433,9 +27825,9 @@ 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 + """get_resources_tls_keys_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -32461,7 +27853,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._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32479,10 +27871,10 @@ def poll_resources_other_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_other_library_upload_file_without_preload_content( + def get_resources_tls_keys_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32498,9 +27890,9 @@ 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 + """get_resources_tls_keys_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -32526,7 +27918,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._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32544,9 +27936,9 @@ def poll_resources_other_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_other_library_upload_file_serialize( + def _get_resources_tls_keys_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -32593,7 +27985,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/tls-keys/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32610,9 +28002,10 @@ def _poll_resources_other_library_upload_file_serialize( @validate_call - def poll_resources_payloads_upload_file( + def get_resources_user_defined_apps( 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)], @@ -32625,13 +28018,14 @@ def poll_resources_payloads_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_payloads_upload_file + ) -> List[AppsecApp]: + """get_resources_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 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 @@ -32654,8 +28048,9 @@ def poll_resources_payloads_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32663,8 +28058,7 @@ def poll_resources_payloads_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -32672,12 +28066,13 @@ def poll_resources_payloads_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_payloads_upload_file_with_http_info( + def get_resources_user_defined_apps_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)], @@ -32690,13 +28085,14 @@ def poll_resources_payloads_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_payloads_upload_file + ) -> ApiResponse[List[AppsecApp]]: + """get_resources_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 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 @@ -32719,8 +28115,9 @@ def poll_resources_payloads_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32728,8 +28125,7 @@ def poll_resources_payloads_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -32737,12 +28133,13 @@ def poll_resources_payloads_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_payloads_upload_file_without_preload_content( + def get_resources_user_defined_apps_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)], @@ -32756,12 +28153,13 @@ 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 + """get_resources_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 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 @@ -32784,8 +28182,9 @@ def poll_resources_payloads_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32793,8 +28192,7 @@ def poll_resources_payloads_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -32802,11 +28200,12 @@ def poll_resources_payloads_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_payloads_upload_file_serialize( + def _get_resources_user_defined_apps_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -32826,9 +28225,15 @@ def _poll_resources_payloads_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + 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 @@ -32851,7 +28256,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/user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32868,7 +28273,7 @@ def _poll_resources_payloads_upload_file_serialize( @validate_call - def poll_resources_pcaps_upload_file( + 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[ @@ -32884,9 +28289,9 @@ 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 + """get_resources_user_defined_apps_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -32912,7 +28317,7 @@ def poll_resources_pcaps_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_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, @@ -32930,10 +28335,10 @@ def poll_resources_pcaps_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_pcaps_upload_file_with_http_info( + def 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[ @@ -32949,9 +28354,9 @@ 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 + """get_resources_user_defined_apps_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -32977,7 +28382,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._get_resources_user_defined_apps_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32995,10 +28400,10 @@ def poll_resources_pcaps_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_pcaps_upload_file_without_preload_content( + def 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[ @@ -33014,9 +28419,9 @@ 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 + """get_resources_user_defined_apps_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -33042,7 +28447,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._get_resources_user_defined_apps_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -33060,9 +28465,9 @@ def poll_resources_pcaps_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_pcaps_upload_file_serialize( + def _get_resources_user_defined_apps_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -33109,7 +28514,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/user-defined-apps/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33126,9 +28531,9 @@ def _poll_resources_pcaps_upload_file_serialize( @validate_call - def poll_resources_playlists_upload_file( + def get_resources_voice_custom_flow_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33141,13 +28546,13 @@ def poll_resources_playlists_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_playlists_upload_file + ) -> GenericFile: + """get_resources_voice_custom_flow_by_id - Get the state of an ongoing operation. + Get a particular voice custom flow. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33170,8 +28575,8 @@ def poll_resources_playlists_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33179,8 +28584,9 @@ def poll_resources_playlists_upload_file( ) _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( @@ -33188,12 +28594,12 @@ def poll_resources_playlists_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_playlists_upload_file_with_http_info( + def get_resources_voice_custom_flow_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33206,13 +28612,13 @@ def poll_resources_playlists_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_playlists_upload_file + ) -> ApiResponse[GenericFile]: + """get_resources_voice_custom_flow_by_id - Get the state of an ongoing operation. + Get a particular voice custom flow. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33235,8 +28641,8 @@ def poll_resources_playlists_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33244,8 +28650,9 @@ def poll_resources_playlists_upload_file_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( @@ -33253,12 +28660,12 @@ def poll_resources_playlists_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_playlists_upload_file_without_preload_content( + def get_resources_voice_custom_flow_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33272,12 +28679,12 @@ def poll_resources_playlists_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_playlists_upload_file + """get_resources_voice_custom_flow_by_id - Get the state of an ongoing operation. + Get a particular voice custom flow. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33300,8 +28707,8 @@ def poll_resources_playlists_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33309,8 +28716,9 @@ def poll_resources_playlists_upload_file_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( @@ -33318,11 +28726,11 @@ def poll_resources_playlists_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_playlists_upload_file_serialize( + def _get_resources_voice_custom_flow_by_id_serialize( self, - upload_file_id, + voice_custom_flow_id, _request_auth, _content_type, _headers, @@ -33342,8 +28750,8 @@ def _poll_resources_playlists_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if voice_custom_flow_id is not None: + _path_params['voiceCustomFlowId'] = voice_custom_flow_id # process the query parameters # process the header parameters # process the form parameters @@ -33367,7 +28775,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/voice-custom-flows/{voiceCustomFlowId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33384,9 +28792,9 @@ def _poll_resources_playlists_upload_file_serialize( @validate_call - def poll_resources_sip_library_upload_file( + def get_resources_voice_custom_flow_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33399,13 +28807,13 @@ def poll_resources_sip_library_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_sip_library_upload_file + ) -> bytearray: + """get_resources_voice_custom_flow_content_file - Get the state of an ongoing operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33428,8 +28836,8 @@ def poll_resources_sip_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33437,21 +28845,20 @@ def poll_resources_sip_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_sip_library_upload_file_with_http_info( + def get_resources_voice_custom_flow_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33464,13 +28871,13 @@ def poll_resources_sip_library_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_sip_library_upload_file + ) -> ApiResponse[bytearray]: + """get_resources_voice_custom_flow_content_file - Get the state of an ongoing operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33493,8 +28900,8 @@ def poll_resources_sip_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33502,21 +28909,20 @@ def poll_resources_sip_library_upload_file_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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_sip_library_upload_file_without_preload_content( + def get_resources_voice_custom_flow_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33530,12 +28936,12 @@ def poll_resources_sip_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_sip_library_upload_file + """get_resources_voice_custom_flow_content_file - Get the state of an ongoing operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33558,8 +28964,8 @@ def poll_resources_sip_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33567,20 +28973,19 @@ def poll_resources_sip_library_upload_file_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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_sip_library_upload_file_serialize( + def _get_resources_voice_custom_flow_content_file_serialize( self, - upload_file_id, + voice_custom_flow_id, _request_auth, _content_type, _headers, @@ -33600,8 +29005,8 @@ def _poll_resources_sip_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if voice_custom_flow_id is not None: + _path_params['voiceCustomFlowId'] = voice_custom_flow_id # process the query parameters # process the header parameters # process the form parameters @@ -33612,6 +29017,7 @@ def _poll_resources_sip_library_upload_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -33625,7 +29031,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/voice-custom-flows/{voiceCustomFlowId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33642,9 +29048,10 @@ def _poll_resources_sip_library_upload_file_serialize( @validate_call - def poll_resources_stats_profile_upload_file( + def get_resources_voice_custom_flows( 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)], @@ -33657,13 +29064,15 @@ def poll_resources_stats_profile_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_stats_profile_upload_file + ) -> GetResourcesCertificates200Response: + """get_resources_voice_custom_flows - Get the state of an ongoing operation. + Get all the available voice custom flows. - :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 @@ -33686,8 +29095,9 @@ def poll_resources_stats_profile_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flows_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33695,8 +29105,8 @@ def poll_resources_stats_profile_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -33704,12 +29114,13 @@ def poll_resources_stats_profile_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_stats_profile_upload_file_with_http_info( + def get_resources_voice_custom_flows_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)], @@ -33722,13 +29133,15 @@ def poll_resources_stats_profile_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_stats_profile_upload_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_voice_custom_flows - Get the state of an ongoing operation. + Get all the available voice custom flows. - :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 @@ -33751,8 +29164,9 @@ def poll_resources_stats_profile_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flows_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33760,8 +29174,8 @@ def poll_resources_stats_profile_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -33769,12 +29183,13 @@ def poll_resources_stats_profile_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_stats_profile_upload_file_without_preload_content( + def get_resources_voice_custom_flows_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)], @@ -33788,12 +29203,14 @@ 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 + """get_resources_voice_custom_flows - Get the state of an ongoing operation. + Get all the available voice custom flows. - :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 @@ -33816,8 +29233,9 @@ def poll_resources_stats_profile_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flows_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33825,8 +29243,8 @@ def poll_resources_stats_profile_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -33834,11 +29252,12 @@ def poll_resources_stats_profile_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_stats_profile_upload_file_serialize( + def _get_resources_voice_custom_flows_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -33858,9 +29277,15 @@ def _poll_resources_stats_profile_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + 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 @@ -33883,7 +29308,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/voice-custom-flows', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33900,7 +29325,7 @@ def _poll_resources_stats_profile_upload_file_serialize( @validate_call - def poll_resources_tls_certificates_upload_file( + def get_resources_voice_custom_flows_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -33916,9 +29341,9 @@ 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 + """get_resources_voice_custom_flows_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -33944,7 +29369,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._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -33962,10 +29387,10 @@ def poll_resources_tls_certificates_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_certificates_upload_file_with_http_info( + def get_resources_voice_custom_flows_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -33981,9 +29406,9 @@ 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 + """get_resources_voice_custom_flows_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -34009,7 +29434,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._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -34027,10 +29452,10 @@ def poll_resources_tls_certificates_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_certificates_upload_file_without_preload_content( + def get_resources_voice_custom_flows_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -34046,9 +29471,9 @@ 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 + """get_resources_voice_custom_flows_upload_file_result - Get the state of an ongoing operation. + Get the result of the upload file operation. :param upload_file_id: The ID of the uploadfile. (required) :type upload_file_id: str @@ -34074,7 +29499,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._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -34092,9 +29517,9 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_tls_certificates_upload_file_serialize( + def _get_resources_voice_custom_flows_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -34141,7 +29566,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/voice-custom-flows/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34157,75 +29582,340 @@ def _poll_resources_tls_certificates_upload_file_serialize( - @validate_call - def poll_resources_tls_dhs_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_tls_dhs_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_tls_dhs_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_tls_dhs_upload_file_with_http_info( + def start_resources_apps_export_all( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34238,13 +29928,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 + ) -> AsyncContext: + """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 upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :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 @@ -34267,8 +29957,8 @@ def poll_resources_tls_dhs_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34276,21 +29966,19 @@ def poll_resources_tls_dhs_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_dhs_upload_file_without_preload_content( + def start_resources_apps_export_all_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34303,13 +29991,13 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_resources_tls_dhs_upload_file + ) -> ApiResponse[AsyncContext]: + """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 upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :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 @@ -34332,8 +30020,8 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34341,84 +30029,19 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, - _response_types_map=None, + _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - - - def _poll_resources_tls_dhs_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/tls-dhs/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_tls_keys_upload_file( + def start_resources_apps_export_all_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34431,13 +30054,13 @@ def poll_resources_tls_keys_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_keys_upload_file + ) -> RESTResponseType: + """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 upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :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 @@ -34460,138 +30083,8 @@ def poll_resources_tls_keys_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( - upload_file_id=upload_file_id, - _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_tls_keys_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_tls_keys_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_tls_keys_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_tls_keys_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_tls_keys_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_tls_keys_upload_file_serialize( - upload_file_id=upload_file_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, @@ -34599,20 +30092,18 @@ def poll_resources_tls_keys_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_tls_keys_upload_file_serialize( + def _start_resources_apps_export_all_serialize( self, - upload_file_id, + export_apps_operation_input, _request_auth, _content_type, _headers, @@ -34632,12 +30123,12 @@ def _poll_resources_tls_keys_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if export_apps_operation_input is not None: + _body_params = export_apps_operation_input # set the HTTP header `Accept` @@ -34648,6 +30139,19 @@ def _poll_resources_tls_keys_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34656,8 +30160,8 @@ def _poll_resources_tls_keys_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/apps/operations/export-all', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34674,9 +30178,8 @@ def _poll_resources_tls_keys_upload_file_serialize( @validate_call - def poll_resources_user_defined_apps_export_all( + def start_resources_captures_batch_delete( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34690,12 +30193,10 @@ 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_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34718,8 +30219,7 @@ 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_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34727,20 +30227,18 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_user_defined_apps_export_all_with_http_info( + def start_resources_captures_batch_delete_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34754,12 +30252,10 @@ 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_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34782,8 +30278,7 @@ 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_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34791,20 +30286,18 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_user_defined_apps_export_all_without_preload_content( + def start_resources_captures_batch_delete_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34818,12 +30311,10 @@ 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_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34846,8 +30337,7 @@ 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_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34855,19 +30345,17 @@ 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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_user_defined_apps_export_all_serialize( + def _start_resources_captures_batch_delete_serialize( self, - id, _request_auth, _content_type, _headers, @@ -34887,8 +30375,6 @@ 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 @@ -34911,8 +30397,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/captures/operations/batch-delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34929,9 +30415,9 @@ def _poll_resources_user_defined_apps_export_all_serialize( @validate_call - def poll_resources_user_defined_apps_upload_file( + def start_resources_captures_encrypted_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34945,12 +30431,12 @@ def poll_resources_user_defined_apps_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_user_defined_apps_upload_file + """start_resources_captures_encrypted_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34973,8 +30459,8 @@ 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_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34982,8 +30468,7 @@ def poll_resources_user_defined_apps_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34991,12 +30476,12 @@ def poll_resources_user_defined_apps_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_user_defined_apps_upload_file_with_http_info( + def start_resources_captures_encrypted_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35010,12 +30495,12 @@ def poll_resources_user_defined_apps_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_user_defined_apps_upload_file + """start_resources_captures_encrypted_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35038,8 +30523,8 @@ 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_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35047,8 +30532,7 @@ def poll_resources_user_defined_apps_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -35056,12 +30540,12 @@ def poll_resources_user_defined_apps_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_user_defined_apps_upload_file_without_preload_content( + def start_resources_captures_encrypted_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35075,12 +30559,12 @@ 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_encrypted_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35103,8 +30587,8 @@ 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_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35112,8 +30596,7 @@ def poll_resources_user_defined_apps_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -35121,11 +30604,11 @@ def poll_resources_user_defined_apps_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_user_defined_apps_upload_file_serialize( + def _start_resources_captures_encrypted_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -35145,11 +30628,11 @@ 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 + if file is not None: + _files['file'] = file # process the body parameter @@ -35161,6 +30644,19 @@ def _poll_resources_user_defined_apps_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] = [ @@ -35169,8 +30665,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/encrypted/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -35187,9 +30683,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)], @@ -35203,12 +30699,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 @@ -35231,8 +30727,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, @@ -35241,18 +30737,19 @@ def start_resources_apps_export_all( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_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)], @@ -35266,12 +30763,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 @@ -35294,8 +30791,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, @@ -35304,18 +30801,19 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @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)], @@ -35329,12 +30827,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 @@ -35357,8 +30855,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, @@ -35367,17 +30865,18 @@ 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, _response_types_map=None, _request_timeout=_request_timeout ) + - - 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, @@ -35400,9 +30899,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` @@ -35420,7 +30919,7 @@ def _start_resources_apps_export_all_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'multipart/form-data' ] ) ) @@ -35435,7 +30934,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, @@ -35452,8 +30951,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)], @@ -35466,11 +30966,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 @@ -35493,7 +30995,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, @@ -35501,18 +31004,20 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @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)], @@ -35525,11 +31030,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 @@ -35552,7 +31059,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, @@ -35560,18 +31068,20 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @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)], @@ -35585,10 +31095,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 @@ -35611,7 +31123,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, @@ -35619,17 +31132,19 @@ 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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_resources_captures_batch_delete_serialize( + def _start_resources_certificates_upload_file_serialize( self, + file, _request_auth, _content_type, _headers, @@ -35652,6 +31167,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 @@ -35663,6 +31180,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] = [ @@ -35672,7 +31202,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, @@ -35689,9 +31219,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)], @@ -35705,12 +31235,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 @@ -35733,8 +31263,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, @@ -35743,19 +31273,18 @@ def start_resources_captures_upload_file( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_captures_upload_file_with_http_info( + 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)], @@ -35769,12 +31298,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 @@ -35797,8 +31326,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, @@ -35807,19 +31336,18 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @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)], @@ -35833,12 +31361,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 @@ -35861,8 +31389,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, @@ -35871,18 +31399,17 @@ 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, _response_types_map=None, _request_timeout=_request_timeout ) + - - 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, @@ -35902,11 +31429,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 @@ -35918,19 +31445,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] = [ @@ -35940,7 +31454,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, @@ -35957,9 +31471,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)], @@ -35972,13 +31486,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 @@ -36001,8 +31515,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, @@ -36010,20 +31524,82 @@ 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, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) + + @validate_call + def start_resources_create_app_with_http_info( + self, + create_app_operation: Optional[CreateAppOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_resources_create_app + + Create an app from captures + + :param create_app_operation: + :type create_app_operation: CreateAppOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + @validate_call - def start_resources_certificates_upload_file_with_http_info( + 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)], @@ -36036,13 +31612,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 + ) -> RESTResponseType: + """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 @@ -36065,72 +31641,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, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_certificates_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36138,19 +31650,18 @@ 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, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_resources_certificates_upload_file_serialize( + def _start_resources_create_app_serialize( self, - file, + create_app_operation, _request_auth, _content_type, _headers, @@ -36173,9 +31684,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` @@ -36193,7 +31704,7 @@ def _start_resources_certificates_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -36208,7 +31719,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, @@ -36225,9 +31736,9 @@ def _start_resources_certificates_upload_file_serialize( @validate_call - def start_resources_config_export_user_defined_apps( + def start_resources_custom_fuzzing_scripts_upload_file( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36240,13 +31751,13 @@ def start_resources_config_export_user_defined_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_config_export_user_defined_apps + ) -> None: + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36269,8 +31780,8 @@ def start_resources_config_export_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36278,19 +31789,20 @@ def start_resources_config_export_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_config_export_user_defined_apps_with_http_info( + def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36303,13 +31815,13 @@ def start_resources_config_export_user_defined_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_config_export_user_defined_apps + ) -> ApiResponse[None]: + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36332,8 +31844,8 @@ def start_resources_config_export_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36341,19 +31853,20 @@ def start_resources_config_export_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_config_export_user_defined_apps_without_preload_content( + def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36367,12 +31880,12 @@ def start_resources_config_export_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_config_export_user_defined_apps + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36395,8 +31908,8 @@ def start_resources_config_export_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36404,18 +31917,19 @@ def start_resources_config_export_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_resources_config_export_user_defined_apps_serialize( + def _start_resources_custom_fuzzing_scripts_upload_file_serialize( self, - config_id, + file, _request_auth, _content_type, _headers, @@ -36435,11 +31949,11 @@ def _start_resources_config_export_user_defined_apps_serialize( _body_params: Optional[bytes] = None # process the path parameters - if config_id is not None: - _path_params['configId'] = config_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -36451,6 +31965,19 @@ def _start_resources_config_export_user_defined_apps_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -36460,7 +31987,7 @@ def _start_resources_config_export_user_defined_apps_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -36477,9 +32004,9 @@ def _start_resources_config_export_user_defined_apps_serialize( @validate_call - def start_resources_create_app( + def start_resources_edit_app( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36493,12 +32020,12 @@ def start_resources_create_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36521,8 +32048,8 @@ def start_resources_create_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36537,12 +32064,12 @@ def start_resources_create_app( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_create_app_with_http_info( + def start_resources_edit_app_with_http_info( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36556,12 +32083,12 @@ def start_resources_create_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36584,8 +32111,8 @@ def start_resources_create_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36600,12 +32127,12 @@ def start_resources_create_app_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_create_app_without_preload_content( + def start_resources_edit_app_without_preload_content( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36619,12 +32146,12 @@ def start_resources_create_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36647,8 +32174,8 @@ def start_resources_create_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36663,11 +32190,11 @@ def start_resources_create_app_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_resources_create_app_serialize( + def _start_resources_edit_app_serialize( self, - create_app_operation, + edit_app_operation, _request_auth, _content_type, _headers, @@ -36691,8 +32218,8 @@ def _start_resources_create_app_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_app_operation is not None: - _body_params = create_app_operation + if edit_app_operation is not None: + _body_params = edit_app_operation # set the HTTP header `Accept` @@ -36725,7 +32252,7 @@ def _start_resources_create_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/create-app', + resource_path='/api/v2/resources/operations/edit-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -36742,9 +32269,9 @@ def _start_resources_create_app_serialize( @validate_call - def start_resources_custom_fuzzing_scripts_upload_file( + def start_resources_find_param_matches( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36757,13 +32284,13 @@ def start_resources_custom_fuzzing_scripts_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_custom_fuzzing_scripts_upload_file + ) -> AsyncContext: + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36786,8 +32313,8 @@ def start_resources_custom_fuzzing_scripts_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36795,20 +32322,19 @@ def start_resources_custom_fuzzing_scripts_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( + def start_resources_find_param_matches_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36821,13 +32347,13 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_custom_fuzzing_scripts_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36850,8 +32376,8 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36859,20 +32385,19 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( + def start_resources_find_param_matches_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36886,12 +32411,12 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_custom_fuzzing_scripts_upload_file + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36914,8 +32439,8 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36923,19 +32448,18 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_resources_custom_fuzzing_scripts_upload_file_serialize( + def _start_resources_find_param_matches_serialize( self, - file, + find_param_matches_operation, _request_auth, _content_type, _headers, @@ -36958,9 +32482,9 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if find_param_matches_operation is not None: + _body_params = find_param_matches_operation # set the HTTP header `Accept` @@ -36978,7 +32502,7 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -36993,7 +32517,7 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', + resource_path='/api/v2/resources/operations/find-param-matches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -37010,9 +32534,9 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( @validate_call - def start_resources_edit_app( + def start_resources_flow_library_upload_file( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37025,13 +32549,13 @@ def start_resources_edit_app( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_edit_app + ) -> None: + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37054,8 +32578,8 @@ def start_resources_edit_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37063,19 +32587,20 @@ def start_resources_edit_app( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_edit_app_with_http_info( + def start_resources_flow_library_upload_file_with_http_info( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37088,13 +32613,13 @@ def start_resources_edit_app_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_edit_app + ) -> ApiResponse[None]: + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37117,8 +32642,8 @@ def start_resources_edit_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37126,19 +32651,20 @@ def start_resources_edit_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_edit_app_without_preload_content( + def start_resources_flow_library_upload_file_without_preload_content( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37152,12 +32678,12 @@ def start_resources_edit_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_edit_app + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37180,8 +32706,8 @@ def start_resources_edit_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37189,18 +32715,19 @@ def start_resources_edit_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_resources_edit_app_serialize( + def _start_resources_flow_library_upload_file_serialize( self, - edit_app_operation, + file, _request_auth, _content_type, _headers, @@ -37223,9 +32750,9 @@ def _start_resources_edit_app_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter - if edit_app_operation is not None: - _body_params = edit_app_operation # set the HTTP header `Accept` @@ -37243,7 +32770,7 @@ def _start_resources_edit_app_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'multipart/form-data' ] ) ) @@ -37258,7 +32785,7 @@ def _start_resources_edit_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/edit-app', + resource_path='/api/v2/resources/flow-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -37275,9 +32802,9 @@ def _start_resources_edit_app_serialize( @validate_call - def start_resources_find_param_matches( + def start_resources_get_app_categories( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37291,12 +32818,12 @@ def start_resources_find_param_matches( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37319,8 +32846,8 @@ def start_resources_find_param_matches( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37335,12 +32862,12 @@ def start_resources_find_param_matches( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_find_param_matches_with_http_info( + def start_resources_get_app_categories_with_http_info( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37354,12 +32881,12 @@ def start_resources_find_param_matches_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37382,8 +32909,8 @@ def start_resources_find_param_matches_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37398,12 +32925,12 @@ def start_resources_find_param_matches_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_find_param_matches_without_preload_content( + def start_resources_get_app_categories_without_preload_content( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37417,12 +32944,12 @@ def start_resources_find_param_matches_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37445,8 +32972,8 @@ def start_resources_find_param_matches_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37461,11 +32988,11 @@ def start_resources_find_param_matches_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_resources_find_param_matches_serialize( + def _start_resources_get_app_categories_serialize( self, - find_param_matches_operation, + get_categories_operation, _request_auth, _content_type, _headers, @@ -37489,8 +33016,8 @@ def _start_resources_find_param_matches_serialize( # process the header parameters # process the form parameters # process the body parameter - if find_param_matches_operation is not None: - _body_params = find_param_matches_operation + if get_categories_operation is not None: + _body_params = get_categories_operation # set the HTTP header `Accept` @@ -37523,7 +33050,7 @@ def _start_resources_find_param_matches_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/find-param-matches', + resource_path='/api/v2/resources/operations/get-app-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -37540,9 +33067,9 @@ def _start_resources_find_param_matches_serialize( @validate_call - def start_resources_flow_library_upload_file( + def start_resources_get_apps( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37555,13 +33082,13 @@ def start_resources_flow_library_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_flow_library_upload_file + ) -> AsyncContext: + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37584,8 +33111,8 @@ def start_resources_flow_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37593,20 +33120,19 @@ def start_resources_flow_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_flow_library_upload_file_with_http_info( + def start_resources_get_apps_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37619,13 +33145,13 @@ def start_resources_flow_library_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_flow_library_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37648,8 +33174,8 @@ def start_resources_flow_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37657,20 +33183,19 @@ def start_resources_flow_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_resources_flow_library_upload_file_without_preload_content( + def start_resources_get_apps_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37684,12 +33209,12 @@ def start_resources_flow_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_flow_library_upload_file + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37712,8 +33237,8 @@ def start_resources_flow_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37721,19 +33246,18 @@ def start_resources_flow_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _start_resources_flow_library_upload_file_serialize( + def _start_resources_get_apps_serialize( self, - file, + get_apps_operation, _request_auth, _content_type, _headers, @@ -37756,9 +33280,9 @@ def _start_resources_flow_library_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if get_apps_operation is not None: + _body_params = get_apps_operation # set the HTTP header `Accept` @@ -37776,7 +33300,7 @@ def _start_resources_flow_library_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -37791,7 +33315,7 @@ def _start_resources_flow_library_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/flow-library/operations/uploadFile', + resource_path='/api/v2/resources/operations/get-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -37868,7 +33392,7 @@ def start_resources_get_attack_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_get_attack_categories_with_http_info( @@ -37931,7 +33455,7 @@ def start_resources_get_attack_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_get_attack_categories_without_preload_content( @@ -37994,7 +33518,7 @@ def start_resources_get_attack_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_get_attack_categories_serialize( self, @@ -38133,7 +33657,7 @@ def start_resources_get_attacks( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_get_attacks_with_http_info( @@ -38196,7 +33720,7 @@ def start_resources_get_attacks_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_get_attacks_without_preload_content( @@ -38259,7 +33783,7 @@ def start_resources_get_attacks_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_get_attacks_serialize( self, @@ -38398,7 +33922,7 @@ def start_resources_get_strike_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_get_strike_categories_with_http_info( @@ -38461,7 +33985,7 @@ def start_resources_get_strike_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_get_strike_categories_without_preload_content( @@ -38524,7 +34048,7 @@ def start_resources_get_strike_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_get_strike_categories_serialize( self, @@ -38663,7 +34187,7 @@ def start_resources_get_strikes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_get_strikes_with_http_info( @@ -38726,7 +34250,7 @@ def start_resources_get_strikes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_get_strikes_without_preload_content( @@ -38789,7 +34313,7 @@ def start_resources_get_strikes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_get_strikes_serialize( self, @@ -38929,7 +34453,7 @@ def start_resources_global_playlists_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_global_playlists_upload_file_with_http_info( @@ -38993,7 +34517,7 @@ def start_resources_global_playlists_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_global_playlists_upload_file_without_preload_content( @@ -39057,7 +34581,7 @@ def start_resources_global_playlists_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_global_playlists_upload_file_serialize( self, @@ -39197,7 +34721,7 @@ def start_resources_http_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_http_library_upload_file_with_http_info( @@ -39261,7 +34785,7 @@ def start_resources_http_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_http_library_upload_file_without_preload_content( @@ -39325,7 +34849,7 @@ def start_resources_http_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_http_library_upload_file_serialize( self, @@ -39465,7 +34989,7 @@ def start_resources_media_files_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_media_files_upload_file_with_http_info( @@ -39529,7 +35053,7 @@ def start_resources_media_files_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_media_files_upload_file_without_preload_content( @@ -39593,7 +35117,7 @@ def start_resources_media_files_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_media_files_upload_file_serialize( self, @@ -39733,7 +35257,7 @@ def start_resources_media_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_media_library_upload_file_with_http_info( @@ -39797,7 +35321,7 @@ def start_resources_media_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_media_library_upload_file_without_preload_content( @@ -39861,7 +35385,7 @@ def start_resources_media_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_media_library_upload_file_serialize( self, @@ -40001,7 +35525,7 @@ def start_resources_other_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_other_library_upload_file_with_http_info( @@ -40065,7 +35589,7 @@ def start_resources_other_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_other_library_upload_file_without_preload_content( @@ -40129,7 +35653,7 @@ def start_resources_other_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_other_library_upload_file_serialize( self, @@ -40269,7 +35793,7 @@ def start_resources_payloads_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_payloads_upload_file_with_http_info( @@ -40333,7 +35857,7 @@ def start_resources_payloads_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_payloads_upload_file_without_preload_content( @@ -40397,7 +35921,7 @@ def start_resources_payloads_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_payloads_upload_file_serialize( self, @@ -40537,7 +36061,7 @@ def start_resources_pcaps_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_pcaps_upload_file_with_http_info( @@ -40601,7 +36125,7 @@ def start_resources_pcaps_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_pcaps_upload_file_without_preload_content( @@ -40665,7 +36189,7 @@ def start_resources_pcaps_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_pcaps_upload_file_serialize( self, @@ -40805,7 +36329,7 @@ def start_resources_playlists_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_playlists_upload_file_with_http_info( @@ -40869,7 +36393,7 @@ def start_resources_playlists_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_playlists_upload_file_without_preload_content( @@ -40933,7 +36457,7 @@ def start_resources_playlists_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_playlists_upload_file_serialize( self, @@ -41073,7 +36597,7 @@ def start_resources_sip_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_sip_library_upload_file_with_http_info( @@ -41137,7 +36661,7 @@ def start_resources_sip_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_sip_library_upload_file_without_preload_content( @@ -41201,7 +36725,7 @@ def start_resources_sip_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_sip_library_upload_file_serialize( self, @@ -41341,7 +36865,7 @@ def start_resources_stats_profile_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_stats_profile_upload_file_with_http_info( @@ -41405,7 +36929,7 @@ def start_resources_stats_profile_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_stats_profile_upload_file_without_preload_content( @@ -41469,7 +36993,7 @@ def start_resources_stats_profile_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_stats_profile_upload_file_serialize( self, @@ -41609,7 +37133,7 @@ def start_resources_tls_certificates_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_tls_certificates_upload_file_with_http_info( @@ -41673,7 +37197,7 @@ def start_resources_tls_certificates_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_tls_certificates_upload_file_without_preload_content( @@ -41737,7 +37261,7 @@ def start_resources_tls_certificates_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_tls_certificates_upload_file_serialize( self, @@ -41877,7 +37401,7 @@ def start_resources_tls_dhs_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_tls_dhs_upload_file_with_http_info( @@ -41941,7 +37465,7 @@ def start_resources_tls_dhs_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_tls_dhs_upload_file_without_preload_content( @@ -42005,7 +37529,7 @@ def start_resources_tls_dhs_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_tls_dhs_upload_file_serialize( self, @@ -42145,7 +37669,7 @@ def start_resources_tls_keys_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_tls_keys_upload_file_with_http_info( @@ -42209,7 +37733,7 @@ def start_resources_tls_keys_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_tls_keys_upload_file_without_preload_content( @@ -42273,7 +37797,7 @@ def start_resources_tls_keys_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_tls_keys_upload_file_serialize( self, @@ -42412,7 +37936,7 @@ def start_resources_user_defined_apps_export_all( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_export_all_with_http_info( @@ -42475,7 +37999,7 @@ def start_resources_user_defined_apps_export_all_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_export_all_without_preload_content( @@ -42538,7 +38062,7 @@ def start_resources_user_defined_apps_export_all_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_user_defined_apps_export_all_serialize( self, @@ -42678,7 +38202,7 @@ def start_resources_user_defined_apps_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_upload_file_with_http_info( @@ -42742,7 +38266,7 @@ def start_resources_user_defined_apps_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_upload_file_without_preload_content( @@ -42806,7 +38330,7 @@ def start_resources_user_defined_apps_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_user_defined_apps_upload_file_serialize( self, @@ -42882,3 +38406,271 @@ def _start_resources_user_defined_apps_upload_file_serialize( ) + + + @validate_call + def start_resources_voice_custom_flows_upload_file( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """start_resources_voice_custom_flows_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_voice_custom_flows_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_voice_custom_flows_upload_file_with_http_info( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """start_resources_voice_custom_flows_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_voice_custom_flows_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_voice_custom_flows_upload_file_without_preload_content( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_resources_voice_custom_flows_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_voice_custom_flows_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_resources_voice_custom_flows_upload_file_serialize( + self, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/resources/voice-custom-flows/operations/uploadFile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cyperf/api/authorization_api.py b/cyperf/api/authorization_api.py index d1a8d8b..37b7b39 100644 --- a/cyperf/api/authorization_api.py +++ b/cyperf/api/authorization_api.py @@ -122,7 +122,7 @@ def authenticate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def authenticate_with_http_info( @@ -205,7 +205,7 @@ def authenticate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def authenticate_without_preload_content( @@ -288,7 +288,7 @@ def authenticate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _authenticate_serialize( self, diff --git a/cyperf/api/brokers_api.py b/cyperf/api/brokers_api.py index 08483ec..2c39111 100644 --- a/cyperf/api/brokers_api.py +++ b/cyperf/api/brokers_api.py @@ -105,7 +105,7 @@ def create_brokers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_brokers_with_http_info( @@ -170,7 +170,7 @@ def create_brokers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_brokers_without_preload_content( @@ -235,7 +235,7 @@ def create_brokers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_brokers_serialize( self, @@ -378,7 +378,7 @@ def delete_broker( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_broker_with_http_info( @@ -444,7 +444,7 @@ def delete_broker_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_broker_without_preload_content( @@ -510,7 +510,7 @@ def delete_broker_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_broker_serialize( self, @@ -637,7 +637,7 @@ def get_broker_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_broker_by_id_with_http_info( @@ -701,7 +701,7 @@ def get_broker_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_broker_by_id_without_preload_content( @@ -765,7 +765,7 @@ def get_broker_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_broker_by_id_serialize( self, @@ -897,7 +897,7 @@ def get_brokers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_brokers_with_http_info( @@ -966,7 +966,7 @@ def get_brokers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_brokers_without_preload_content( @@ -1035,7 +1035,7 @@ def get_brokers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_brokers_serialize( self, @@ -1175,7 +1175,7 @@ def patch_broker( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_broker_with_http_info( @@ -1245,7 +1245,7 @@ def patch_broker_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_broker_without_preload_content( @@ -1315,7 +1315,7 @@ def patch_broker_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_broker_serialize( self, diff --git a/cyperf/api/configurations_api.py b/cyperf/api/configurations_api.py index a353176..62830e7 100644 --- a/cyperf/api/configurations_api.py +++ b/cyperf/api/configurations_api.py @@ -21,8 +21,10 @@ from typing import List, Optional, Union from typing_extensions import Annotated from cyperf.models.async_context import AsyncContext +from cyperf.models.config_category import ConfigCategory from cyperf.models.config_metadata import ConfigMetadata from cyperf.models.export_all_operation import ExportAllOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_configs200_response import GetConfigs200Response from cyperf.models.get_resources_custom_import_operations200_response import GetResourcesCustomImportOperations200Response @@ -111,7 +113,7 @@ def create_configs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_configs_with_http_info( @@ -176,7 +178,7 @@ def create_configs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_configs_without_preload_content( @@ -241,7 +243,7 @@ def create_configs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_configs_serialize( self, @@ -387,7 +389,7 @@ def delete_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_config_with_http_info( @@ -453,7 +455,7 @@ def delete_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_config_without_preload_content( @@ -519,7 +521,7 @@ def delete_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_config_serialize( self, @@ -655,7 +657,7 @@ def get_config_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_by_id_with_http_info( @@ -728,7 +730,7 @@ def get_config_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_by_id_without_preload_content( @@ -801,7 +803,7 @@ def get_config_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_by_id_serialize( self, @@ -880,10 +882,9 @@ def _get_config_by_id_serialize( @validate_call - def get_config_categories( + def get_config_categorie_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, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -896,15 +897,13 @@ def get_config_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetConfigCategories200Response: - """get_config_categories + ) -> ConfigCategory: + """get_config_categorie_by_id - Get the list of available configuration categories. + returns a single configuration category with its subcategories. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -927,9 +926,8 @@ def get_config_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._get_config_categories_serialize( - take=take, - skip=skip, + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -937,7 +935,7 @@ def get_config_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetConfigCategories200Response", + '200': "ConfigCategory", '500': "ErrorResponse", } return self.api_client.call_api( @@ -945,13 +943,12 @@ def get_config_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_config_categories_with_http_info( + def get_config_categorie_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, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -964,15 +961,13 @@ def get_config_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[GetConfigCategories200Response]: - """get_config_categories + ) -> ApiResponse[ConfigCategory]: + """get_config_categorie_by_id - Get the list of available configuration categories. + returns a single configuration category with its subcategories. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -995,9 +990,8 @@ def get_config_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_config_categories_serialize( - take=take, - skip=skip, + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1005,7 +999,7 @@ def get_config_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetConfigCategories200Response", + '200': "ConfigCategory", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1013,13 +1007,12 @@ def get_config_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_config_categories_without_preload_content( + def get_config_categorie_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, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1033,14 +1026,12 @@ def get_config_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_config_categories + """get_config_categorie_by_id - Get the list of available configuration categories. + returns a single configuration category with its subcategories. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1063,9 +1054,8 @@ def get_config_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_config_categories_serialize( - take=take, - skip=skip, + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1073,7 +1063,7 @@ def get_config_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetConfigCategories200Response", + '200': "ConfigCategory", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1081,12 +1071,11 @@ def get_config_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_config_categories_serialize( + def _get_config_categorie_by_id_serialize( self, - take, - skip, + config_categorie_id, _request_auth, _content_type, _headers, @@ -1106,15 +1095,9 @@ def _get_config_categories_serialize( _body_params: Optional[bytes] = None # process the path parameters + if config_categorie_id is not None: + _path_params['configCategorieId'] = config_categorie_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -1137,7 +1120,7 @@ def _get_config_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/config-categories', + resource_path='/api/v2/config-categories/{configCategorieId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1154,14 +1137,11 @@ def _get_config_categories_serialize( @validate_call - def get_configs( + def get_config_categorie_subcategories( self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1174,23 +1154,16 @@ def get_configs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetConfigs200Response: - """get_configs + ) -> GetConfigCategorieSubcategories200Response: + """get_config_categorie_subcategories - Get all the configurations available to the current user. + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1213,13 +1186,10 @@ def get_configs( :return: Returns the result object. """ # noqa: E501 - _param = self._get_configs_serialize( + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1227,7 +1197,8 @@ def get_configs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetConfigs200Response", + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1235,17 +1206,14 @@ def get_configs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_configs_with_http_info( + def get_config_categorie_subcategories_with_http_info( self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1258,23 +1226,16 @@ def get_configs_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[GetConfigs200Response]: - """get_configs + ) -> ApiResponse[GetConfigCategorieSubcategories200Response]: + """get_config_categorie_subcategories - Get all the configurations available to the current user. + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1297,13 +1258,10 @@ def get_configs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_configs_serialize( + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1311,7 +1269,8 @@ def get_configs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetConfigs200Response", + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1319,17 +1278,14 @@ def get_configs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_configs_without_preload_content( + def get_config_categorie_subcategories_without_preload_content( self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1343,22 +1299,15 @@ def get_configs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_configs + """get_config_categorie_subcategories - Get all the configurations available to the current user. + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1381,13 +1330,10 @@ def get_configs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_configs_serialize( + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1395,7 +1341,8 @@ def get_configs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetConfigs200Response", + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1403,16 +1350,13 @@ def get_configs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_configs_serialize( + def _get_config_categorie_subcategories_serialize( self, + config_categorie_id, take, skip, - search_col, - search_val, - filter_mode, - sort, _request_auth, _content_type, _headers, @@ -1432,6 +1376,8 @@ def _get_configs_serialize( _body_params: Optional[bytes] = None # process the path parameters + if config_categorie_id is not None: + _path_params['configCategorieId'] = config_categorie_id # process the query parameters if take is not None: @@ -1441,22 +1387,6 @@ def _get_configs_serialize( _query_params.append(('skip', skip)) - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - # process the header parameters # process the form parameters # process the body parameter @@ -1479,7 +1409,7 @@ def _get_configs_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/configs', + resource_path='/api/v2/config-categories/{configCategorieId}/subcategories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1496,7 +1426,7 @@ def _get_configs_serialize( @validate_call - def get_resources_custom_import_operations( + def get_config_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, @@ -1512,10 +1442,10 @@ def get_resources_custom_import_operations( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCustomImportOperations200Response: - """get_resources_custom_import_operations + ) -> GetConfigCategories200Response: + """get_config_categories - Get all the custom import config operations. + Get the list of available configuration categories. :param take: The number of search results to return :type take: int @@ -1543,7 +1473,7 @@ def get_resources_custom_import_operations( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_import_operations_serialize( + _param = self._get_config_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -1553,7 +1483,7 @@ def get_resources_custom_import_operations( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCustomImportOperations200Response", + '200': "GetConfigCategories200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1561,10 +1491,10 @@ def get_resources_custom_import_operations( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_custom_import_operations_with_http_info( + def get_config_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, @@ -1580,10 +1510,10 @@ def get_resources_custom_import_operations_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[GetResourcesCustomImportOperations200Response]: - """get_resources_custom_import_operations + ) -> ApiResponse[GetConfigCategories200Response]: + """get_config_categories - Get all the custom import config operations. + Get the list of available configuration categories. :param take: The number of search results to return :type take: int @@ -1611,7 +1541,7 @@ def get_resources_custom_import_operations_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_import_operations_serialize( + _param = self._get_config_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -1621,7 +1551,7 @@ def get_resources_custom_import_operations_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCustomImportOperations200Response", + '200': "GetConfigCategories200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1629,10 +1559,10 @@ def get_resources_custom_import_operations_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def get_resources_custom_import_operations_without_preload_content( + def get_config_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, @@ -1649,9 +1579,9 @@ def get_resources_custom_import_operations_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_import_operations + """get_config_categories - Get all the custom import config operations. + Get the list of available configuration categories. :param take: The number of search results to return :type take: int @@ -1679,7 +1609,7 @@ def get_resources_custom_import_operations_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_import_operations_serialize( + _param = self._get_config_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -1689,7 +1619,7 @@ def get_resources_custom_import_operations_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCustomImportOperations200Response", + '200': "GetConfigCategories200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1697,9 +1627,9 @@ def get_resources_custom_import_operations_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _get_resources_custom_import_operations_serialize( + def _get_config_categories_serialize( self, take, skip, @@ -1753,7 +1683,7 @@ def _get_resources_custom_import_operations_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-import-operations', + resource_path='/api/v2/config-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1770,10 +1700,14 @@ def _get_resources_custom_import_operations_serialize( @validate_call - def patch_config( + def get_configs( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - config_metadata: Optional[ConfigMetadata] = 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, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1786,15 +1720,23 @@ def patch_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """patch_config + ) -> GetConfigs200Response: + """get_configs - Update a particular configuration. Only non-null fields are updated. + Get all the configurations available to the current user. - :param config_id: The ID of the config. (required) - :type config_id: str - :param config_metadata: - :type config_metadata: ConfigMetadata + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1817,9 +1759,13 @@ def patch_config( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_config_serialize( - config_id=config_id, - config_metadata=config_metadata, + _param = self._get_configs_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1827,8 +1773,7 @@ def patch_config( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", + '200': "GetConfigs200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1836,13 +1781,17 @@ def patch_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def patch_config_with_http_info( + def get_configs_with_http_info( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - config_metadata: Optional[ConfigMetadata] = 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, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1855,548 +1804,23 @@ def patch_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """patch_config - - Update a particular configuration. Only non-null fields are updated. - - :param config_id: The ID of the config. (required) - :type config_id: str - :param config_metadata: - :type config_metadata: 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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_config_serialize( - config_id=config_id, - config_metadata=config_metadata, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def patch_config_without_preload_content( - self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - config_metadata: Optional[ConfigMetadata] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """patch_config - - Update a particular configuration. Only non-null fields are updated. - - :param config_id: The ID of the config. (required) - :type config_id: str - :param config_metadata: - :type config_metadata: 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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_config_serialize( - config_id=config_id, - config_metadata=config_metadata, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _patch_config_serialize( - self, - config_id, - config_metadata, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if config_id is not None: - _path_params['configId'] = config_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if config_metadata is not None: - _body_params = config_metadata - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/api/v2/configs/{configId}', - 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_configs_batch_delete( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_configs_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_configs_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_configs_batch_delete_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_configs_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_configs_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_configs_batch_delete_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_configs_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_configs_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_configs_batch_delete_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/batch-delete/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_configs_export_all( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_configs_export_all - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_configs_export_all_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_configs_export_all_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_configs_export_all + ) -> ApiResponse[GetConfigs200Response]: + """get_configs - Get the state of an ongoing operation. + Get all the configurations available to the current user. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2419,8 +1843,13 @@ def poll_configs_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_export_all_serialize( - id=id, + _param = self._get_configs_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2428,20 +1857,25 @@ def poll_configs_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetConfigs200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_export_all_without_preload_content( + def get_configs_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2455,12 +1889,22 @@ def poll_configs_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_export_all + """get_configs - Get the state of an ongoing operation. + Get all the configurations available to the current user. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2483,8 +1927,13 @@ def poll_configs_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_export_all_serialize( - id=id, + _param = self._get_configs_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2492,19 +1941,24 @@ def poll_configs_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetConfigs200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_export_all_serialize( + def _get_configs_serialize( self, - id, + take, + skip, + search_col, + search_val, + filter_mode, + sort, _request_auth, _content_type, _headers, @@ -2524,9 +1978,31 @@ def _poll_configs_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + 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)) + # process the header parameters # process the form parameters # process the body parameter @@ -2549,7 +2025,7 @@ def _poll_configs_export_all_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/configs/operations/exportAll/{id}', + resource_path='/api/v2/configs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2566,9 +2042,10 @@ def _poll_configs_export_all_serialize( @validate_call - def poll_configs_import( + def get_resources_custom_import_operations( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2581,13 +2058,15 @@ def poll_configs_import( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_configs_import + ) -> GetResourcesCustomImportOperations200Response: + """get_resources_custom_import_operations - Get the state of an ongoing operation. + Get all the custom import config operations. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2610,8 +2089,9 @@ def poll_configs_import( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._get_resources_custom_import_operations_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2619,20 +2099,21 @@ def poll_configs_import( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetResourcesCustomImportOperations200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_with_http_info( + def get_resources_custom_import_operations_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2645,13 +2126,15 @@ def poll_configs_import_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_configs_import + ) -> ApiResponse[GetResourcesCustomImportOperations200Response]: + """get_resources_custom_import_operations - Get the state of an ongoing operation. + Get all the custom import config operations. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2674,8 +2157,9 @@ def poll_configs_import_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._get_resources_custom_import_operations_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2683,20 +2167,21 @@ def poll_configs_import_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetResourcesCustomImportOperations200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_without_preload_content( + def get_resources_custom_import_operations_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2710,12 +2195,14 @@ def poll_configs_import_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_import + """get_resources_custom_import_operations - Get the state of an ongoing operation. + Get all the custom import config operations. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2738,8 +2225,9 @@ def poll_configs_import_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._get_resources_custom_import_operations_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2747,19 +2235,20 @@ def poll_configs_import_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetResourcesCustomImportOperations200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_import_serialize( + def _get_resources_custom_import_operations_serialize( self, - id, + take, + skip, _request_auth, _content_type, _headers, @@ -2779,9 +2268,15 @@ def _poll_configs_import_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + 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 @@ -2804,7 +2299,7 @@ def _poll_configs_import_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/configs/operations/import/{id}', + resource_path='/api/v2/resources/custom-import-operations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2821,9 +2316,10 @@ def _poll_configs_import_serialize( @validate_call - def poll_configs_import_all( + def patch_config( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + config_metadata: Optional[ConfigMetadata] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2836,13 +2332,15 @@ def poll_configs_import_all( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_configs_import_all + ) -> None: + """patch_config - Get the state of an ongoing operation. + Update a particular configuration. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param config_id: The ID of the config. (required) + :type config_id: str + :param config_metadata: + :type config_metadata: 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 @@ -2865,8 +2363,9 @@ def poll_configs_import_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._patch_config_serialize( + config_id=config_id, + config_metadata=config_metadata, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2874,20 +2373,22 @@ def poll_configs_import_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_all_with_http_info( + def patch_config_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + config_metadata: Optional[ConfigMetadata] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2900,13 +2401,15 @@ def poll_configs_import_all_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_configs_import_all + ) -> ApiResponse[None]: + """patch_config - Get the state of an ongoing operation. + Update a particular configuration. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param config_id: The ID of the config. (required) + :type config_id: str + :param config_metadata: + :type config_metadata: 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 @@ -2929,8 +2432,9 @@ def poll_configs_import_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._patch_config_serialize( + config_id=config_id, + config_metadata=config_metadata, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2938,20 +2442,22 @@ def poll_configs_import_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_all_without_preload_content( + def patch_config_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + config_metadata: Optional[ConfigMetadata] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2965,12 +2471,14 @@ def poll_configs_import_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_import_all + """patch_config - Get the state of an ongoing operation. + Update a particular configuration. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param config_id: The ID of the config. (required) + :type config_id: str + :param config_metadata: + :type config_metadata: 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 @@ -2993,8 +2501,9 @@ def poll_configs_import_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._patch_config_serialize( + config_id=config_id, + config_metadata=config_metadata, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3002,19 +2511,21 @@ def poll_configs_import_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_import_all_serialize( + def _patch_config_serialize( self, - id, + config_id, + config_metadata, _request_auth, _content_type, _headers, @@ -3034,12 +2545,14 @@ def _poll_configs_import_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if config_id is not None: + _path_params['configId'] = config_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if config_metadata is not None: + _body_params = config_metadata # set the HTTP header `Accept` @@ -3050,6 +2563,19 @@ def _poll_configs_import_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] = [ @@ -3058,8 +2584,8 @@ def _poll_configs_import_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/importAll/{id}', + method='PATCH', + resource_path='/api/v2/configs/{configId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3075,6 +2601,46 @@ def _poll_configs_import_all_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call def start_configs_batch_delete( self, @@ -3136,7 +2702,7 @@ def start_configs_batch_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_configs_batch_delete_with_http_info( @@ -3199,7 +2765,7 @@ def start_configs_batch_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_configs_batch_delete_without_preload_content( @@ -3262,7 +2828,7 @@ def start_configs_batch_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_configs_batch_delete_serialize( self, @@ -3402,7 +2968,7 @@ def start_configs_export_all( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_configs_export_all_with_http_info( @@ -3465,7 +3031,7 @@ def start_configs_export_all_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_configs_export_all_without_preload_content( @@ -3528,7 +3094,7 @@ def start_configs_export_all_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_configs_export_all_serialize( self, @@ -3667,7 +3233,7 @@ def start_configs_import( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_configs_import_with_http_info( @@ -3730,7 +3296,7 @@ def start_configs_import_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_configs_import_without_preload_content( @@ -3793,7 +3359,7 @@ def start_configs_import_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_configs_import_serialize( self, @@ -3939,7 +3505,7 @@ def start_configs_import_all( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_configs_import_all_with_http_info( @@ -4002,7 +3568,7 @@ def start_configs_import_all_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_configs_import_all_without_preload_content( @@ -4065,7 +3631,7 @@ def start_configs_import_all_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_configs_import_all_serialize( self, @@ -4211,7 +3777,7 @@ def update_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_config_with_http_info( @@ -4281,7 +3847,7 @@ def update_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_config_without_preload_content( @@ -4351,7 +3917,7 @@ def update_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_config_serialize( self, diff --git a/cyperf/api/data_migration_api.py b/cyperf/api/data_migration_api.py index 58b0d8e..674238c 100644 --- a/cyperf/api/data_migration_api.py +++ b/cyperf/api/data_migration_api.py @@ -42,512 +42,22 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def poll_controller_migration_export( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_export_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_export_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controller_migration_export_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controller-migration/operations/export/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) + + + - @validate_call - def poll_controller_migration_import( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controller_migration_import - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + - @validate_call - def poll_controller_migration_import_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controller_migration_import + - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_import_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controller_migration_import - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controller_migration_import_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controller-migration/operations/import/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -613,7 +123,7 @@ def start_controller_migration_export( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_export_with_http_info( @@ -676,7 +186,7 @@ def start_controller_migration_export_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_export_without_preload_content( @@ -739,7 +249,7 @@ def start_controller_migration_export_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controller_migration_export_serialize( self, @@ -874,7 +384,7 @@ def start_controller_migration_import( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_import_with_http_info( @@ -933,7 +443,7 @@ def start_controller_migration_import_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_import_without_preload_content( @@ -992,7 +502,7 @@ def start_controller_migration_import_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controller_migration_import_serialize( self, diff --git a/cyperf/api/diagnostics_api.py b/cyperf/api/diagnostics_api.py index 43eee01..5a59367 100644 --- a/cyperf/api/diagnostics_api.py +++ b/cyperf/api/diagnostics_api.py @@ -21,7 +21,7 @@ from typing import List, Optional, Union from typing_extensions import Annotated from cyperf.models.archive_info import ArchiveInfo -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.diagnostic_component import DiagnosticComponent from cyperf.models.diagnostic_component_context import DiagnosticComponentContext @@ -102,7 +102,7 @@ def api_v2_diagnostics_components_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_components_get_with_http_info( @@ -162,7 +162,7 @@ def api_v2_diagnostics_components_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_components_get_without_preload_content( @@ -222,7 +222,7 @@ def api_v2_diagnostics_components_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_components_get_serialize( self, @@ -341,7 +341,7 @@ def api_v2_diagnostics_operations_delete_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_delete_with_http_info( @@ -400,7 +400,7 @@ def api_v2_diagnostics_operations_delete_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_delete_without_preload_content( @@ -459,7 +459,7 @@ def api_v2_diagnostics_operations_delete_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_delete_delete_serialize( self, @@ -582,7 +582,7 @@ def api_v2_diagnostics_operations_delete_id_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_id_delete_with_http_info( @@ -645,7 +645,7 @@ def api_v2_diagnostics_operations_delete_id_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_id_delete_without_preload_content( @@ -708,7 +708,7 @@ def api_v2_diagnostics_operations_delete_id_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_delete_id_delete_serialize( self, @@ -830,7 +830,7 @@ def api_v2_diagnostics_operations_export_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_get_with_http_info( @@ -889,7 +889,7 @@ def api_v2_diagnostics_operations_export_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_get_without_preload_content( @@ -948,7 +948,7 @@ def api_v2_diagnostics_operations_export_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_get_serialize( self, @@ -1026,7 +1026,7 @@ def api_v2_diagnostics_operations_export_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """api_v2_diagnostics_operations_export_id_get Get the state of an ongoing operation. @@ -1064,7 +1064,7 @@ def api_v2_diagnostics_operations_export_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1072,7 +1072,7 @@ def api_v2_diagnostics_operations_export_id_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_get_with_http_info( @@ -1090,7 +1090,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """api_v2_diagnostics_operations_export_id_get Get the state of an ongoing operation. @@ -1128,7 +1128,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1136,7 +1136,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_get_without_preload_content( @@ -1192,7 +1192,7 @@ def api_v2_diagnostics_operations_export_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1200,7 +1200,7 @@ def api_v2_diagnostics_operations_export_id_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_id_get_serialize( self, @@ -1327,7 +1327,7 @@ def api_v2_diagnostics_operations_export_id_result_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_result_get_with_http_info( @@ -1391,7 +1391,7 @@ def api_v2_diagnostics_operations_export_id_result_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_result_get_without_preload_content( @@ -1455,7 +1455,7 @@ def api_v2_diagnostics_operations_export_id_result_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_id_result_get_serialize( self, @@ -1536,7 +1536,7 @@ def api_v2_diagnostics_operations_export_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """api_v2_diagnostics_operations_export_post Start the diagnostic export operation. @@ -1574,7 +1574,7 @@ def api_v2_diagnostics_operations_export_post( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1582,7 +1582,7 @@ def api_v2_diagnostics_operations_export_post( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_post_with_http_info( @@ -1600,7 +1600,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """api_v2_diagnostics_operations_export_post Start the diagnostic export operation. @@ -1638,7 +1638,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1646,7 +1646,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_post_without_preload_content( @@ -1702,7 +1702,7 @@ def api_v2_diagnostics_operations_export_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1710,7 +1710,7 @@ def api_v2_diagnostics_operations_export_post_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_post_serialize( self, diff --git a/cyperf/api/license_servers_api.py b/cyperf/api/license_servers_api.py index 1e10137..a45eb7a 100644 --- a/cyperf/api/license_servers_api.py +++ b/cyperf/api/license_servers_api.py @@ -105,7 +105,7 @@ def create_license_servers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_license_servers_with_http_info( @@ -170,7 +170,7 @@ def create_license_servers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_license_servers_without_preload_content( @@ -235,7 +235,7 @@ def create_license_servers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_license_servers_serialize( self, @@ -377,7 +377,7 @@ def delete_license_server( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_license_server_with_http_info( @@ -442,7 +442,7 @@ def delete_license_server_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_license_server_without_preload_content( @@ -507,7 +507,7 @@ def delete_license_server_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_license_server_serialize( self, @@ -635,7 +635,7 @@ def get_license_server_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_server_by_id_with_http_info( @@ -700,7 +700,7 @@ def get_license_server_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_server_by_id_without_preload_content( @@ -765,7 +765,7 @@ def get_license_server_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_server_by_id_serialize( self, @@ -896,7 +896,7 @@ def get_license_servers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_servers_with_http_info( @@ -964,7 +964,7 @@ def get_license_servers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_servers_without_preload_content( @@ -1032,7 +1032,7 @@ def get_license_servers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_servers_serialize( self, @@ -1171,7 +1171,7 @@ def patch_license_server( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_license_server_with_http_info( @@ -1240,7 +1240,7 @@ def patch_license_server_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_license_server_without_preload_content( @@ -1309,7 +1309,7 @@ def patch_license_server_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_license_server_serialize( self, diff --git a/cyperf/api/licensing_api.py b/cyperf/api/licensing_api.py index f04d9a5..ba1a2c5 100644 --- a/cyperf/api/licensing_api.py +++ b/cyperf/api/licensing_api.py @@ -22,7 +22,7 @@ from typing_extensions import Annotated from cyperf.models.activation_code_list_request import ActivationCodeListRequest from cyperf.models.activation_code_request import ActivationCodeRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.entitlement_code_request import EntitlementCodeRequest from cyperf.models.feature_reservation_reserve import FeatureReservationReserve from cyperf.models.fulfillment_request import FulfillmentRequest @@ -67,7 +67,7 @@ def activate_licenses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Performs an online request to KSM and activates the requested licenses. @@ -104,7 +104,7 @@ def activate_licenses( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -112,7 +112,7 @@ def activate_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def activate_licenses_with_http_info( @@ -130,7 +130,7 @@ def activate_licenses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Performs an online request to KSM and activates the requested licenses. @@ -167,7 +167,7 @@ def activate_licenses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -175,7 +175,7 @@ def activate_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def activate_licenses_without_preload_content( @@ -230,7 +230,7 @@ def activate_licenses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -238,7 +238,7 @@ def activate_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _activate_licenses_serialize( self, @@ -333,7 +333,7 @@ def deactivate_licenses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Performs an online request to KSM to deactivate the requested licenses. @@ -370,7 +370,7 @@ def deactivate_licenses( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -378,7 +378,7 @@ def deactivate_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def deactivate_licenses_with_http_info( @@ -396,7 +396,7 @@ def deactivate_licenses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Performs an online request to KSM to deactivate the requested licenses. @@ -433,7 +433,7 @@ def deactivate_licenses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -441,7 +441,7 @@ def deactivate_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def deactivate_licenses_without_preload_content( @@ -496,7 +496,7 @@ def deactivate_licenses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -504,7 +504,7 @@ def deactivate_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _deactivate_licenses_serialize( self, @@ -640,7 +640,7 @@ def generate_offline_request( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def generate_offline_request_with_http_info( @@ -699,7 +699,7 @@ def generate_offline_request_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def generate_offline_request_without_preload_content( @@ -758,7 +758,7 @@ def generate_offline_request_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _generate_offline_request_serialize( self, @@ -837,7 +837,7 @@ def get_activation_code_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the activation code info from KSM. @@ -874,7 +874,7 @@ def get_activation_code_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -882,7 +882,7 @@ def get_activation_code_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_with_http_info( @@ -900,7 +900,7 @@ def get_activation_code_info_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the activation code info from KSM. @@ -937,7 +937,7 @@ def get_activation_code_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -945,7 +945,7 @@ def get_activation_code_info_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_without_preload_content( @@ -1000,7 +1000,7 @@ def get_activation_code_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1008,7 +1008,7 @@ def get_activation_code_info_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_activation_code_info_serialize( self, @@ -1102,7 +1102,7 @@ def get_activation_code_info_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the activation code info list from KSM. @@ -1139,7 +1139,7 @@ def get_activation_code_info_list( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1147,7 +1147,7 @@ def get_activation_code_info_list( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_list_with_http_info( @@ -1165,7 +1165,7 @@ def get_activation_code_info_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the activation code info list from KSM. @@ -1202,7 +1202,7 @@ def get_activation_code_info_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1210,7 +1210,7 @@ def get_activation_code_info_list_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_list_without_preload_content( @@ -1265,7 +1265,7 @@ def get_activation_code_info_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1273,7 +1273,7 @@ def get_activation_code_info_list_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_activation_code_info_list_serialize( self, @@ -1416,7 +1416,7 @@ def get_async_operation_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_result_with_http_info( @@ -1483,7 +1483,7 @@ def get_async_operation_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_result_without_preload_content( @@ -1550,7 +1550,7 @@ def get_async_operation_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_async_operation_result_serialize( self, @@ -1635,7 +1635,7 @@ def get_async_operation_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Returns the status of an ongoing async operation. @@ -1675,7 +1675,7 @@ def get_async_operation_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1683,7 +1683,7 @@ def get_async_operation_status( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_status_with_http_info( @@ -1702,7 +1702,7 @@ def get_async_operation_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Returns the status of an ongoing async operation. @@ -1742,7 +1742,7 @@ def get_async_operation_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1750,7 +1750,7 @@ def get_async_operation_status_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_status_without_preload_content( @@ -1809,7 +1809,7 @@ def get_async_operation_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1817,7 +1817,7 @@ def get_async_operation_status_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_async_operation_status_serialize( self, @@ -1900,7 +1900,7 @@ def get_counted_feature_stats( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the counted feature stats. @@ -1934,8 +1934,7 @@ def get_counted_feature_stats( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1943,7 +1942,7 @@ def get_counted_feature_stats( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_counted_feature_stats_with_http_info( @@ -1960,7 +1959,7 @@ def get_counted_feature_stats_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the counted feature stats. @@ -1994,8 +1993,7 @@ def get_counted_feature_stats_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2003,7 +2001,7 @@ def get_counted_feature_stats_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_counted_feature_stats_without_preload_content( @@ -2054,8 +2052,7 @@ def get_counted_feature_stats_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2063,7 +2060,7 @@ def get_counted_feature_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_counted_feature_stats_serialize( self, @@ -2141,7 +2138,7 @@ def get_entitlement_code_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the activations codes of the supplied entitlement code from KSM. @@ -2178,7 +2175,7 @@ def get_entitlement_code_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2186,7 +2183,7 @@ def get_entitlement_code_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_entitlement_code_info_with_http_info( @@ -2204,7 +2201,7 @@ def get_entitlement_code_info_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the activations codes of the supplied entitlement code from KSM. @@ -2241,7 +2238,7 @@ def get_entitlement_code_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2249,7 +2246,7 @@ def get_entitlement_code_info_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_entitlement_code_info_without_preload_content( @@ -2304,7 +2301,7 @@ def get_entitlement_code_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2312,7 +2309,7 @@ def get_entitlement_code_info_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_entitlement_code_info_serialize( self, @@ -2447,7 +2444,7 @@ def get_hostid( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_hostid_with_http_info( @@ -2506,7 +2503,7 @@ def get_hostid_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_hostid_without_preload_content( @@ -2565,7 +2562,7 @@ def get_hostid_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_hostid_serialize( self, @@ -2684,7 +2681,7 @@ def get_installed_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_installed_licenses_with_http_info( @@ -2743,7 +2740,7 @@ def get_installed_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_installed_licenses_without_preload_content( @@ -2802,7 +2799,7 @@ def get_installed_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_installed_licenses_serialize( self, @@ -2925,7 +2922,7 @@ def get_license( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_with_http_info( @@ -2988,7 +2985,7 @@ def get_license_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_without_preload_content( @@ -3051,7 +3048,7 @@ def get_license_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_serialize( self, @@ -3185,7 +3182,7 @@ def get_license_async_operation_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_async_operation_result_with_http_info( @@ -3256,7 +3253,7 @@ def get_license_async_operation_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_async_operation_result_without_preload_content( @@ -3327,7 +3324,7 @@ def get_license_async_operation_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_async_operation_result_serialize( self, @@ -3416,7 +3413,7 @@ def get_license_async_operation_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Returns the status of an ongoing async operation. @@ -3459,7 +3456,7 @@ def get_license_async_operation_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -3467,7 +3464,7 @@ def get_license_async_operation_status( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_async_operation_status_with_http_info( @@ -3487,7 +3484,7 @@ def get_license_async_operation_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Returns the status of an ongoing async operation. @@ -3530,7 +3527,7 @@ def get_license_async_operation_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -3538,7 +3535,7 @@ def get_license_async_operation_status_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_async_operation_status_without_preload_content( @@ -3601,7 +3598,7 @@ def get_license_async_operation_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -3609,7 +3606,7 @@ def get_license_async_operation_status_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_async_operation_status_serialize( self, @@ -3741,7 +3738,7 @@ def import_offline_license( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def import_offline_license_with_http_info( @@ -3804,7 +3801,7 @@ def import_offline_license_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def import_offline_license_without_preload_content( @@ -3867,7 +3864,7 @@ def import_offline_license_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _import_offline_license_serialize( self, @@ -3962,7 +3959,7 @@ def remove_reservation( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Remove previously reserved features, thus making them available for checkout by other users. @@ -4002,7 +3999,7 @@ def remove_reservation( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4010,7 +4007,7 @@ def remove_reservation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def remove_reservation_with_http_info( @@ -4029,7 +4026,7 @@ def remove_reservation_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Remove previously reserved features, thus making them available for checkout by other users. @@ -4069,7 +4066,7 @@ def remove_reservation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4077,7 +4074,7 @@ def remove_reservation_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def remove_reservation_without_preload_content( @@ -4136,7 +4133,7 @@ def remove_reservation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4144,7 +4141,7 @@ def remove_reservation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _remove_reservation_serialize( self, @@ -4241,7 +4238,7 @@ def sync_licenses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Synchronize local licenses with KSM. @@ -4275,7 +4272,7 @@ def sync_licenses( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4283,7 +4280,7 @@ def sync_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def sync_licenses_with_http_info( @@ -4300,7 +4297,7 @@ def sync_licenses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Synchronize local licenses with KSM. @@ -4334,7 +4331,7 @@ def sync_licenses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4342,7 +4339,7 @@ def sync_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def sync_licenses_without_preload_content( @@ -4393,7 +4390,7 @@ def sync_licenses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4401,7 +4398,7 @@ def sync_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _sync_licenses_serialize( self, @@ -4478,7 +4475,7 @@ def test_backend_connectivity( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Tests connection of the license server with KSM. @@ -4512,7 +4509,7 @@ def test_backend_connectivity( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4520,7 +4517,7 @@ def test_backend_connectivity( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def test_backend_connectivity_with_http_info( @@ -4537,7 +4534,7 @@ def test_backend_connectivity_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Tests connection of the license server with KSM. @@ -4571,7 +4568,7 @@ def test_backend_connectivity_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4579,7 +4576,7 @@ def test_backend_connectivity_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def test_backend_connectivity_without_preload_content( @@ -4630,7 +4627,7 @@ def test_backend_connectivity_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4638,7 +4635,7 @@ def test_backend_connectivity_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _test_backend_connectivity_serialize( self, @@ -4717,7 +4714,7 @@ def update_reservation( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retain over a period of time specific counts of installed features, that can be consumed only by current user. @@ -4757,7 +4754,7 @@ def update_reservation( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4765,7 +4762,7 @@ def update_reservation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_reservation_with_http_info( @@ -4784,7 +4781,7 @@ def update_reservation_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retain over a period of time specific counts of installed features, that can be consumed only by current user. @@ -4824,7 +4821,7 @@ def update_reservation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4832,7 +4829,7 @@ def update_reservation_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_reservation_without_preload_content( @@ -4891,7 +4888,7 @@ def update_reservation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4899,7 +4896,7 @@ def update_reservation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_reservation_serialize( self, diff --git a/cyperf/api/notifications_api.py b/cyperf/api/notifications_api.py index 48cebe5..aa99ac0 100644 --- a/cyperf/api/notifications_api.py +++ b/cyperf/api/notifications_api.py @@ -109,7 +109,7 @@ def delete_notification( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_notification_with_http_info( @@ -176,7 +176,7 @@ def delete_notification_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_notification_without_preload_content( @@ -243,7 +243,7 @@ def delete_notification_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_notification_serialize( self, @@ -370,7 +370,7 @@ def get_notification_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_by_id_with_http_info( @@ -434,7 +434,7 @@ def get_notification_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_by_id_without_preload_content( @@ -498,7 +498,7 @@ def get_notification_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notification_by_id_serialize( self, @@ -673,7 +673,7 @@ def get_notification_counts( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_counts_with_http_info( @@ -785,7 +785,7 @@ def get_notification_counts_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_counts_without_preload_content( @@ -897,7 +897,7 @@ def get_notification_counts_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notification_counts_serialize( self, @@ -1142,7 +1142,7 @@ def get_notifications( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notifications_with_http_info( @@ -1262,7 +1262,7 @@ def get_notifications_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notifications_without_preload_content( @@ -1382,7 +1382,7 @@ def get_notifications_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notifications_serialize( self, @@ -1519,512 +1519,22 @@ def _get_notifications_serialize( - @validate_call - def poll_notifications_cleanup( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_cleanup_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_cleanup_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_notifications_cleanup_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/notifications/operations/cleanup/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_notifications_dismiss( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_notifications_dismiss + - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - @validate_call - def poll_notifications_dismiss_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_notifications_dismiss - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_dismiss_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_notifications_dismiss - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_notifications_dismiss_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/notifications/operations/dismiss/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -2086,7 +1596,7 @@ def start_notifications_cleanup( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_cleanup_with_http_info( @@ -2145,7 +1655,7 @@ def start_notifications_cleanup_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_cleanup_without_preload_content( @@ -2204,7 +1714,7 @@ def start_notifications_cleanup_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_notifications_cleanup_serialize( self, @@ -2323,7 +1833,7 @@ def start_notifications_dismiss( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_dismiss_with_http_info( @@ -2382,7 +1892,7 @@ def start_notifications_dismiss_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_dismiss_without_preload_content( @@ -2441,7 +1951,7 @@ def start_notifications_dismiss_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_notifications_dismiss_serialize( self, diff --git a/cyperf/api/reports_api.py b/cyperf/api/reports_api.py index a6af096..83ca1ef 100644 --- a/cyperf/api/reports_api.py +++ b/cyperf/api/reports_api.py @@ -109,7 +109,7 @@ def download_pdf( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def download_pdf_with_http_info( @@ -177,7 +177,7 @@ def download_pdf_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def download_pdf_without_preload_content( @@ -245,7 +245,7 @@ def download_pdf_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _download_pdf_serialize( self, @@ -381,7 +381,7 @@ def get_result_download_csv_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_csv_by_id_with_http_info( @@ -450,7 +450,7 @@ def get_result_download_csv_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_csv_by_id_without_preload_content( @@ -519,7 +519,7 @@ def get_result_download_csv_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_csv_by_id_serialize( self, @@ -587,542 +587,22 @@ def _get_result_download_csv_by_id_serialize( - @validate_call - def poll_result_generate_csv( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_csv_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_csv_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_result_generate_csv_serialize( - self, - result_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-csv/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_result_generate_pdf( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_result_generate_pdf - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_pdf_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_result_generate_pdf - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_pdf_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_result_generate_pdf - - Get the state of an ongoing operation. + - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - def _poll_result_generate_pdf_serialize( - self, - result_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + + - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] + - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-pdf/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1192,7 +672,7 @@ def start_result_generate_csv( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_csv_with_http_info( @@ -1259,7 +739,7 @@ def start_result_generate_csv_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_csv_without_preload_content( @@ -1326,7 +806,7 @@ def start_result_generate_csv_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_result_generate_csv_serialize( self, @@ -1472,7 +952,7 @@ def start_result_generate_pdf( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_pdf_with_http_info( @@ -1539,7 +1019,7 @@ def start_result_generate_pdf_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_pdf_without_preload_content( @@ -1606,7 +1086,7 @@ def start_result_generate_pdf_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_result_generate_pdf_serialize( self, diff --git a/cyperf/api/sessions_api.py b/cyperf/api/sessions_api.py index 05fc432..705e787 100644 --- a/cyperf/api/sessions_api.py +++ b/cyperf/api/sessions_api.py @@ -121,7 +121,7 @@ def create_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_session_meta_with_http_info( @@ -190,7 +190,7 @@ def create_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_session_meta_without_preload_content( @@ -259,7 +259,7 @@ def create_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_session_meta_serialize( self, @@ -404,7 +404,7 @@ def create_sessions( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_sessions_with_http_info( @@ -469,7 +469,7 @@ def create_sessions_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_sessions_without_preload_content( @@ -534,7 +534,7 @@ def create_sessions_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_sessions_serialize( self, @@ -678,7 +678,7 @@ def delete_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_with_http_info( @@ -745,7 +745,7 @@ def delete_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_without_preload_content( @@ -812,7 +812,7 @@ def delete_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_session_serialize( self, @@ -944,7 +944,7 @@ def delete_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_meta_with_http_info( @@ -1013,7 +1013,7 @@ def delete_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_meta_without_preload_content( @@ -1082,7 +1082,7 @@ def delete_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_session_meta_serialize( self, @@ -1212,7 +1212,7 @@ def get_config_docs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_docs_with_http_info( @@ -1276,7 +1276,7 @@ def get_config_docs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_docs_without_preload_content( @@ -1340,7 +1340,7 @@ def get_config_docs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_docs_serialize( self, @@ -1467,7 +1467,7 @@ def get_config_granular_stats( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_with_http_info( @@ -1531,7 +1531,7 @@ def get_config_granular_stats_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_without_preload_content( @@ -1595,7 +1595,7 @@ def get_config_granular_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_granular_stats_serialize( self, @@ -1722,7 +1722,7 @@ def get_config_granular_stats_filters( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_filters_with_http_info( @@ -1786,7 +1786,7 @@ def get_config_granular_stats_filters_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_filters_without_preload_content( @@ -1850,7 +1850,7 @@ def get_config_granular_stats_filters_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_granular_stats_filters_serialize( self, @@ -1981,7 +1981,7 @@ def get_session_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_by_id_with_http_info( @@ -2049,7 +2049,7 @@ def get_session_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_by_id_without_preload_content( @@ -2117,7 +2117,7 @@ def get_session_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_by_id_serialize( self, @@ -2253,7 +2253,7 @@ def get_session_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_config_with_http_info( @@ -2321,7 +2321,7 @@ def get_session_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_config_without_preload_content( @@ -2389,7 +2389,7 @@ def get_session_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_config_serialize( self, @@ -2529,7 +2529,7 @@ def get_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_with_http_info( @@ -2601,7 +2601,7 @@ def get_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_without_preload_content( @@ -2673,7 +2673,7 @@ def get_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_meta_serialize( self, @@ -2814,7 +2814,7 @@ def get_session_meta_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_by_id_with_http_info( @@ -2882,7 +2882,7 @@ def get_session_meta_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_by_id_without_preload_content( @@ -2950,7 +2950,7 @@ def get_session_meta_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_meta_by_id_serialize( self, @@ -3079,7 +3079,7 @@ def get_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_test_with_http_info( @@ -3142,7 +3142,7 @@ def get_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_test_without_preload_content( @@ -3205,7 +3205,7 @@ def get_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_test_serialize( self, @@ -3355,7 +3355,7 @@ def get_sessions( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_sessions_with_http_info( @@ -3442,7 +3442,7 @@ def get_sessions_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_sessions_without_preload_content( @@ -3529,7 +3529,7 @@ def get_sessions_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_sessions_serialize( self, @@ -3693,7 +3693,7 @@ def patch_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_with_http_info( @@ -3762,7 +3762,7 @@ def patch_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_without_preload_content( @@ -3831,7 +3831,7 @@ def patch_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_serialize( self, @@ -3983,7 +3983,7 @@ def patch_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_meta_with_http_info( @@ -4056,7 +4056,7 @@ def patch_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_meta_without_preload_content( @@ -4129,7 +4129,7 @@ def patch_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_meta_serialize( self, @@ -4278,7 +4278,7 @@ def patch_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_test_with_http_info( @@ -4345,7 +4345,7 @@ def patch_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_test_without_preload_content( @@ -4412,7 +4412,7 @@ def patch_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_test_serialize( self, @@ -4493,12 +4493,102 @@ def _patch_session_test_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_config_add_applications( + def start_config_add_applications( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4512,16 +4602,16 @@ def poll_config_add_applications( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4544,10 +4634,10 @@ def poll_config_add_applications( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4555,21 +4645,21 @@ def poll_config_add_applications( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_config_add_applications_with_http_info( + def start_config_add_applications_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4583,16 +4673,16 @@ def poll_config_add_applications_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4615,10 +4705,10 @@ def poll_config_add_applications_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4626,21 +4716,21 @@ def poll_config_add_applications_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_config_add_applications_without_preload_content( + def start_config_add_applications_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4654,16 +4744,16 @@ def poll_config_add_applications_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4686,10 +4776,10 @@ def poll_config_add_applications_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4697,20 +4787,20 @@ def poll_config_add_applications_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_config_add_applications_serialize( + def _start_config_add_applications_serialize( self, session_id, traffic_profile_id, - id, + external_resource_info, _request_auth, _content_type, _headers, @@ -4720,6 +4810,7 @@ def _poll_config_add_applications_serialize( _host = None _collection_formats: Dict[str, str] = { + 'ExternalResourceInfo': '', } _path_params: Dict[str, str] = {} @@ -4734,12 +4825,12 @@ def _poll_config_add_applications_serialize( _path_params['sessionId'] = session_id if traffic_profile_id is not None: _path_params['trafficProfileId'] = traffic_profile_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if external_resource_info is not None: + _body_params = external_resource_info # set the HTTP header `Accept` @@ -4750,6 +4841,19 @@ def _poll_config_add_applications_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4758,8 +4862,8 @@ def _poll_config_add_applications_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4776,10 +4880,9 @@ def _poll_config_add_applications_serialize( @validate_call - def poll_session_config_granular_stats_default_dashboards( + def start_session_config_granular_stats_default_dashboards( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4793,14 +4896,12 @@ def poll_session_config_granular_stats_default_dashboards( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4823,9 +4924,8 @@ def poll_session_config_granular_stats_default_dashboards( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4833,21 +4933,19 @@ def poll_session_config_granular_stats_default_dashboards( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_granular_stats_default_dashboards_with_http_info( + def start_session_config_granular_stats_default_dashboards_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4861,14 +4959,12 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4891,9 +4987,8 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4901,21 +4996,19 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_granular_stats_default_dashboards_without_preload_content( + def start_session_config_granular_stats_default_dashboards_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4929,14 +5022,12 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4959,9 +5050,8 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4969,20 +5059,18 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_session_config_granular_stats_default_dashboards_serialize( + def _start_session_config_granular_stats_default_dashboards_serialize( self, session_id, - id, _request_auth, _content_type, _headers, @@ -5004,8 +5092,6 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( # process the path parameters if session_id is not None: _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -5028,8 +5114,8 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5046,10 +5132,10 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( @validate_call - def poll_session_config_save( + def start_session_config_save( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5063,14 +5149,14 @@ def poll_session_config_save( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5093,9 +5179,9 @@ def poll_session_config_save( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5103,21 +5189,20 @@ def poll_session_config_save( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_save_with_http_info( + def start_session_config_save_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5131,14 +5216,14 @@ def poll_session_config_save_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5161,9 +5246,9 @@ def poll_session_config_save_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5171,21 +5256,20 @@ def poll_session_config_save_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_save_without_preload_content( + def start_session_config_save_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5199,14 +5283,14 @@ def poll_session_config_save_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5229,9 +5313,9 @@ def poll_session_config_save_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5239,20 +5323,19 @@ def poll_session_config_save_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_session_config_save_serialize( + def _start_session_config_save_serialize( self, session_id, - id, + save_config_operation, _request_auth, _content_type, _headers, @@ -5274,12 +5357,12 @@ def _poll_session_config_save_serialize( # process the path parameters if session_id is not None: _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if save_config_operation is not None: + _body_params = save_config_operation # set the HTTP header `Accept` @@ -5290,6 +5373,19 @@ def _poll_session_config_save_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5298,8 +5394,8 @@ def _poll_session_config_save_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/operations/save/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/operations/save', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5316,10 +5412,10 @@ def _poll_session_config_save_serialize( @validate_call - def poll_session_load_config( + def start_session_load_config( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + load_config_operation: Optional[LoadConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5333,14 +5429,14 @@ def poll_session_load_config( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_load_config + """start_session_load_config - Get the state of an ongoing operation. + Load a new test in the current session. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param load_config_operation: + :type load_config_operation: LoadConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5363,9 +5459,9 @@ def poll_session_load_config( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_load_config_serialize( + _param = self._start_session_load_config_serialize( session_id=session_id, - id=id, + load_config_operation=load_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5373,21 +5469,20 @@ def poll_session_load_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_load_config_with_http_info( + def start_session_load_config_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + load_config_operation: Optional[LoadConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5401,2441 +5496,9 @@ def poll_session_load_config_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_load_config + """start_session_load_config - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_load_config_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_load_config_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_load_config - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_load_config_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_load_config_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/loadConfig/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_prepare_test( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_prepare_test_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_prepare_test_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_prepare_test_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/prepareTest/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_test_end( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_end_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_end_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_test_end_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/testEnd/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_test_init( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_init_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_init_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_test_init_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/testInit/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_touch( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_touch_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_touch_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_touch_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/touch/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_sessions_batch_delete( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_sessions_batch_delete_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_sessions_batch_delete_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_sessions_batch_delete_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/operations/batch-delete/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_config_add_applications( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_config_add_applications_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_config_add_applications_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_config_add_applications_serialize( - self, - session_id, - traffic_profile_id, - external_resource_info, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'ExternalResourceInfo': '', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if traffic_profile_id is not None: - _path_params['trafficProfileId'] = traffic_profile_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if external_resource_info is not None: - _body_params = external_resource_info - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_config_granular_stats_default_dashboards( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_granular_stats_default_dashboards_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_granular_stats_default_dashboards_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_session_config_granular_stats_default_dashboards_serialize( - self, - session_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_config_save( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_save_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_save_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_session_config_save_serialize( - self, - session_id, - save_config_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if save_config_operation is not None: - _body_params = save_config_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/operations/save', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_load_config( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - load_config_operation: Optional[LoadConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_load_config - - Load a new test in the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param load_config_operation: - :type load_config_operation: LoadConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_load_config_serialize( - session_id=session_id, - load_config_operation=load_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_load_config_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - load_config_operation: Optional[LoadConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_load_config - - Load a new test in the current session. + Load a new test in the current session. :param session_id: The ID of the session. (required) :type session_id: str @@ -7880,7 +5543,7 @@ def start_session_load_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_load_config_without_preload_content( @@ -7947,7 +5610,7 @@ def start_session_load_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_load_config_serialize( self, @@ -8093,7 +5756,7 @@ def start_session_prepare_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_prepare_test_with_http_info( @@ -8160,7 +5823,7 @@ def start_session_prepare_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_prepare_test_without_preload_content( @@ -8227,7 +5890,7 @@ def start_session_prepare_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_prepare_test_serialize( self, @@ -8374,7 +6037,7 @@ def start_session_test_end( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_end_with_http_info( @@ -8441,7 +6104,7 @@ def start_session_test_end_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_end_without_preload_content( @@ -8508,7 +6171,7 @@ def start_session_test_end_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_test_end_serialize( self, @@ -8655,7 +6318,7 @@ def start_session_test_init( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_init_with_http_info( @@ -8722,7 +6385,7 @@ def start_session_test_init_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_init_without_preload_content( @@ -8789,7 +6452,7 @@ def start_session_test_init_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_test_init_serialize( self, @@ -8936,7 +6599,7 @@ def start_session_touch( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_touch_with_http_info( @@ -9003,7 +6666,7 @@ def start_session_touch_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_touch_without_preload_content( @@ -9070,7 +6733,7 @@ def start_session_touch_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_touch_serialize( self, @@ -9212,7 +6875,7 @@ def start_sessions_batch_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_sessions_batch_delete_with_http_info( @@ -9275,7 +6938,7 @@ def start_sessions_batch_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_sessions_batch_delete_without_preload_content( @@ -9338,7 +7001,7 @@ def start_sessions_batch_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_sessions_batch_delete_serialize( self, @@ -9484,7 +7147,7 @@ def update_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_with_http_info( @@ -9554,7 +7217,7 @@ def update_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_without_preload_content( @@ -9624,7 +7287,7 @@ def update_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_serialize( self, @@ -9771,7 +7434,7 @@ def update_session_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_config_with_http_info( @@ -9839,7 +7502,7 @@ def update_session_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_config_without_preload_content( @@ -9907,7 +7570,7 @@ def update_session_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_config_serialize( self, @@ -10055,7 +7718,7 @@ def update_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_meta_with_http_info( @@ -10124,7 +7787,7 @@ def update_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_meta_without_preload_content( @@ -10193,7 +7856,7 @@ def update_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_meta_serialize( self, @@ -10340,7 +8003,7 @@ def update_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_test_with_http_info( @@ -10407,7 +8070,7 @@ def update_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_test_without_preload_content( @@ -10474,7 +8137,7 @@ def update_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_test_serialize( self, diff --git a/cyperf/api/statistics_api.py b/cyperf/api/statistics_api.py index 9146fad..0a818ba 100644 --- a/cyperf/api/statistics_api.py +++ b/cyperf/api/statistics_api.py @@ -109,7 +109,7 @@ def create_stats_plugins( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_stats_plugins_with_http_info( @@ -174,7 +174,7 @@ def create_stats_plugins_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_stats_plugins_without_preload_content( @@ -239,7 +239,7 @@ def create_stats_plugins_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_stats_plugins_serialize( self, @@ -381,7 +381,7 @@ def delete_stats_plugin( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_stats_plugin_with_http_info( @@ -446,7 +446,7 @@ def delete_stats_plugin_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_stats_plugin_without_preload_content( @@ -511,7 +511,7 @@ def delete_stats_plugin_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_stats_plugin_serialize( self, @@ -660,7 +660,7 @@ def get_result_stat_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stat_by_id_with_http_info( @@ -746,7 +746,7 @@ def get_result_stat_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stat_by_id_without_preload_content( @@ -832,7 +832,7 @@ def get_result_stat_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_stat_by_id_serialize( self, @@ -992,7 +992,7 @@ def get_result_stats( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stats_with_http_info( @@ -1066,7 +1066,7 @@ def get_result_stats_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stats_without_preload_content( @@ -1140,7 +1140,7 @@ def get_result_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_stats_serialize( self, @@ -1280,7 +1280,7 @@ def get_stats_plugins( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_stats_plugins_with_http_info( @@ -1347,7 +1347,7 @@ def get_stats_plugins_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_stats_plugins_without_preload_content( @@ -1414,7 +1414,7 @@ def get_stats_plugins_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_stats_plugins_serialize( self, @@ -1486,257 +1486,12 @@ def _get_stats_plugins_serialize( - @validate_call - def poll_stats_plugins_ingest( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_stats_plugins_ingest_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_stats_plugins_ingest_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_stats_plugins_ingest_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/stats/plugins/operations/ingest/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1802,7 +1557,7 @@ def start_stats_plugins_ingest( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_stats_plugins_ingest_with_http_info( @@ -1865,7 +1620,7 @@ def start_stats_plugins_ingest_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_stats_plugins_ingest_without_preload_content( @@ -1928,7 +1683,7 @@ def start_stats_plugins_ingest_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_stats_plugins_ingest_serialize( self, diff --git a/cyperf/api/test_operations_api.py b/cyperf/api/test_operations_api.py index 4363b40..1051319 100644 --- a/cyperf/api/test_operations_api.py +++ b/cyperf/api/test_operations_api.py @@ -40,1352 +40,52 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def poll_test_calibrate_start( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_start_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_start_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_calibrate_start_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_calibrate_stop( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_stop_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_stop_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_calibrate_stop_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_run_abort( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_abort_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_abort_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_run_abort_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/abort/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_run_start( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_start_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_start_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_run_start_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/start/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) + + + - @validate_call - def poll_test_run_stop( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_stop - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + + - @validate_call - def poll_test_run_stop_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_stop - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + + - @validate_call - def poll_test_run_stop_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_stop + - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) + - def _poll_test_run_stop_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: + - _host = None + - _collection_formats: Dict[str, str] = { - } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + + - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] + - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/stop/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1451,7 +151,7 @@ def start_test_calibrate_start( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_start_with_http_info( @@ -1514,7 +214,7 @@ def start_test_calibrate_start_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_start_without_preload_content( @@ -1577,7 +277,7 @@ def start_test_calibrate_start_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_calibrate_start_serialize( self, @@ -1703,7 +403,7 @@ def start_test_calibrate_stop( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_stop_with_http_info( @@ -1766,7 +466,7 @@ def start_test_calibrate_stop_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_stop_without_preload_content( @@ -1829,7 +529,7 @@ def start_test_calibrate_stop_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_calibrate_stop_serialize( self, @@ -1955,7 +655,7 @@ def start_test_run_abort( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_abort_with_http_info( @@ -2018,7 +718,7 @@ def start_test_run_abort_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_abort_without_preload_content( @@ -2081,7 +781,7 @@ def start_test_run_abort_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_abort_serialize( self, @@ -2207,7 +907,7 @@ def start_test_run_start( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_start_with_http_info( @@ -2270,7 +970,7 @@ def start_test_run_start_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_start_without_preload_content( @@ -2333,7 +1033,7 @@ def start_test_run_start_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_start_serialize( self, @@ -2459,7 +1159,7 @@ def start_test_run_stop( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_stop_with_http_info( @@ -2522,7 +1222,7 @@ def start_test_run_stop_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_stop_without_preload_content( @@ -2585,7 +1285,7 @@ def start_test_run_stop_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_stop_serialize( self, diff --git a/cyperf/api/test_results_api.py b/cyperf/api/test_results_api.py index 4d09c5c..aed223e 100644 --- a/cyperf/api/test_results_api.py +++ b/cyperf/api/test_results_api.py @@ -112,7 +112,7 @@ def delete_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_with_http_info( @@ -178,7 +178,7 @@ def delete_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_without_preload_content( @@ -244,7 +244,7 @@ def delete_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_result_serialize( self, @@ -376,7 +376,7 @@ def delete_result_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_file_with_http_info( @@ -445,7 +445,7 @@ def delete_result_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_file_without_preload_content( @@ -514,7 +514,7 @@ def delete_result_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_result_file_serialize( self, @@ -645,7 +645,7 @@ def get_result_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_by_id_with_http_info( @@ -710,7 +710,7 @@ def get_result_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_by_id_without_preload_content( @@ -775,7 +775,7 @@ def get_result_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_by_id_serialize( self, @@ -906,7 +906,7 @@ def get_result_download_all_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_all_by_id_with_http_info( @@ -974,7 +974,7 @@ def get_result_download_all_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_all_by_id_without_preload_content( @@ -1042,7 +1042,7 @@ def get_result_download_all_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_all_by_id_serialize( self, @@ -1172,7 +1172,7 @@ def get_result_download_result_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_result_config_with_http_info( @@ -1236,7 +1236,7 @@ def get_result_download_result_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_result_config_without_preload_content( @@ -1300,7 +1300,7 @@ def get_result_download_result_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_result_config_serialize( self, @@ -1432,7 +1432,7 @@ def get_result_file_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_by_id_with_http_info( @@ -1501,7 +1501,7 @@ def get_result_file_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_by_id_without_preload_content( @@ -1570,7 +1570,7 @@ def get_result_file_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_file_by_id_serialize( self, @@ -1705,7 +1705,7 @@ def get_result_file_content( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_content_with_http_info( @@ -1774,7 +1774,7 @@ def get_result_file_content_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_content_without_preload_content( @@ -1843,7 +1843,7 @@ def get_result_file_content_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_file_content_serialize( self, @@ -1982,7 +1982,7 @@ def get_result_files( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_files_with_http_info( @@ -2055,7 +2055,7 @@ def get_result_files_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_files_without_preload_content( @@ -2128,7 +2128,7 @@ def get_result_files_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_files_serialize( self, @@ -2285,7 +2285,7 @@ def get_results( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_with_http_info( @@ -2369,7 +2369,7 @@ def get_results_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_without_preload_content( @@ -2453,7 +2453,7 @@ def get_results_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_results_serialize( self, @@ -2611,7 +2611,7 @@ def get_results_tags( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_tags_with_http_info( @@ -2679,7 +2679,7 @@ def get_results_tags_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_tags_without_preload_content( @@ -2747,7 +2747,7 @@ def get_results_tags_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_results_tags_serialize( self, @@ -2819,11 +2819,60 @@ def _get_results_tags_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_result_generate_all( + def start_result_export_events( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2837,14 +2886,12 @@ def poll_result_generate_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_generate_all + """start_result_export_events - Get the state of an ongoing operation. + Export events file. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2867,9 +2914,8 @@ def poll_result_generate_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_export_events_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2877,21 +2923,19 @@ def poll_result_generate_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_all_with_http_info( + def start_result_export_events_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2905,14 +2949,12 @@ def poll_result_generate_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_generate_all + """start_result_export_events - Get the state of an ongoing operation. + Export events file. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2935,9 +2977,8 @@ def poll_result_generate_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_export_events_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2945,21 +2986,19 @@ def poll_result_generate_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_all_without_preload_content( + def start_result_export_events_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2973,14 +3012,12 @@ def poll_result_generate_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_generate_all + """start_result_export_events - Get the state of an ongoing operation. + Export events file. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3003,9 +3040,8 @@ def poll_result_generate_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_export_events_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3013,20 +3049,18 @@ def poll_result_generate_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_generate_all_serialize( + def _start_result_export_events_serialize( self, result_id, - id, _request_auth, _content_type, _headers, @@ -3048,8 +3082,6 @@ def _poll_result_generate_all_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3072,8 +3104,8 @@ def _poll_result_generate_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-all/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/export-events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3090,10 +3122,10 @@ def _poll_result_generate_all_serialize( @validate_call - def poll_result_generate_results( + def start_result_generate_all( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3107,14 +3139,14 @@ def poll_result_generate_results( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_generate_results + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3137,9 +3169,9 @@ def poll_result_generate_results( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3147,21 +3179,20 @@ def poll_result_generate_results( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_results_with_http_info( + def start_result_generate_all_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3175,14 +3206,14 @@ def poll_result_generate_results_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_generate_results + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3205,9 +3236,9 @@ def poll_result_generate_results_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3215,21 +3246,20 @@ def poll_result_generate_results_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_results_without_preload_content( + def start_result_generate_all_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3243,14 +3273,14 @@ def poll_result_generate_results_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_generate_results + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3273,9 +3303,9 @@ def poll_result_generate_results_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3283,20 +3313,19 @@ def poll_result_generate_results_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_generate_results_serialize( + def _start_result_generate_all_serialize( self, result_id, - id, + generate_all_operation, _request_auth, _content_type, _headers, @@ -3318,12 +3347,12 @@ def _poll_result_generate_results_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if generate_all_operation is not None: + _body_params = generate_all_operation # set the HTTP header `Accept` @@ -3334,6 +3363,19 @@ def _poll_result_generate_results_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] = [ @@ -3342,8 +3384,8 @@ def _poll_result_generate_results_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-results/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/generate-all', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3360,10 +3402,9 @@ def _poll_result_generate_results_serialize( @validate_call - def poll_result_load( + def start_result_generate_results( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3377,14 +3418,12 @@ def poll_result_load( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_load + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3407,9 +3446,8 @@ def poll_result_load( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3417,21 +3455,19 @@ def poll_result_load( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_load_with_http_info( + def start_result_generate_results_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3445,14 +3481,12 @@ def poll_result_load_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_load + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3475,9 +3509,8 @@ def poll_result_load_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3485,21 +3518,19 @@ def poll_result_load_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_load_without_preload_content( + def start_result_generate_results_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3513,14 +3544,12 @@ def poll_result_load_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_load + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3543,9 +3572,8 @@ def poll_result_load_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3553,20 +3581,18 @@ def poll_result_load_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_load_serialize( + def _start_result_generate_results_serialize( self, result_id, - id, _request_auth, _content_type, _headers, @@ -3588,8 +3614,6 @@ def _poll_result_load_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3612,8 +3636,8 @@ def _poll_result_load_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/load/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/generate-results', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3630,9 +3654,9 @@ def _poll_result_load_serialize( @validate_call - def poll_results_batch_delete( + def start_result_load( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3646,12 +3670,12 @@ def poll_results_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_results_batch_delete + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. - :param id: The ID of the async operation. (required) - :type id: int + :param result_id: The ID of the result. (required) + :type result_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3674,8 +3698,8 @@ def poll_results_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_result_load_serialize( + result_id=result_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3683,20 +3707,19 @@ def poll_results_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_results_batch_delete_with_http_info( + def start_result_load_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3710,12 +3733,12 @@ def poll_results_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_results_batch_delete + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. - :param id: The ID of the async operation. (required) - :type id: int + :param result_id: The ID of the result. (required) + :type result_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3738,8 +3761,8 @@ def poll_results_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_result_load_serialize( + result_id=result_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3747,20 +3770,19 @@ def poll_results_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_results_batch_delete_without_preload_content( + def start_result_load_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3774,12 +3796,12 @@ def poll_results_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_results_batch_delete + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. - :param id: The ID of the async operation. (required) - :type id: int + :param result_id: The ID of the result. (required) + :type result_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3802,8 +3824,8 @@ def poll_results_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_result_load_serialize( + result_id=result_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3811,19 +3833,18 @@ def poll_results_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_results_batch_delete_serialize( + def _start_result_load_serialize( self, - id, + result_id, _request_auth, _content_type, _headers, @@ -3843,8 +3864,8 @@ def _poll_results_batch_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if result_id is not None: + _path_params['resultId'] = result_id # process the query parameters # process the header parameters # process the form parameters @@ -3867,8 +3888,8 @@ def _poll_results_batch_delete_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/operations/batch-delete/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/load', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3885,10 +3906,9 @@ def _poll_results_batch_delete_serialize( @validate_call - def start_result_generate_all( + def start_results_batch_delete( self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3902,14 +3922,12 @@ def start_result_generate_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_result_generate_all + """start_results_batch_delete - Generate all result types. + Remove multiple results. - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3932,9 +3950,8 @@ def start_result_generate_all( :return: Returns the result object. """ # noqa: E501 - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3949,13 +3966,12 @@ def start_result_generate_all( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_result_generate_all_with_http_info( + def start_results_batch_delete_with_http_info( self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3969,14 +3985,12 @@ def start_result_generate_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_result_generate_all + """start_results_batch_delete - Generate all result types. + Remove multiple results. - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3999,9 +4013,8 @@ def start_result_generate_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4016,13 +4029,12 @@ def start_result_generate_all_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def start_result_generate_all_without_preload_content( + def start_results_batch_delete_without_preload_content( self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4036,14 +4048,12 @@ def start_result_generate_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_result_generate_all + """start_results_batch_delete - Generate all result types. + Remove multiple results. - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4066,9 +4076,8 @@ def start_result_generate_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4083,779 +4092,7 @@ def start_result_generate_all_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - - - def _start_result_generate_all_serialize( - self, - result_id, - generate_all_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if generate_all_operation is not None: - _body_params = generate_all_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/generate-all', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_result_generate_results( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_results_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_results_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_result_generate_results_serialize( - self, - result_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/generate-results', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_result_load( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_load_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_load_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_result_load_serialize( - self, - result_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/load', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_results_batch_delete( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_results_batch_delete_with_http_info( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_results_batch_delete_without_preload_content( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - + def _start_results_batch_delete_serialize( self, diff --git a/cyperf/api/utils_api.py b/cyperf/api/utils_api.py index 0d167b2..b4eaf2f 100644 --- a/cyperf/api/utils_api.py +++ b/cyperf/api/utils_api.py @@ -110,7 +110,7 @@ def check_eulas( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def check_eulas_with_http_info( @@ -173,7 +173,7 @@ def check_eulas_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def check_eulas_without_preload_content( @@ -236,7 +236,7 @@ def check_eulas_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _check_eulas_serialize( self, @@ -352,7 +352,7 @@ def get_cert_manager_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_cert_manager_certificate_with_http_info( @@ -412,7 +412,7 @@ def get_cert_manager_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_cert_manager_certificate_without_preload_content( @@ -472,7 +472,7 @@ def get_cert_manager_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_cert_manager_certificate_serialize( self, @@ -592,7 +592,7 @@ def get_disk_usage( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_with_http_info( @@ -652,7 +652,7 @@ def get_disk_usage_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_without_preload_content( @@ -712,7 +712,7 @@ def get_disk_usage_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_serialize( self, @@ -837,7 +837,7 @@ def get_disk_usage_consumer_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumer_by_id_with_http_info( @@ -902,7 +902,7 @@ def get_disk_usage_consumer_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumer_by_id_without_preload_content( @@ -967,7 +967,7 @@ def get_disk_usage_consumer_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_consumer_by_id_serialize( self, @@ -1098,7 +1098,7 @@ def get_disk_usage_consumers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumers_with_http_info( @@ -1166,7 +1166,7 @@ def get_disk_usage_consumers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumers_without_preload_content( @@ -1234,7 +1234,7 @@ def get_disk_usage_consumers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_consumers_serialize( self, @@ -1364,7 +1364,7 @@ def get_docs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_with_http_info( @@ -1424,7 +1424,7 @@ def get_docs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_without_preload_content( @@ -1484,7 +1484,7 @@ def get_docs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_serialize( self, @@ -1604,7 +1604,7 @@ def get_docs_json( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_json_with_http_info( @@ -1664,7 +1664,7 @@ def get_docs_json_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_json_without_preload_content( @@ -1724,7 +1724,7 @@ def get_docs_json_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_json_serialize( self, @@ -1844,7 +1844,7 @@ def get_docs_yaml( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_yaml_with_http_info( @@ -1904,7 +1904,7 @@ def get_docs_yaml_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_yaml_without_preload_content( @@ -1964,7 +1964,7 @@ def get_docs_yaml_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_yaml_serialize( self, @@ -2084,7 +2084,7 @@ def get_eula( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_eula_with_http_info( @@ -2143,7 +2143,7 @@ def get_eula_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_eula_without_preload_content( @@ -2202,7 +2202,7 @@ def get_eula_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_eula_serialize( self, @@ -2322,7 +2322,7 @@ def get_log_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_log_config_with_http_info( @@ -2382,7 +2382,7 @@ def get_log_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_log_config_without_preload_content( @@ -2442,7 +2442,7 @@ def get_log_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_log_config_serialize( self, @@ -2561,7 +2561,7 @@ def get_time( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_time_with_http_info( @@ -2620,7 +2620,7 @@ def get_time_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_time_without_preload_content( @@ -2679,7 +2679,7 @@ def get_time_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_time_serialize( self, @@ -2797,7 +2797,7 @@ def list_eulas( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def list_eulas_with_http_info( @@ -2855,7 +2855,7 @@ def list_eulas_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def list_eulas_without_preload_content( @@ -2913,7 +2913,7 @@ def list_eulas_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _list_eulas_serialize( self, @@ -2975,10 +2975,80 @@ def _list_eulas_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_cert_manager_generate( + def post_eula( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2991,13 +3061,12 @@ def poll_cert_manager_generate( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_cert_manager_generate + ) -> str: + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3020,8 +3089,8 @@ def poll_cert_manager_generate( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3029,20 +3098,20 @@ def poll_cert_manager_generate( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_generate_with_http_info( + def post_eula_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3055,13 +3124,12 @@ def poll_cert_manager_generate_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_cert_manager_generate + ) -> ApiResponse[str]: + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3084,8 +3152,8 @@ def poll_cert_manager_generate_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3093,20 +3161,20 @@ def poll_cert_manager_generate_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_generate_without_preload_content( + def post_eula_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3120,12 +3188,11 @@ def poll_cert_manager_generate_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_cert_manager_generate + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3148,8 +3215,8 @@ def poll_cert_manager_generate_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3157,19 +3224,19 @@ def poll_cert_manager_generate_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_cert_manager_generate_serialize( + def _post_eula_serialize( self, - id, + eula_summary, _request_auth, _content_type, _headers, @@ -3189,12 +3256,12 @@ def _poll_cert_manager_generate_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if eula_summary is not None: + _body_params = eula_summary # set the HTTP header `Accept` @@ -3205,6 +3272,19 @@ def _poll_cert_manager_generate_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3213,8 +3293,8 @@ def _poll_cert_manager_generate_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/cert-manager/operations/generate/{id}', + method='POST', + resource_path='/eula/v1/eula/CyPerf', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3231,9 +3311,9 @@ def _poll_cert_manager_generate_serialize( @validate_call - def poll_cert_manager_upload( + def start_cert_manager_generate( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3247,12 +3327,12 @@ def poll_cert_manager_upload( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3275,8 +3355,8 @@ def poll_cert_manager_upload( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3284,20 +3364,19 @@ def poll_cert_manager_upload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_upload_with_http_info( + def start_cert_manager_generate_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3311,12 +3390,12 @@ def poll_cert_manager_upload_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3339,8 +3418,8 @@ def poll_cert_manager_upload_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3348,20 +3427,19 @@ def poll_cert_manager_upload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_upload_without_preload_content( + def start_cert_manager_generate_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3375,12 +3453,12 @@ def poll_cert_manager_upload_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3403,8 +3481,8 @@ def poll_cert_manager_upload_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3412,19 +3490,18 @@ def poll_cert_manager_upload_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_cert_manager_upload_serialize( + def _start_cert_manager_generate_serialize( self, - id, + certificate, _request_auth, _content_type, _headers, @@ -3444,12 +3521,12 @@ def _poll_cert_manager_upload_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if certificate is not None: + _body_params = certificate # set the HTTP header `Accept` @@ -3460,6 +3537,19 @@ def _poll_cert_manager_upload_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3468,8 +3558,8 @@ def _poll_cert_manager_upload_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/cert-manager/operations/upload/{id}', + method='POST', + resource_path='/api/v2/cert-manager/operations/generate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3486,9 +3576,8 @@ def _poll_cert_manager_upload_serialize( @validate_call - def poll_disk_usage_cleanup_diagnostics( + def start_cert_manager_upload( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3502,12 +3591,10 @@ def poll_disk_usage_cleanup_diagnostics( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3530,8 +3617,7 @@ def poll_disk_usage_cleanup_diagnostics( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3539,20 +3625,18 @@ def poll_disk_usage_cleanup_diagnostics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_diagnostics_with_http_info( + def start_cert_manager_upload_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3566,12 +3650,10 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3594,8 +3676,7 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3603,20 +3684,18 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_diagnostics_without_preload_content( + def start_cert_manager_upload_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3630,12 +3709,10 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3658,8 +3735,7 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3667,19 +3743,17 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_disk_usage_cleanup_diagnostics_serialize( + def _start_cert_manager_upload_serialize( self, - id, _request_auth, _content_type, _headers, @@ -3699,8 +3773,6 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3723,8 +3795,8 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics/{id}', + method='POST', + resource_path='/api/v2/cert-manager/operations/upload', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3741,9 +3813,8 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( @validate_call - def poll_disk_usage_cleanup_logs( + def start_disk_usage_cleanup_diagnostics( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3757,12 +3828,10 @@ def poll_disk_usage_cleanup_logs( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3785,8 +3854,7 @@ def poll_disk_usage_cleanup_logs( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3794,20 +3862,18 @@ def poll_disk_usage_cleanup_logs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_logs_with_http_info( + def start_disk_usage_cleanup_diagnostics_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3821,12 +3887,10 @@ def poll_disk_usage_cleanup_logs_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3849,8 +3913,7 @@ def poll_disk_usage_cleanup_logs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3858,20 +3921,18 @@ def poll_disk_usage_cleanup_logs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_logs_without_preload_content( + def start_disk_usage_cleanup_diagnostics_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3885,12 +3946,10 @@ def poll_disk_usage_cleanup_logs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3913,8 +3972,7 @@ def poll_disk_usage_cleanup_logs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3922,19 +3980,17 @@ def poll_disk_usage_cleanup_logs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_disk_usage_cleanup_logs_serialize( + def _start_disk_usage_cleanup_diagnostics_serialize( self, - id, _request_auth, _content_type, _headers, @@ -3954,8 +4010,6 @@ def _poll_disk_usage_cleanup_logs_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3978,8 +4032,8 @@ def _poll_disk_usage_cleanup_logs_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-logs/{id}', + method='POST', + resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3996,9 +4050,8 @@ def _poll_disk_usage_cleanup_logs_serialize( @validate_call - def poll_disk_usage_cleanup_migration( + def start_disk_usage_cleanup_logs( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4012,12 +4065,10 @@ def poll_disk_usage_cleanup_migration( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_migration + """start_disk_usage_cleanup_logs - Get the state of an ongoing operation. + Clean the system logs. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4040,8 +4091,7 @@ def poll_disk_usage_cleanup_migration( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, + _param = self._start_disk_usage_cleanup_logs_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4049,20 +4099,18 @@ def poll_disk_usage_cleanup_migration( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_migration_with_http_info( + def start_disk_usage_cleanup_logs_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4076,12 +4124,10 @@ def poll_disk_usage_cleanup_migration_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_migration + """start_disk_usage_cleanup_logs - Get the state of an ongoing operation. + Clean the system logs. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4104,1768 +4150,7 @@ def poll_disk_usage_cleanup_migration_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_migration_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_migration - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_migration_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-migration/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_disk_usage_cleanup_notifications( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_notifications_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_notifications_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_notifications_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-notifications/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_disk_usage_cleanup_results( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_results_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_results_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_results_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-results/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_eula( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def post_eula_with_http_info( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def post_eula_without_preload_content( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _post_eula_serialize( - self, - eula_summary, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if eula_summary is not None: - _body_params = eula_summary - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/eula/v1/eula/CyPerf', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_cert_manager_generate( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_generate_with_http_info( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_generate_without_preload_content( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_cert_manager_generate_serialize( - self, - certificate, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if certificate is not None: - _body_params = certificate - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/cert-manager/operations/generate', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_cert_manager_upload( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_upload_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_upload_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_cert_manager_upload_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/cert-manager/operations/upload', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_disk_usage_cleanup_diagnostics( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_diagnostics_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_diagnostics_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_disk_usage_cleanup_diagnostics_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_disk_usage_cleanup_logs( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_disk_usage_cleanup_logs - - Clean the system logs. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_logs_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_logs_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_disk_usage_cleanup_logs - - Clean the system logs. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_logs_serialize( + _param = self._start_disk_usage_cleanup_logs_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5880,7 +4165,7 @@ def start_disk_usage_cleanup_logs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_logs_without_preload_content( @@ -5939,7 +4224,7 @@ def start_disk_usage_cleanup_logs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_logs_serialize( self, @@ -6058,7 +4343,7 @@ def start_disk_usage_cleanup_migration( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_migration_with_http_info( @@ -6117,7 +4402,7 @@ def start_disk_usage_cleanup_migration_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_migration_without_preload_content( @@ -6176,7 +4461,7 @@ def start_disk_usage_cleanup_migration_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_migration_serialize( self, @@ -6295,7 +4580,7 @@ def start_disk_usage_cleanup_notifications( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_notifications_with_http_info( @@ -6354,7 +4639,7 @@ def start_disk_usage_cleanup_notifications_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_notifications_without_preload_content( @@ -6413,7 +4698,7 @@ def start_disk_usage_cleanup_notifications_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_notifications_serialize( self, @@ -6532,7 +4817,7 @@ def start_disk_usage_cleanup_results( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_results_with_http_info( @@ -6591,7 +4876,7 @@ def start_disk_usage_cleanup_results_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_results_without_preload_content( @@ -6650,7 +4935,7 @@ def start_disk_usage_cleanup_results_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_results_serialize( self, @@ -6774,7 +5059,7 @@ def update_log_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_log_config_with_http_info( @@ -6838,7 +5123,7 @@ def update_log_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_log_config_without_preload_content( @@ -6902,7 +5187,7 @@ def update_log_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_log_config_serialize( self, diff --git a/cyperf/api_client.py b/cyperf/api_client.py index 2434de8..efe6a3d 100644 --- a/cyperf/api_client.py +++ b/cyperf/api_client.py @@ -553,11 +553,30 @@ def __deserialize(self, data, klass): return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} - elif klass.startswith('typing.Optional['): - m = re.match(r'typing.Optional\[([a-zA-Z0-9_]+\.)*(.*)]', klass) - assert m is not None, "Malformed Optional type definition" + elif klass.startswith('typing.List['): + m = re.match(r'typing\.List\[(.*)]', klass) + assert m is not None, "Malformed typing.List type definition" + sub_kls = m.group(1) + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] + + elif klass.startswith('typing.Dict['): + m = re.match(r'typing\.Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed typing.Dict type definition" sub_kls = m.group(2) - klass = sub_kls + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} + + elif klass.startswith('typing.Optional[') or klass.startswith('Optional['): + m = re.match(r'(?:typing\.)?Optional\[(.*)]', klass) + assert m is not None, "Malformed Optional type definition" + klass = m.group(1) + continue + + elif klass.startswith('typing.Union[') or klass.startswith('Union['): + m = re.match(r'(?:typing\.)?Union\[(.*),\s*NoneType]', klass) + assert m is not None, "Malformed Union type definition" + klass = m.group(1) + continue + else: break diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index cf80f4f..28dfabf 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -54,16 +54,15 @@ ApplicationType = DynamicModel('ApplicationType', (), {} ) AppsecApp = DynamicModel('AppsecApp', (), {} ) AppsecAppMetadata = DynamicModel('AppsecAppMetadata', (), {} ) +AppsecAppMetadataKeywordsInner = DynamicModel('AppsecAppMetadataKeywordsInner', (), {} ) AppsecAttack = DynamicModel('AppsecAttack', (), {} ) AppsecConfig = DynamicModel('AppsecConfig', (), {} ) ArchiveInfo = DynamicModel('ArchiveInfo', (), {} ) ArrayV2ElementMetadata = DynamicModel('ArrayV2ElementMetadata', (), {} ) AsyncContext = DynamicModel('AsyncContext', (), {} ) -AsyncOperationResponse = DynamicModel('AsyncOperationResponse', (), {} ) Attack = DynamicModel('Attack', (), {} ) AttackAction = DynamicModel('AttackAction', (), {} ) AttackMetadata = DynamicModel('AttackMetadata', (), {} ) -AttackMetadataKeywordsInner = DynamicModel('AttackMetadataKeywordsInner', (), {} ) AttackObjectivesAndTimeline = DynamicModel('AttackObjectivesAndTimeline', (), {} ) AttackProfile = DynamicModel('AttackProfile', (), {} ) AttackTimelineSegment = DynamicModel('AttackTimelineSegment', (), {} ) @@ -92,11 +91,13 @@ CiscoEncapsulation = DynamicModel('CiscoEncapsulation', (), {} ) ClearPortsOwnershipOperation = DynamicModel('ClearPortsOwnershipOperation', (), {} ) Command = DynamicModel('Command', (), {} ) +CommandMetadata = DynamicModel('CommandMetadata', (), {} ) ComputeNode = DynamicModel('ComputeNode', (), {} ) Config = DynamicModel('Config', (), {} ) ConfigCategory = DynamicModel('ConfigCategory', (), {} ) ConfigId = DynamicModel('ConfigId', (), {} ) ConfigMetadata = DynamicModel('ConfigMetadata', (), {} ) +ConfigSubCategory = DynamicModel('ConfigSubCategory', (), {} ) ConfigValidation = DynamicModel('ConfigValidation', (), {} ) Conflict = DynamicModel('Conflict', (), {} ) Connection = DynamicModel('Connection', (), {} ) @@ -176,11 +177,14 @@ GetAgents200ResponseOneOf = DynamicModel('GetAgents200ResponseOneOf', (), {} ) GetAgentsTags200Response = DynamicModel('GetAgentsTags200Response', (), {} ) GetAgentsTags200ResponseOneOf = DynamicModel('GetAgentsTags200ResponseOneOf', (), {} ) +GetAppsOperation = DynamicModel('GetAppsOperation', (), {} ) GetAsyncOperationResult200Response = DynamicModel('GetAsyncOperationResult200Response', (), {} ) GetAttacksOperation = DynamicModel('GetAttacksOperation', (), {} ) GetBrokers200Response = DynamicModel('GetBrokers200Response', (), {} ) GetBrokers200ResponseOneOf = DynamicModel('GetBrokers200ResponseOneOf', (), {} ) GetCategoriesOperation = DynamicModel('GetCategoriesOperation', (), {} ) +GetConfigCategorieSubcategories200Response = DynamicModel('GetConfigCategorieSubcategories200Response', (), {} ) +GetConfigCategorieSubcategories200ResponseOneOf = DynamicModel('GetConfigCategorieSubcategories200ResponseOneOf', (), {} ) GetConfigCategories200Response = DynamicModel('GetConfigCategories200Response', (), {} ) GetConfigCategories200ResponseOneOf = DynamicModel('GetConfigCategories200ResponseOneOf', (), {} ) GetConfigs200Response = DynamicModel('GetConfigs200Response', (), {} ) @@ -223,6 +227,7 @@ GetStatsPlugins200Response = DynamicModel('GetStatsPlugins200Response', (), {} ) GetStatsPlugins200ResponseOneOf = DynamicModel('GetStatsPlugins200ResponseOneOf', (), {} ) GetStrikesOperation = DynamicModel('GetStrikesOperation', (), {} ) +GroupTLS13 = DynamicModel('GroupTLS13', (), {} ) HTTPProfile = DynamicModel('HTTPProfile', (), {} ) HTTPReqMeta = DynamicModel('HTTPReqMeta', (), {} ) HTTPResMeta = DynamicModel('HTTPResMeta', (), {} ) @@ -256,6 +261,7 @@ MacDtlsStack = DynamicModel('MacDtlsStack', (), {} ) MappingType = DynamicModel('MappingType', (), {} ) MarkedAsDeleted = DynamicModel('MarkedAsDeleted', (), {} ) +Md2Tlv = DynamicModel('Md2Tlv', (), {} ) MediaFile = DynamicModel('MediaFile', (), {} ) MediaTrack = DynamicModel('MediaTrack', (), {} ) Metadata = DynamicModel('Metadata', (), {} ) @@ -292,6 +298,7 @@ ParamType = DynamicModel('ParamType', (), {} ) Parameter = DynamicModel('Parameter', (), {} ) ParameterMatch = DynamicModel('ParameterMatch', (), {} ) +ParameterMeta = DynamicModel('ParameterMeta', (), {} ) ParameterMetadata = DynamicModel('ParameterMetadata', (), {} ) Params = DynamicModel('Params', (), {} ) ParamsEnum = DynamicModel('ParamsEnum', (), {} ) @@ -299,6 +306,7 @@ PayloadMetadata = DynamicModel('PayloadMetadata', (), {} ) PepDUT = DynamicModel('PepDUT', (), {} ) PfsP2Group = DynamicModel('PfsP2Group', (), {} ) +PlaylistMetadata = DynamicModel('PlaylistMetadata', (), {} ) Plugin = DynamicModel('Plugin', (), {} ) PluginStats = DynamicModel('PluginStats', (), {} ) Port = DynamicModel('Port', (), {} ) @@ -309,6 +317,8 @@ PreparedTestOptions = DynamicModel('PreparedTestOptions', (), {} ) PrfP1Algorithm = DynamicModel('PrfP1Algorithm', (), {} ) ProtectedSubnetConfig = DynamicModel('ProtectedSubnetConfig', (), {} ) +QUICProfile = DynamicModel('QUICProfile', (), {} ) +QUICVersion = DynamicModel('QUICVersion', (), {} ) RTPEncryptionMode = DynamicModel('RTPEncryptionMode', (), {} ) RTPProfile = DynamicModel('RTPProfile', (), {} ) RTPProfileMeta = DynamicModel('RTPProfileMeta', (), {} ) @@ -337,12 +347,14 @@ SessionReuseMethodTLS12 = DynamicModel('SessionReuseMethodTLS12', (), {} ) SessionReuseMethodTLS13 = DynamicModel('SessionReuseMethodTLS13', (), {} ) SetAggregationModeOperation = DynamicModel('SetAggregationModeOperation', (), {} ) -SetAppOperation = DynamicModel('SetAppOperation', (), {} ) +SetControllerAppOperation = DynamicModel('SetControllerAppOperation', (), {} ) SetDpdkModeOperationInput = DynamicModel('SetDpdkModeOperationInput', (), {} ) SetLinkStateOperation = DynamicModel('SetLinkStateOperation', (), {} ) +SetNodesAppOperation = DynamicModel('SetNodesAppOperation', (), {} ) SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) SimulatedIdP = DynamicModel('SimulatedIdP', (), {} ) Snapshot = DynamicModel('Snapshot', (), {} ) +SnowflakeExporter = DynamicModel('SnowflakeExporter', (), {} ) SortBodyField = DynamicModel('SortBodyField', (), {} ) SpecificObjective = DynamicModel('SpecificObjective', (), {} ) StartAgentsBatchDeleteRequestInner = DynamicModel('StartAgentsBatchDeleteRequestInner', (), {} ) @@ -360,6 +372,7 @@ TcpProfile = DynamicModel('TcpProfile', (), {} ) TestInfo = DynamicModel('TestInfo', (), {} ) TestStateChangedOperation = DynamicModel('TestStateChangedOperation', (), {} ) +TestUsage = DynamicModel('TestUsage', (), {} ) TimeValue = DynamicModel('TimeValue', (), {} ) TimelineSegment = DynamicModel('TimelineSegment', (), {} ) TimelineSegmentBase = DynamicModel('TimelineSegmentBase', (), {} ) @@ -382,6 +395,10 @@ TypeStringMetadata = DynamicModel('TypeStringMetadata', (), {} ) UdpProfile = DynamicModel('UdpProfile', (), {} ) UpdateNetworkMapping = DynamicModel('UpdateNetworkMapping', (), {} ) +UpdatePortTagsOperation = DynamicModel('UpdatePortTagsOperation', (), {} ) VLANRange = DynamicModel('VLANRange', (), {} ) ValidationMessage = DynamicModel('ValidationMessage', (), {} ) Version = DynamicModel('Version', (), {} ) +VxLANId = DynamicModel('VxLANId', (), {} ) +VxLANRange = DynamicModel('VxLANRange', (), {} ) +VxLANStack = DynamicModel('VxLANStack', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index b2c27b9..c24cc76 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -54,16 +54,15 @@ class LinkNameException(Exception): from cyperf.models.application_type import ApplicationType from cyperf.models.appsec_app import AppsecApp from cyperf.models.appsec_app_metadata import AppsecAppMetadata +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.appsec_attack import AppsecAttack from cyperf.models.appsec_config import AppsecConfig from cyperf.models.archive_info import ArchiveInfo from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata from cyperf.models.async_context import AsyncContext -from cyperf.models.async_operation_response import AsyncOperationResponse from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata -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 @@ -92,11 +91,13 @@ class LinkNameException(Exception): from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.compute_node import ComputeNode from cyperf.models.config import Config from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId from cyperf.models.config_metadata import ConfigMetadata +from cyperf.models.config_sub_category import ConfigSubCategory from cyperf.models.config_validation import ConfigValidation from cyperf.models.conflict import Conflict from cyperf.models.connection import Connection @@ -176,11 +177,14 @@ class LinkNameException(Exception): from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf from cyperf.models.get_configs200_response import GetConfigs200Response @@ -223,6 +227,7 @@ class LinkNameException(Exception): from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf from cyperf.models.get_strikes_operation import GetStrikesOperation +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.http_profile import HTTPProfile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta @@ -256,6 +261,7 @@ class LinkNameException(Exception): from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.mapping_type import MappingType from cyperf.models.marked_as_deleted import MarkedAsDeleted +from cyperf.models.md2_tlv import Md2Tlv from cyperf.models.media_file import MediaFile from cyperf.models.media_track import MediaTrack from cyperf.models.metadata import Metadata @@ -292,6 +298,7 @@ class LinkNameException(Exception): from cyperf.models.param_type import ParamType from cyperf.models.parameter import Parameter from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.parameter_metadata import ParameterMetadata from cyperf.models.params import Params from cyperf.models.params_enum import ParamsEnum @@ -299,6 +306,7 @@ class LinkNameException(Exception): from cyperf.models.payload_metadata import PayloadMetadata from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port @@ -309,6 +317,8 @@ class LinkNameException(Exception): from cyperf.models.prepared_test_options import PreparedTestOptions from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from cyperf.models.protected_subnet_config import ProtectedSubnetConfig +from cyperf.models.quic_profile import QUICProfile +from cyperf.models.quic_version import QUICVersion from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from cyperf.models.rtp_profile import RTPProfile from cyperf.models.rtp_profile_meta import RTPProfileMeta @@ -337,12 +347,14 @@ class LinkNameException(Exception): from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot +from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField from cyperf.models.specific_objective import SpecificObjective from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner @@ -360,6 +372,7 @@ class LinkNameException(Exception): from cyperf.models.tcp_profile import TcpProfile from cyperf.models.test_info import TestInfo from cyperf.models.test_state_changed_operation import TestStateChangedOperation +from cyperf.models.test_usage import TestUsage from cyperf.models.time_value import TimeValue from cyperf.models.timeline_segment import TimelineSegment from cyperf.models.timeline_segment_base import TimelineSegmentBase @@ -382,6 +395,10 @@ class LinkNameException(Exception): from cyperf.models.type_string_metadata import TypeStringMetadata from cyperf.models.udp_profile import UdpProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version +from cyperf.models.vx_lanid import VxLANId +from cyperf.models.vx_lan_range import VxLANRange +from cyperf.models.vx_lan_stack import VxLANStack diff --git a/cyperf/models/action.py b/cyperf/models/action.py index af6770c..8626b2c 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index fae4a52..4a86892 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_input.py b/cyperf/models/action_input.py index 70c9016..20d1342 100644 --- a/cyperf/models/action_input.py +++ b/cyperf/models/action_input.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput -from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.parameter_meta import ParameterMeta +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -32,7 +32,7 @@ class ActionInput(BaseModel): """ # noqa: E501 captures: Optional[List[CaptureInput]] = Field(default=None, alias="Captures") name: Optional[StrictStr] = Field(default=None, alias="Name") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["Captures", "Name", "Parameters"] model_config = ConfigDict( @@ -102,9 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInput.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_input_find_param.py b/cyperf/models/action_input_find_param.py index 60a9993..b62a8c1 100644 --- a/cyperf/models/action_input_find_param.py +++ b/cyperf/models/action_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input_find_param import CaptureInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Captures": [CaptureInputFindParam.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInputFindParam.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "Name": obj.get("Name") , "links": obj.get("links") diff --git a/cyperf/models/action_metadata.py b/cyperf/models/action_metadata.py index ea4cb22..a1bcfe1 100644 --- a/cyperf/models/action_metadata.py +++ b/cyperf/models/action_metadata.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow import AppFlow -from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.parameter_meta import ParameterMeta +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -34,7 +34,7 @@ class ActionMetadata(BaseModel): flows: Optional[List[AppFlow]] = Field(default=None, alias="Flows") index: Optional[StrictInt] = Field(default=None, alias="Index") name: Optional[StrictStr] = Field(default=None, alias="Name") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["FlowIndex", "Flows", "Index", "Name", "Parameters"] model_config = ConfigDict( @@ -105,10 +105,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "FlowIndex": obj.get("FlowIndex"), - "Flows": [AppFlow.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None, + "Flows": ( [AppFlow.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None), "Index": obj.get("Index"), "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/activation_code_info.py b/cyperf/models/activation_code_info.py index e53937e..9cc170b 100644 --- a/cyperf/models/activation_code_info.py +++ b/cyperf/models/activation_code_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/activation_code_list_request.py b/cyperf/models/activation_code_list_request.py index 2a5c851..ee7c0f7 100644 --- a/cyperf/models/activation_code_list_request.py +++ b/cyperf/models/activation_code_list_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "activationCode": obj.get("activationCode") + "activationCode": obj.get("activationCode") if obj.get("activationCode") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/activation_code_request.py b/cyperf/models/activation_code_request.py index 2d51be6..b0cc4da 100644 --- a/cyperf/models/activation_code_request.py +++ b/cyperf/models/activation_code_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/add_action_info.py b/cyperf/models/add_action_info.py index 4b14aed..a3b41d1 100644 --- a/cyperf/models/add_action_info.py +++ b/cyperf/models/add_action_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/add_input.py b/cyperf/models/add_input.py index d70090e..32916fa 100644 --- a/cyperf/models/add_input.py +++ b/cyperf/models/add_input.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput -from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.parameter_meta import ParameterMeta +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -35,7 +35,7 @@ class AddInput(BaseModel): captures: Optional[List[CaptureInput]] = Field(default=None, alias="Captures") exchange_index_insert_at: Optional[StrictInt] = Field(default=None, alias="ExchangeIndexInsertAt") flow_index_insert_at: Optional[StrictInt] = Field(default=None, alias="FlowIndexInsertAt") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") type: Optional[StrictStr] = Field(default=None, alias="Type") __properties: ClassVar[List[str]] = ["ActionIndex", "ActionName", "Captures", "ExchangeIndexInsertAt", "FlowIndexInsertAt", "Parameters", "Type"] @@ -108,10 +108,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionIndex": obj.get("ActionIndex"), "ActionName": obj.get("ActionName"), - "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInput.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "ExchangeIndexInsertAt": obj.get("ExchangeIndexInsertAt"), "FlowIndexInsertAt": obj.get("FlowIndexInsertAt"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "Type": obj.get("Type") , "links": obj.get("links") diff --git a/cyperf/models/advanced_settings.py b/cyperf/models/advanced_settings.py index accfae2..2e4b124 100644 --- a/cyperf/models/advanced_settings.py +++ b/cyperf/models/advanced_settings.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_optimization_mode import AgentOptimizationMode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 71644ed..17b44d4 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -27,7 +27,7 @@ from cyperf.models.ntp_info import NtpInfo from cyperf.models.selected_env import SelectedEnv from cyperf.models.system_info import SystemInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -181,9 +181,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AgentTags": obj.get("AgentTags"), + "AgentTags": obj.get("AgentTags") if obj.get("AgentTags") is not None else [], "IP": obj.get("IP"), - "Interfaces": [Interface.from_dict(_item) for _item in obj["Interfaces"]] if obj.get("Interfaces") is not None else None, + "Interfaces": ( [Interface.from_dict(_item) for _item in obj.get("Interfaces", [])] if obj.get("Interfaces") is not None else None), "LastUpdate": obj.get("LastUpdate"), "ReservationID": obj.get("ReservationID"), "SelectedEnv": SelectedEnv.from_dict(obj["SelectedEnv"]) if obj.get("SelectedEnv") is not None else None, @@ -191,7 +191,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SessionName": obj.get("SessionName"), "Status": obj.get("Status"), "configuredProxy": obj.get("configuredProxy"), - "cpuInfo": [AgentCPUInfo.from_dict(_item) for _item in obj["cpuInfo"]] if obj.get("cpuInfo") is not None else None, + "cpuInfo": ( [AgentCPUInfo.from_dict(_item) for _item in obj.get("cpuInfo", [])] if obj.get("cpuInfo") is not None else None), "dpdkEnabled": obj.get("dpdkEnabled"), "features": AgentFeatures.from_dict(obj["features"]) if obj.get("features") is not None else None, "hostname": obj.get("hostname"), @@ -205,7 +205,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "packageVersionStatus": obj.get("packageVersionStatus"), "requiresUpdating": obj.get("requiresUpdating"), "systemInfo": SystemInfo.from_dict(obj["systemInfo"]) if obj.get("systemInfo") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_assignment_by_port.py b/cyperf/models/agent_assignment_by_port.py index 073676d..3142e3b 100644 --- a/cyperf/models/agent_assignment_by_port.py +++ b/cyperf/models/agent_assignment_by_port.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.capture_settings import CaptureSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "portId": obj.get("portId") , "links": obj.get("links") diff --git a/cyperf/models/agent_assignment_details.py b/cyperf/models/agent_assignment_details.py index 266612e..fd2fccc 100644 --- a/cyperf/models/agent_assignment_details.py +++ b/cyperf/models/agent_assignment_details.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.capture_settings import CaptureSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,8 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "agentId": obj.get("agentId"), "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, "id": obj.get("id"), - "interfaces": obj.get("interfaces"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index bdf1416..d2400e2 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -23,7 +23,7 @@ from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort from cyperf.models.agent_assignment_details import AgentAssignmentDetails from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -33,7 +33,7 @@ class AgentAssignments(BaseModel): """ # noqa: E501 by_id: Optional[List[AgentAssignmentDetails]] = Field(default=None, description="The agents statically assigned to the current test configuration.", alias="ByID") by_port: Optional[List[AgentAssignmentByPort]] = Field(default=None, description="The ports assigned to the current test configuration.", alias="ByPort") - by_tag: List[StrictStr] = Field(description="The tags according to which the agents are dynamically assigned.", alias="ByTag") + by_tag: Optional[List[StrictStr]] = Field(default=None, description="The tags according to which the agents are dynamically assigned.", alias="ByTag") links: Optional[List[APILink]] = None __properties: ClassVar[List[str]] = ["ByID", "ByPort", "ByTag", "links"] @@ -111,10 +111,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ByID": [AgentAssignmentDetails.from_dict(_item) for _item in obj["ByID"]] if obj.get("ByID") is not None else None, - "ByPort": [AgentAssignmentByPort.from_dict(_item) for _item in obj["ByPort"]] if obj.get("ByPort") is not None else None, - "ByTag": obj.get("ByTag"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "ByID": ( [AgentAssignmentDetails.from_dict(_item) for _item in obj.get("ByID", [])] if obj.get("ByID") is not None else None), + "ByPort": ( [AgentAssignmentByPort.from_dict(_item) for _item in obj.get("ByPort", [])] if obj.get("ByPort") is not None else None), + "ByTag": obj.get("ByTag") if obj.get("ByTag") is not None else [], + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_cpu_info.py b/cyperf/models/agent_cpu_info.py index c7ead39..ff56423 100644 --- a/cyperf/models/agent_cpu_info.py +++ b/cyperf/models/agent_cpu_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_features.py b/cyperf/models/agent_features.py index f553129..4631d9d 100644 --- a/cyperf/models/agent_features.py +++ b/cyperf/models/agent_features.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_release.py b/cyperf/models/agent_release.py index e845e16..02852a3 100644 --- a/cyperf/models/agent_release.py +++ b/cyperf/models/agent_release.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_reservation.py b/cyperf/models/agent_reservation.py index fef07a9..cfe014e 100644 --- a/cyperf/models/agent_reservation.py +++ b/cyperf/models/agent_reservation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -90,9 +90,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "agentId": obj.get("agentId"), - "agentPayloadNames": obj.get("agentPayloadNames"), + "agentPayloadNames": obj.get("agentPayloadNames") if obj.get("agentPayloadNames") is not None else [], "generalPurposeCPUPercent": obj.get("generalPurposeCPUPercent"), - "interfaces": obj.get("interfaces"), + "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], "ipAddressVersionUsed": obj.get("ipAddressVersionUsed"), "optimizationMode": obj.get("optimizationMode") , diff --git a/cyperf/models/agent_to_be_rebooted.py b/cyperf/models/agent_to_be_rebooted.py index 04a8bdb..8d8fcf5 100644 --- a/cyperf/models/agent_to_be_rebooted.py +++ b/cyperf/models/agent_to_be_rebooted.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agents_group.py b/cyperf/models/agents_group.py index 32c2f4d..cce0959 100644 --- a/cyperf/models/agents_group.py +++ b/cyperf/models/agents_group.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Agents": obj.get("Agents"), + "Agents": obj.get("Agents") if obj.get("Agents") is not None else [], "Available": obj.get("Available"), "Name": obj.get("Name"), "Online": obj.get("Online") diff --git a/cyperf/models/api_link.py b/cyperf/models/api_link.py index 21e0956..ddf20df 100644 --- a/cyperf/models/api_link.py +++ b/cyperf/models/api_link.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_exchange.py b/cyperf/models/app_exchange.py index 9b876fb..79fb1fc 100644 --- a/cyperf/models/app_exchange.py +++ b/cyperf/models/app_exchange.py @@ -24,7 +24,7 @@ from cyperf.models.generic_file import GenericFile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_flow.py b/cyperf/models/app_flow.py index 0fa6de8..e0346b7 100644 --- a/cyperf/models/app_flow.py +++ b/cyperf/models/app_flow.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.api_link import APILink from cyperf.models.app_exchange import AppExchange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -34,12 +34,13 @@ class AppFlow(BaseModel): dst_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="dstAddress") dst_port: Optional[StrictInt] = Field(default=None, alias="dstPort") exchanges: Optional[List[AppExchange]] = Field(default=None, description="The list of exchanges") + http_host: Optional[StrictStr] = Field(default=None, alias="httpHost") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None src_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="srcAddress") src_port: Optional[StrictInt] = Field(default=None, alias="srcPort") transport_type: Optional[StrictStr] = Field(default=None, alias="transportType") - __properties: ClassVar[List[str]] = ["displayId", "dstAddress", "dstPort", "exchanges", "id", "links", "srcAddress", "srcPort", "transportType"] + __properties: ClassVar[List[str]] = ["displayId", "dstAddress", "dstPort", "exchanges", "httpHost", "id", "links", "srcAddress", "srcPort", "transportType"] model_config = ConfigDict( populate_by_name=True, @@ -115,9 +116,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "displayId": obj.get("displayId"), "dstAddress": obj.get("dstAddress"), "dstPort": obj.get("dstPort"), - "exchanges": [AppExchange.from_dict(_item) for _item in obj["exchanges"]] if obj.get("exchanges") is not None else None, + "exchanges": ( [AppExchange.from_dict(_item) for _item in obj.get("exchanges", [])] if obj.get("exchanges") is not None else None), + "httpHost": obj.get("httpHost"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "srcAddress": obj.get("srcAddress"), "srcPort": obj.get("srcPort"), "transportType": obj.get("transportType") diff --git a/cyperf/models/app_flow_desc.py b/cyperf/models/app_flow_desc.py index 3f39e41..42cf3cd 100644 --- a/cyperf/models/app_flow_desc.py +++ b/cyperf/models/app_flow_desc.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,9 +30,10 @@ class AppFlowDesc(BaseModel): """ # noqa: E501 dst_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="dstAddress") dst_port: Optional[StrictInt] = Field(default=None, alias="dstPort") + http_host: Optional[StrictStr] = Field(default=None, alias="httpHost") src_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="srcAddress") src_port: Optional[StrictInt] = Field(default=None, alias="srcPort") - __properties: ClassVar[List[str]] = ["dstAddress", "dstPort", "srcAddress", "srcPort"] + __properties: ClassVar[List[str]] = ["dstAddress", "dstPort", "httpHost", "srcAddress", "srcPort"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "dstAddress": obj.get("dstAddress"), "dstPort": obj.get("dstPort"), + "httpHost": obj.get("httpHost"), "srcAddress": obj.get("srcAddress"), "srcPort": obj.get("srcPort") , diff --git a/cyperf/models/app_flow_input.py b/cyperf/models/app_flow_input.py index 2b69e23..01af86c 100644 --- a/cyperf/models/app_flow_input.py +++ b/cyperf/models/app_flow_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AppFlowId": obj.get("AppFlowId"), - "Exchanges": obj.get("Exchanges") + "Exchanges": obj.get("Exchanges") if obj.get("Exchanges") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/app_flow_input_find_param.py b/cyperf/models/app_flow_input_find_param.py index ca656b5..13bd6f2 100644 --- a/cyperf/models/app_flow_input_find_param.py +++ b/cyperf/models/app_flow_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_desc import AppFlowDesc -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,8 +93,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AppFlowDesc": AppFlowDesc.from_dict(obj["AppFlowDesc"]) if obj.get("AppFlowDesc") is not None else None, "AppFlowId": obj.get("AppFlowId"), - "ExchangeNames": obj.get("ExchangeNames"), - "Exchanges": obj.get("Exchanges") + "ExchangeNames": obj.get("ExchangeNames") if obj.get("ExchangeNames") is not None else [], + "Exchanges": obj.get("Exchanges") if obj.get("Exchanges") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/app_id.py b/cyperf/models/app_id.py index 42cc397..b40ddf7 100644 --- a/cyperf/models/app_id.py +++ b/cyperf/models/app_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_mode.py b/cyperf/models/app_mode.py index 8939e0e..4dca4fc 100644 --- a/cyperf/models/app_mode.py +++ b/cyperf/models/app_mode.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 4e13108..e656008 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -29,11 +29,12 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params +from cyperf.models.quic_profile import QUICProfile from cyperf.models.stateless_stream import StatelessStream from cyperf.models.tls_profile import TLSProfile from cyperf.models.track import Track from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -44,6 +45,7 @@ class Application(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -54,6 +56,7 @@ class Application(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -65,6 +68,7 @@ class Application(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") @@ -74,6 +78,7 @@ class Application(BaseModel): data_types: Optional[List[DataType]] = Field(default=None, alias="DataTypes") inherit_tls: Optional[StrictBool] = Field(default=None, alias="InheritTLS") is_stateless_stream: Optional[StrictBool] = Field(default=None, alias="IsStatelessStream") + is_streaming: Optional[StrictBool] = Field(default=None, alias="IsStreaming") objective_weight: StrictInt = Field(description="The objective weight of the application.", alias="ObjectiveWeight") protocol_found: Optional[StrictBool] = Field(default=None, alias="ProtocolFound") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") @@ -81,6 +86,7 @@ class Application(BaseModel): static: Optional[StrictBool] = Field(default=None, alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, alias="SupportedApps") supports_calibration: Optional[StrictBool] = Field(default=None, alias="SupportsCalibration") + supports_multi_flow: Optional[StrictBool] = Field(default=None, alias="SupportsMultiFlow") supports_strikes: Optional[StrictBool] = Field(default=None, alias="SupportsStrikes") supports_tls: Optional[StrictBool] = Field(default=None, alias="SupportsTLS") tracks: Optional[List[Track]] = Field(default=None, alias="Tracks") @@ -88,7 +94,7 @@ class Application(BaseModel): _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "IsStreaming", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsMultiFlow", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -142,6 +148,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -169,6 +178,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -230,48 +242,53 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), "InheritTLS": obj.get("InheritTLS"), "IsStatelessStream": obj.get("IsStatelessStream"), + "IsStreaming": obj.get("IsStreaming"), "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"), - "SupportedApps": obj.get("SupportedApps"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "SupportsCalibration": obj.get("SupportsCalibration"), + "SupportsMultiFlow": obj.get("SupportsMultiFlow"), "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), - "Tracks": [Track.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None + "Tracks": ( [Track.from_dict(_item) for _item in obj.get("Tracks", [])] if obj.get("Tracks") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index b1b5222..8559031 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -27,7 +27,7 @@ from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -37,6 +37,7 @@ class ApplicationProfile(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None applications: Optional[List[Application]] = Field(default=None, alias="Applications") @@ -51,7 +52,7 @@ class ApplicationProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateTrafficProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetTrafficProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,16 +153,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "Applications": [Application.from_dict(_item) for _item in obj["Applications"]] if obj.get("Applications") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "Applications": ( [Application.from_dict(_item) for _item in obj.get("Applications", [])] if obj.get("Applications") is not None else None), "DefaultNetworkMapping": NetworkMapping.from_dict(obj["DefaultNetworkMapping"]) if obj.get("DefaultNetworkMapping") is not None else None, "Name": obj.get("Name"), "ObjectivesAndTimeline": ObjectivesAndTimeline.from_dict(obj["ObjectivesAndTimeline"]) if obj.get("ObjectivesAndTimeline") is not None else None, - "add-applications": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-applications"]] if obj.get("add-applications") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, - "reset-tags-to-default": obj.get("reset-tags-to-default") + "add-applications": ( [ExternalResourceInfo.from_dict(_item) for _item in obj.get("add-applications", [])] if obj.get("add-applications") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None), + "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/application_type.py b/cyperf/models/application_type.py index 553ebf3..b05b4e4 100644 --- a/cyperf/models/application_type.py +++ b/cyperf/models/application_type.py @@ -29,7 +29,7 @@ from cyperf.models.endpoint import Endpoint from cyperf.models.metadata import Metadata from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -186,22 +186,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Commands": [Command.from_dict(_item) for _item in obj["Commands"]] if obj.get("Commands") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, - "CustomStats": [CustomStat.from_dict(_item) for _item in obj["CustomStats"]] if obj.get("CustomStats") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, + "Commands": ( [Command.from_dict(_item) for _item in obj.get("Commands", [])] if obj.get("Commands") is not None else None), + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), + "CustomStats": ( [CustomStat.from_dict(_item) for _item in obj.get("CustomStats", [])] if obj.get("CustomStats") is not None else None), + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), "Definition": Definition.from_dict(obj["Definition"]) if obj.get("Definition") is not None else None, "Description": obj.get("Description"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "FileName": obj.get("FileName"), "HasBannerCommand": obj.get("HasBannerCommand"), "Md5Content": obj.get("Md5Content"), "Md5Metadata": obj.get("Md5Metadata"), "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "ProtocolFound": obj.get("ProtocolFound"), - "Strikes": [Command.from_dict(_item) for _item in obj["Strikes"]] if obj.get("Strikes") is not None else None, + "Strikes": ( [Command.from_dict(_item) for _item in obj.get("Strikes", [])] if obj.get("Strikes") is not None else None), "SupportsCalibration": obj.get("SupportsCalibration"), "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), @@ -209,7 +209,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/appsec_app.py b/cyperf/models/appsec_app.py index c123c4b..48fa646 100644 --- a/cyperf/models/appsec_app.py +++ b/cyperf/models/appsec_app.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.application import Application from cyperf.models.appsec_app_metadata import AppsecAppMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -128,7 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "appMetadata": AppsecAppMetadata.from_dict(obj["appMetadata"]) if obj.get("appMetadata") is not None else None, "id": obj.get("id"), "lastModified": obj.get("lastModified"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") , diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index ac589a0..907a4ae 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -21,8 +21,9 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_metadata import ActionMetadata -from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner +from cyperf.models.parameter_meta import ParameterMeta +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -31,8 +32,9 @@ class AppsecAppMetadata(BaseModel): AppsecAppMetadata """ # noqa: E501 actions_metadata: Optional[List[ActionMetadata]] = Field(default=None, alias="ActionsMetadata") - app_parameters: Optional[List[Parameter]] = Field(default=None, alias="AppParameters") - __properties: ClassVar[List[str]] = ["ActionsMetadata", "AppParameters"] + app_parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="AppParameters") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the application") + __properties: ClassVar[List[str]] = ["ActionsMetadata", "AppParameters", "keywords"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +89,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['AppParameters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in keywords (list) + _items = [] + if self.keywords: + for _item in self.keywords: + if _item: + _items.append(_item.to_dict()) + _dict['keywords'] = _items return _dict @classmethod @@ -101,8 +110,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ActionsMetadata": [ActionMetadata.from_dict(_item) for _item in obj["ActionsMetadata"]] if obj.get("ActionsMetadata") is not None else None, - "AppParameters": [Parameter.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None + "ActionsMetadata": ( [ActionMetadata.from_dict(_item) for _item in obj.get("ActionsMetadata", [])] if obj.get("ActionsMetadata") is not None else None), + "AppParameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("AppParameters", [])] if obj.get("AppParameters") is not None else None), + "keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("keywords", [])] if obj.get("keywords") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/appsec_app_metadata_keywords_inner.py b/cyperf/models/appsec_app_metadata_keywords_inner.py new file mode 100644 index 0000000..c8f39ce --- /dev/null +++ b/cyperf/models/appsec_app_metadata_keywords_inner.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, Dict, List, Optional, Union +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +APPSECAPPMETADATAKEYWORDSINNER_ANY_OF_SCHEMAS = ["List[object]", "bool", "float", "int", "object", "str"] + +class AppsecAppMetadataKeywordsInner(BaseModel): + """ + AppsecAppMetadataKeywordsInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_3_validator: Optional[StrictInt] = None + # data type: bool + anyof_schema_4_validator: Optional[StrictBool] = None + # data type: List[object] + anyof_schema_5_validator: Optional[List[Any]] = None + # data type: object + anyof_schema_6_validator: Optional[Dict[str, Any]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[List[object], bool, float, int, object, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "List[object]", "bool", "float", "int", "object", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = AppsecAppMetadataKeywordsInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[object] + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: object + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in AppsecAppMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into object + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into AppsecAppMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], List[object], bool, float, int, object, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/appsec_attack.py b/cyperf/models/appsec_attack.py index 1ed4013..cbbd65a 100644 --- a/cyperf/models/appsec_attack.py +++ b/cyperf/models/appsec_attack.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.attack import Attack from cyperf.models.attack_metadata import AttackMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -118,7 +118,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Metadata": AttackMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") , diff --git a/cyperf/models/appsec_config.py b/cyperf/models/appsec_config.py index 131598d..f861a8a 100644 --- a/cyperf/models/appsec_config.py +++ b/cyperf/models/appsec_config.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.config import Config -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -117,7 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "configTypeName": obj.get("configTypeName"), "dataModelVersion": obj.get("dataModelVersion"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name") , "links": obj.get("links") diff --git a/cyperf/models/archive_info.py b/cyperf/models/archive_info.py index 002b559..a8ebe18 100644 --- a/cyperf/models/archive_info.py +++ b/cyperf/models/archive_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/array_v2_element_metadata.py b/cyperf/models/array_v2_element_metadata.py index a34f226..b10aac2 100644 --- a/cyperf/models/array_v2_element_metadata.py +++ b/cyperf/models/array_v2_element_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/async_context.py b/cyperf/models/async_context.py index 8f5d63a..bd6749b 100644 --- a/cyperf/models/async_context.py +++ b/cyperf/models/async_context.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/attack.py b/cyperf/models/attack.py index a2922f0..faf4758 100644 --- a/cyperf/models/attack.py +++ b/cyperf/models/attack.py @@ -30,9 +30,10 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params +from cyperf.models.quic_profile import QUICProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -43,6 +44,7 @@ class Attack(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -53,6 +55,7 @@ class Attack(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -64,6 +67,7 @@ class Attack(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") @@ -80,7 +84,7 @@ class Attack(BaseModel): _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritTLS", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritTLS", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -134,6 +138,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -161,6 +168,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -219,40 +229,43 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "InheritTLS": obj.get("InheritTLS"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "SupportsTLS": obj.get("SupportsTLS"), - "Tracks": [AttackTrack.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, - "create": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["create"]] if obj.get("create") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None + "Tracks": ( [AttackTrack.from_dict(_item) for _item in obj.get("Tracks", [])] if obj.get("Tracks") is not None else None), + "create": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("create", [])] if obj.get("create") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 2f104f1..589854a 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py index 4b2728b..d0306f8 100644 --- a/cyperf/models/attack_metadata.py +++ b/cyperf/models/attack_metadata.py @@ -20,9 +20,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -32,7 +32,7 @@ class AttackMetadata(BaseModel): """ # noqa: E501 cve_count: Optional[StrictInt] = Field(default=None, description="The number of CVE references associated with the attack", alias="CveCount") direction: Optional[StrictStr] = Field(default=None, description="The aggregated direction of the strike included in the attack", alias="Direction") - keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the attack", alias="Keywords") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the attack", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, alias="LegacyNames") references: Optional[List[Reference]] = Field(default=None, description="The aggregated references of the attack", alias="References") severity: Optional[StrictStr] = Field(default=None, description="The aggregated severity of the strike included in the attack", alias="Severity") @@ -108,9 +108,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CveCount": obj.get("CveCount"), "Direction": obj.get("Direction"), - "Keywords": [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, + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), "Severity": obj.get("Severity"), "StrikesCount": obj.get("StrikesCount") , diff --git a/cyperf/models/attack_objectives_and_timeline.py b/cyperf/models/attack_objectives_and_timeline.py index d273ff4..21bd090 100644 --- a/cyperf/models/attack_objectives_and_timeline.py +++ b/cyperf/models/attack_objectives_and_timeline.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.attack_timeline_segment import AttackTimelineSegment -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,8 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "TimelineSegments": [AttackTimelineSegment.from_dict(_item) for _item in obj["TimelineSegments"]] if obj.get("TimelineSegments") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "TimelineSegments": ( [AttackTimelineSegment.from_dict(_item) for _item in obj.get("TimelineSegments", [])] if obj.get("TimelineSegments") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index c5085d6..643e4f6 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -27,7 +27,7 @@ from cyperf.models.network_mapping import NetworkMapping from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -37,6 +37,7 @@ class AttackProfile(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None attacks: Optional[List[Attack]] = Field(default=None, alias="Attacks") @@ -51,7 +52,7 @@ class AttackProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetAttackProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,16 +153,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "Attacks": [Attack.from_dict(_item) for _item in obj["Attacks"]] if obj.get("Attacks") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "Attacks": ( [Attack.from_dict(_item) for _item in obj.get("Attacks", [])] if obj.get("Attacks") is not None else None), "DefaultNetworkMapping": NetworkMapping.from_dict(obj["DefaultNetworkMapping"]) if obj.get("DefaultNetworkMapping") is not None else None, "Name": obj.get("Name"), "ObjectivesAndTimeline": AttackObjectivesAndTimeline.from_dict(obj["ObjectivesAndTimeline"]) if obj.get("ObjectivesAndTimeline") is not None else None, - "add-attacks": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-attacks"]] if obj.get("add-attacks") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, - "reset-tags-to-default": obj.get("reset-tags-to-default") + "add-attacks": ( [ExternalResourceInfo.from_dict(_item) for _item in obj.get("add-attacks", [])] if obj.get("add-attacks") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None), + "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/attack_timeline_segment.py b/cyperf/models/attack_timeline_segment.py index 5959878..1d83e28 100644 --- a/cyperf/models/attack_timeline_segment.py +++ b/cyperf/models/attack_timeline_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/attack_track.py b/cyperf/models/attack_track.py index f7aca53..8a266c3 100644 --- a/cyperf/models/attack_track.py +++ b/cyperf/models/attack_track.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.attack_action import AttackAction from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,10 +112,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [AttackAction.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, - "add-actions": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["add-actions"]] if obj.get("add-actions") is not None else None, + "Actions": ( [AttackAction.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), + "add-actions": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("add-actions", [])] if obj.get("add-actions") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/auth_method_type.py b/cyperf/models/auth_method_type.py index b1d7f83..a3ec0a0 100644 --- a/cyperf/models/auth_method_type.py +++ b/cyperf/models/auth_method_type.py @@ -30,6 +30,7 @@ class AuthMethodType(str, Enum): AAA = 'AAA' AAA_MINUS_CERTIFICATE = 'AAA-CERTIFICATE' CERTIFICATE = 'CERTIFICATE' + SAML = 'SAML' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/auth_profile.py b/cyperf/models/auth_profile.py index b7f1d20..51584a5 100644 --- a/cyperf/models/auth_profile.py +++ b/cyperf/models/auth_profile.py @@ -26,7 +26,7 @@ from cyperf.models.data_type import DataType from cyperf.models.endpoint import Endpoint from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -149,15 +149,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "FileName": obj.get("FileName"), "Metadata": AuthProfileMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "description": obj.get("description"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "type": obj.get("type") , "links": obj.get("links") diff --git a/cyperf/models/auth_profile_metadata.py b/cyperf/models/auth_profile_metadata.py index 11783cb..213454f 100644 --- a/cyperf/models/auth_profile_metadata.py +++ b/cyperf/models/auth_profile_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.enum import Enum -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index 8786c9b..ccab464 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -23,7 +23,8 @@ from cyperf.models.api_link import APILink from cyperf.models.auth_method_type import AuthMethodType from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.simulated_id_p import SimulatedIdP +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -38,10 +39,11 @@ class AuthSettings(BaseModel): key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS VPN authentication.", alias="KeyFilePassword") passwords: Optional[List[StrictStr]] = Field(default=None, alias="Passwords") passwords_param: Optional[Params] = Field(default=None, alias="PasswordsParam") + simulated_id_p: Optional[SimulatedIdP] = Field(default=None, alias="SimulatedIdP") usernames: Optional[List[StrictStr]] = Field(default=None, alias="Usernames") usernames_param: Optional[Params] = Field(default=None, alias="UsernamesParam") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AuthMethod", "AuthParam", "CertificateFile", "KeyFile", "KeyFilePassword", "Passwords", "PasswordsParam", "Usernames", "UsernamesParam", "links"] + __properties: ClassVar[List[str]] = ["AuthMethod", "AuthParam", "CertificateFile", "KeyFile", "KeyFilePassword", "Passwords", "PasswordsParam", "SimulatedIdP", "Usernames", "UsernamesParam", "links"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +96,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of passwords_param if self.passwords_param: _dict['PasswordsParam'] = self.passwords_param.to_dict() + # override the default output from pydantic by calling `to_dict()` of simulated_id_p + if self.simulated_id_p: + _dict['SimulatedIdP'] = self.simulated_id_p.to_dict() # override the default output from pydantic by calling `to_dict()` of usernames_param if self.usernames_param: _dict['UsernamesParam'] = self.usernames_param.to_dict() @@ -123,11 +128,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CertificateFile": Params.from_dict(obj["CertificateFile"]) if obj.get("CertificateFile") is not None else None, "KeyFile": Params.from_dict(obj["KeyFile"]) if obj.get("KeyFile") is not None else None, "KeyFilePassword": obj.get("KeyFilePassword"), - "Passwords": obj.get("Passwords"), + "Passwords": obj.get("Passwords") if obj.get("Passwords") is not None else [], "PasswordsParam": Params.from_dict(obj["PasswordsParam"]) if obj.get("PasswordsParam") is not None else None, - "Usernames": obj.get("Usernames"), + "SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None, + "Usernames": obj.get("Usernames") if obj.get("Usernames") is not None else [], "UsernamesParam": Params.from_dict(obj["UsernamesParam"]) if obj.get("UsernamesParam") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/authenticate200_response.py b/cyperf/models/authenticate200_response.py index d400a3f..14d2a9a 100644 --- a/cyperf/models/authenticate200_response.py +++ b/cyperf/models/authenticate200_response.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/authentication_settings.py b/cyperf/models/authentication_settings.py index 239b404..e7db0d2 100644 --- a/cyperf/models/authentication_settings.py +++ b/cyperf/models/authentication_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -119,7 +119,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "KeyFile": Params.from_dict(obj["KeyFile"]) if obj.get("KeyFile") is not None else None, "KeyFilePassword": obj.get("KeyFilePassword"), "SharedKey": obj.get("SharedKey"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/broker.py b/cyperf/models/broker.py index c25ab71..ec2df0c 100644 --- a/cyperf/models/broker.py +++ b/cyperf/models/broker.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/capture_input.py b/cyperf/models/capture_input.py index 4bffce1..4c3fd3e 100644 --- a/cyperf/models/capture_input.py +++ b/cyperf/models/capture_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_input import AppFlowInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CaptureId": obj.get("CaptureId"), - "Flows": [AppFlowInput.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None + "Flows": ( [AppFlowInput.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/capture_input_find_param.py b/cyperf/models/capture_input_find_param.py index 3a17447..e57949b 100644 --- a/cyperf/models/capture_input_find_param.py +++ b/cyperf/models/capture_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_input_find_param import AppFlowInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CaptureId": obj.get("CaptureId"), - "Flows": [AppFlowInputFindParam.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None + "Flows": ( [AppFlowInputFindParam.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/capture_settings.py b/cyperf/models/capture_settings.py index abdc979..889a638 100644 --- a/cyperf/models/capture_settings.py +++ b/cyperf/models/capture_settings.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.log_level import LogLevel -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/category.py b/cyperf/models/category.py index 9d820fd..6c7c153 100644 --- a/cyperf/models/category.py +++ b/cyperf/models/category.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_value import CategoryValue -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "index": obj.get("index"), "name": obj.get("name"), - "values": [CategoryValue.from_dict(_item) for _item in obj["values"]] if obj.get("values") is not None else None + "values": ( [CategoryValue.from_dict(_item) for _item in obj.get("values", [])] if obj.get("values") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/category_filter.py b/cyperf/models/category_filter.py index 0ceddcf..4a6025b 100644 --- a/cyperf/models/category_filter.py +++ b/cyperf/models/category_filter.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "category": obj.get("category"), - "values": obj.get("values") + "values": obj.get("values") if obj.get("values") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/category_value.py b/cyperf/models/category_value.py index 890be0f..ec9486b 100644 --- a/cyperf/models/category_value.py +++ b/cyperf/models/category_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/cert_config.py b/cyperf/models/cert_config.py index 30bd180..b103db8 100644 --- a/cyperf/models/cert_config.py +++ b/cyperf/models/cert_config.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.conflict import Conflict from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -125,15 +125,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "certificateFile": Params.from_dict(obj["certificateFile"]) if obj.get("certificateFile") is not None else None, "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, - "get-sni-conflicts": obj.get("get-sni-conflicts"), + "get-sni-conflicts": obj.get("get-sni-conflicts") if obj.get("get-sni-conflicts") is not None else [], "id": obj.get("id"), "isPlaylist": obj.get("isPlaylist"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "playlistColumnName": obj.get("playlistColumnName"), "playlistFilename": obj.get("playlistFilename"), - "resolve-sni-conflicts": [Conflict.from_dict(_item) for _item in obj["resolve-sni-conflicts"]] if obj.get("resolve-sni-conflicts") is not None else None, + "resolve-sni-conflicts": ( [Conflict.from_dict(_item) for _item in obj.get("resolve-sni-conflicts", [])] if obj.get("resolve-sni-conflicts") is not None else None), "sniHostname": obj.get("sniHostname") , "links": obj.get("links") diff --git a/cyperf/models/certificate.py b/cyperf/models/certificate.py index 9d85bf4..e8a6868 100644 --- a/cyperf/models/certificate.py +++ b/cyperf/models/certificate.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -97,8 +97,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "auto": obj.get("auto"), - "dnsNames": obj.get("dnsNames"), - "ipAddresses": obj.get("ipAddresses"), + "dnsNames": obj.get("dnsNames") if obj.get("dnsNames") is not None else [], + "ipAddresses": obj.get("ipAddresses") if obj.get("ipAddresses") is not None else [], "issuer": obj.get("issuer"), "notAfter": obj.get("notAfter"), "notBefore": obj.get("notBefore"), diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index f500f9c..da9b587 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,8 +30,10 @@ class ChassisInfo(BaseModel): """ # noqa: E501 checkout_id: Optional[StrictInt] = Field(default=None, description="The id of the compute node used for checkout licenses", alias="checkoutID") compute_node_id: Optional[StrictStr] = Field(default=None, description="The id of the compute node where the agent is running", alias="computeNodeID") + hw_platform: Optional[StrictStr] = Field(default=None, alias="hwPlatform") + hw_revision: Optional[StrictStr] = Field(default=None, alias="hwRevision") port_id: Optional[StrictStr] = Field(default=None, description="The id of the corresponding port", alias="portID") - __properties: ClassVar[List[str]] = ["checkoutID", "computeNodeID", "portID"] + __properties: ClassVar[List[str]] = ["checkoutID", "computeNodeID", "hwPlatform", "hwRevision", "portID"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "checkoutID": obj.get("checkoutID"), "computeNodeID": obj.get("computeNodeID"), + "hwPlatform": obj.get("hwPlatform"), + "hwRevision": obj.get("hwRevision"), "portID": obj.get("portID") , "links": obj.get("links") diff --git a/cyperf/models/choice.py b/cyperf/models/choice.py index dfca643..83aa523 100644 --- a/cyperf/models/choice.py +++ b/cyperf/models/choice.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index 034b51c..5808990 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -26,7 +26,7 @@ from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -48,8 +48,8 @@ class CiscoAnyConnectSettings(BaseModel): @field_validator('vpn_gateway') def vpn_gateway_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-\_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-\_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)", value): - raise ValueError(r"must validate the regular expression /^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-\_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-\_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)/") + if not re.match(r"^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)", value): + raise ValueError(r"must validate the regular expression /^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)/") return value model_config = ConfigDict( @@ -126,9 +126,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "CiscoEncapsulation": CiscoEncapsulation.from_dict(obj["CiscoEncapsulation"]) if obj.get("CiscoEncapsulation") is not None else None, - "ConnectionProfiles": obj.get("ConnectionProfiles"), + "ConnectionProfiles": obj.get("ConnectionProfiles") if obj.get("ConnectionProfiles") is not None else [], "ESPProbeRetryTimeout": obj.get("ESPProbeRetryTimeout"), "ESPProbeTimeout": obj.get("ESPProbeTimeout"), "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, diff --git a/cyperf/models/cisco_encapsulation.py b/cyperf/models/cisco_encapsulation.py index 79800b9..8917377 100644 --- a/cyperf/models/cisco_encapsulation.py +++ b/cyperf/models/cisco_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DTLSSettings": DTLSSettings.from_dict(obj["DTLSSettings"]) if obj.get("DTLSSettings") is not None else None, "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/clear_ports_ownership_operation.py b/cyperf/models/clear_ports_ownership_operation.py index 2feb535..4083b60 100644 --- a/cyperf/models/clear_ports_ownership_operation.py +++ b/cyperf/models/clear_ports_ownership_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/command.py b/cyperf/models/command.py index 0fdca2e..a79cd07 100644 --- a/cyperf/models/command.py +++ b/cyperf/models/command.py @@ -21,10 +21,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.exchange import Exchange -from cyperf.models.metadata import Metadata from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -36,7 +36,7 @@ class Command(BaseModel): description: Optional[StrictStr] = Field(default=None, description="The description of the command", alias="Description") exchanges: Optional[List[Exchange]] = Field(default=None, description="The exchanges of the command", alias="Exchanges") is_strike: Optional[StrictBool] = Field(default=None, description="Indicates if the command is a strike", alias="IsStrike") - metadata: Optional[Metadata] = Field(default=None, alias="Metadata") + metadata: Optional[CommandMetadata] = Field(default=None, alias="Metadata") name: Optional[StrictStr] = Field(default=None, description="The name of the command", alias="Name") parameters: Optional[List[Parameter]] = Field(default=None, description="The parameters of the command", alias="Parameters") links: Optional[List[APILink]] = None @@ -127,12 +127,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionID": obj.get("ActionID"), "Description": obj.get("Description"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "IsStrike": obj.get("IsStrike"), - "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, + "Metadata": CommandMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py new file mode 100644 index 0000000..d033c3a --- /dev/null +++ b/cyperf/models/command_metadata.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner +from cyperf.models.reference import Reference +from cyperf.models.rtp_profile_meta import RTPProfileMeta +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class CommandMetadata(BaseModel): + """ + CommandMetadata + """ # noqa: E501 + direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") + is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") + is_for_app_traffic_only: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that can only be used in application traffic and cannot be mixed with attack traffic", alias="IsForAppTrafficOnly") + is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") + legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") + no_multi_flow_support: Optional[StrictBool] = Field(default=None, description="If true, only a single application with this protocol id can be present in the configuration", alias="NoMultiFlowSupport") + protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") + rtp_profile_meta: Optional[RTPProfileMeta] = Field(default=None, alias="RTPProfileMeta") + references: Optional[List[Reference]] = Field(default=None, description="The references of the strike", alias="References") + requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands", alias="RequiresUniqueness") + severity: Optional[StrictStr] = Field(default=None, description="The severity of the strike", alias="Severity") + skip_attack_generation: Optional[StrictBool] = Field(default=None, description="If true, don't generate an attack for this strike", alias="SkipAttackGeneration") + sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") + static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") + supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommandMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in keywords (list) + _items = [] + if self.keywords: + for _item in self.keywords: + if _item: + _items.append(_item.to_dict()) + _dict['Keywords'] = _items + # override the default output from pydantic by calling `to_dict()` of rtp_profile_meta + if self.rtp_profile_meta: + _dict['RTPProfileMeta'] = self.rtp_profile_meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in references (list) + _items = [] + if self.references: + for _item in self.references: + if _item: + _items.append(_item.to_dict()) + _dict['References'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CommandMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Direction": obj.get("Direction"), + "IsBanner": obj.get("IsBanner"), + "IsForAppTrafficOnly": obj.get("IsForAppTrafficOnly"), + "IsStreaming": obj.get("IsStreaming"), + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], + "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), + "Protocol": obj.get("Protocol"), + "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), + "RequiresUniqueness": obj.get("RequiresUniqueness"), + "Severity": obj.get("Severity"), + "SkipAttackGeneration": obj.get("SkipAttackGeneration"), + "SortSeverity": obj.get("SortSeverity"), + "Static": obj.get("Static"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], + "Year": obj.get("Year") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/compute_node.py b/cyperf/models/compute_node.py index 461be34..9327e8b 100644 --- a/cyperf/models/compute_node.py +++ b/cyperf/models/compute_node.py @@ -24,7 +24,7 @@ from cyperf.models.app_mode import AppMode from cyperf.models.health_issue import HealthIssue from cyperf.models.port import Port -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -125,12 +125,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "aggregatedMode": obj.get("aggregatedMode"), "appMode": AppMode.from_dict(obj["appMode"]) if obj.get("appMode") is not None else None, - "healthDetails": [HealthIssue.from_dict(_item) for _item in obj["healthDetails"]] if obj.get("healthDetails") is not None else None, + "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), - "ports": [Port.from_dict(_item) for _item in obj["ports"]] if obj.get("ports") is not None else None, + "ports": ( [Port.from_dict(_item) for _item in obj.get("ports", [])] if obj.get("ports") is not None else None), "serial": obj.get("serial"), "slotNumber": obj.get("slotNumber"), "status": obj.get("status"), diff --git a/cyperf/models/config.py b/cyperf/models/config.py index da542a7..6cd7440 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -27,7 +27,8 @@ from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.expected_disk_space import ExpectedDiskSpace from cyperf.models.network_profile import NetworkProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.snowflake_exporter import SnowflakeExporter +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -40,11 +41,12 @@ class Config(BaseModel): custom_dashboards: Optional[CustomDashboards] = Field(default=None, alias="CustomDashboards") expected_disk_space: Optional[List[ExpectedDiskSpace]] = Field(default=None, alias="ExpectedDiskSpace") network_profiles: Optional[List[NetworkProfile]] = Field(default=None, alias="NetworkProfiles") + snowflake_exporter: Optional[SnowflakeExporter] = Field(default=None, alias="SnowflakeExporter") traffic_profiles: Optional[List[ApplicationProfile]] = Field(default=None, alias="TrafficProfiles") links: Optional[List[APILink]] = None - validate: Optional[List[Union[StrictBytes, StrictStr]]] = None - _validate_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ValidateConfig" }) - __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "TrafficProfiles", "links", "validate"] + validate_session_config: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="validate-session-config") + _validate_session_config_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ValidateConfig" }) + __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "SnowflakeExporter", "TrafficProfiles", "links", "validate-session-config"] model_config = ConfigDict( populate_by_name=True, @@ -112,6 +114,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['NetworkProfiles'] = _items + # override the default output from pydantic by calling `to_dict()` of snowflake_exporter + if self.snowflake_exporter: + _dict['SnowflakeExporter'] = self.snowflake_exporter.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in traffic_profiles (list) _items = [] if self.traffic_profiles: @@ -140,14 +145,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AttackProfiles": [AttackProfile.from_dict(_item) for _item in obj["AttackProfiles"]] if obj.get("AttackProfiles") is not None else None, + "AttackProfiles": ( [AttackProfile.from_dict(_item) for _item in obj.get("AttackProfiles", [])] if obj.get("AttackProfiles") is not None else None), "ConfigValidation": ConfigValidation.from_dict(obj["ConfigValidation"]) if obj.get("ConfigValidation") is not None else None, "CustomDashboards": CustomDashboards.from_dict(obj["CustomDashboards"]) if obj.get("CustomDashboards") is not None else None, - "ExpectedDiskSpace": [ExpectedDiskSpace.from_dict(_item) for _item in obj["ExpectedDiskSpace"]] if obj.get("ExpectedDiskSpace") is not None else None, - "NetworkProfiles": [NetworkProfile.from_dict(_item) for _item in obj["NetworkProfiles"]] if obj.get("NetworkProfiles") is not None else None, - "TrafficProfiles": [ApplicationProfile.from_dict(_item) for _item in obj["TrafficProfiles"]] if obj.get("TrafficProfiles") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "validate": obj.get("validate") + "ExpectedDiskSpace": ( [ExpectedDiskSpace.from_dict(_item) for _item in obj.get("ExpectedDiskSpace", [])] if obj.get("ExpectedDiskSpace") is not None else None), + "NetworkProfiles": ( [NetworkProfile.from_dict(_item) for _item in obj.get("NetworkProfiles", [])] if obj.get("NetworkProfiles") is not None else None), + "SnowflakeExporter": SnowflakeExporter.from_dict(obj["SnowflakeExporter"]) if obj.get("SnowflakeExporter") is not None else None, + "TrafficProfiles": ( [ApplicationProfile.from_dict(_item) for _item in obj.get("TrafficProfiles", [])] if obj.get("TrafficProfiles") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "validate-session-config": obj.get("validate-session-config") if obj.get("validate-session-config") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/config_category.py b/cyperf/models/config_category.py index 52cfb25..f525067 100644 --- a/cyperf/models/config_category.py +++ b/cyperf/models/config_category.py @@ -20,7 +20,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.api_link import APILink +from cyperf.models.config_sub_category import ConfigSubCategory +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,7 +31,9 @@ class ConfigCategory(BaseModel): ConfigCategory """ # noqa: E501 display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration category", alias="displayName") - __properties: ClassVar[List[str]] = ["displayName"] + links: Optional[List[APILink]] = None + subcategories: Optional[List[ConfigSubCategory]] = Field(default=None, description="List of subcategory names") + __properties: ClassVar[List[str]] = ["displayName", "links", "subcategories"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +74,20 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in subcategories (list) + _items = [] + if self.subcategories: + for _item in self.subcategories: + if _item: + _items.append(_item.to_dict()) + _dict['subcategories'] = _items return _dict @classmethod @@ -84,7 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "displayName": obj.get("displayName") + "displayName": obj.get("displayName"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "subcategories": ( [ConfigSubCategory.from_dict(_item) for _item in obj.get("subcategories", [])] if obj.get("subcategories") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/config_id.py b/cyperf/models/config_id.py index c4c7d3d..e9143c0 100644 --- a/cyperf/models/config_id.py +++ b/cyperf/models/config_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/config_metadata.py b/cyperf/models/config_metadata.py index 3676749..eda89e7 100644 --- a/cyperf/models/config_metadata.py +++ b/cyperf/models/config_metadata.py @@ -21,9 +21,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.version import Version -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -32,7 +32,7 @@ class ConfigMetadata(BaseModel): ConfigMetadata """ # noqa: E501 application: Optional[StrictStr] = None - config_data: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The actual configuration object", alias="configData") + config_data: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The actual configuration object", alias="configData") config_url: Optional[StrictStr] = Field(default=None, description="The backend URL of the saved config data", alias="configUrl") created_on: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when config was created", alias="createdOn") display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration", alias="displayName") @@ -136,8 +136,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "application": obj.get("application"), "configData": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["configData"].items() + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) + for _k, _v in (obj.get("configData") or {}).items() ) if obj.get("configData") is not None else None, @@ -149,7 +149,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "lastAccessed": obj.get("lastAccessed"), "lastModified": obj.get("lastModified"), - "linkedResources": [APILink.from_dict(_item) for _item in obj["linkedResources"]] if obj.get("linkedResources") is not None else None, + "linkedResources": ( [APILink.from_dict(_item) for _item in obj.get("linkedResources", [])] if obj.get("linkedResources") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "readonly": obj.get("readonly"), diff --git a/cyperf/models/config_sub_category.py b/cyperf/models/config_sub_category.py new file mode 100644 index 0000000..1609ea0 --- /dev/null +++ b/cyperf/models/config_sub_category.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ConfigSubCategory(BaseModel): + """ + ConfigSubCategory + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration subcategory", alias="displayName") + __properties: ClassVar[List[str]] = ["displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConfigSubCategory from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConfigSubCategory from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "displayName": obj.get("displayName") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/config_validation.py b/cyperf/models/config_validation.py index 7f80b77..37015e7 100644 --- a/cyperf/models/config_validation.py +++ b/cyperf/models/config_validation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.validation_message import ValidationMessage -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,8 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "IsValidated": obj.get("IsValidated"), - "ValidationMessages": [ValidationMessage.from_dict(_item) for _item in obj["ValidationMessages"]] if obj.get("ValidationMessages") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "ValidationMessages": ( [ValidationMessage.from_dict(_item) for _item in obj.get("ValidationMessages", [])] if obj.get("ValidationMessages") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/conflict.py b/cyperf/models/conflict.py index d9b17ea..b63963d 100644 --- a/cyperf/models/conflict.py +++ b/cyperf/models/conflict.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/connection.py b/cyperf/models/connection.py index 681d812..02a48b7 100644 --- a/cyperf/models/connection.py +++ b/cyperf/models/connection.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.params import Params from cyperf.models.port_settings import PortSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -69,8 +69,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['http', 'https', 'tcp', 'tls', 'udp', 'ssl']): - raise ValueError("must be one of enum values ('http', 'https', 'tcp', 'tls', 'udp', 'ssl')") + if value not in set(['http', 'https', 'tcp', 'tls', 'udp', 'ssl', 'google_quic']): + raise ValueError("must be one of enum values ('http', 'https', 'tcp', 'tls', 'udp', 'ssl', 'google_quic')") return value model_config = ConfigDict( @@ -158,7 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerPort": obj.get("ServerPort"), "Type": obj.get("Type"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/consumer.py b/cyperf/models/consumer.py index d25b871..2e621e6 100644 --- a/cyperf/models/consumer.py +++ b/cyperf/models/consumer.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/controller.py b/cyperf/models/controller.py index 5280471..3de31b8 100644 --- a/cyperf/models/controller.py +++ b/cyperf/models/controller.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.compute_node import ComputeNode from cyperf.models.health_issue import HealthIssue -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -115,11 +115,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": [ComputeNode.from_dict(_item) for _item in obj["computeNodes"]] if obj.get("computeNodes") is not None else None, - "healthDetails": [HealthIssue.from_dict(_item) for _item in obj["healthDetails"]] if obj.get("healthDetails") is not None else None, + "computeNodes": ( [ComputeNode.from_dict(_item) for _item in obj.get("computeNodes", [])] if obj.get("computeNodes") is not None else None), + "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), "serial": obj.get("serial"), "type": obj.get("type") diff --git a/cyperf/models/counted_feature_consumer.py b/cyperf/models/counted_feature_consumer.py index b838daa..9e406ba 100644 --- a/cyperf/models/counted_feature_consumer.py +++ b/cyperf/models/counted_feature_consumer.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/counted_feature_stats.py b/cyperf/models/counted_feature_stats.py index 21a6cf3..ac2906f 100644 --- a/cyperf/models/counted_feature_stats.py +++ b/cyperf/models/counted_feature_stats.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.counted_feature_consumer import CountedFeatureConsumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "availableCount": obj.get("availableCount"), - "consumers": [CountedFeatureConsumer.from_dict(_item) for _item in obj["consumers"]] if obj.get("consumers") is not None else None, + "consumers": ( [CountedFeatureConsumer.from_dict(_item) for _item in obj.get("consumers", [])] if obj.get("consumers") is not None else None), "featureName": obj.get("featureName"), "installedCount": obj.get("installedCount") , diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index 5125401..bb516ef 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_input import ActionInput -from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.parameter_meta import ParameterMeta +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -33,8 +33,9 @@ class CreateAppOperation(BaseModel): actions: Optional[List[ActionInput]] = Field(default=None, alias="Actions") app_name: Optional[StrictStr] = Field(default=None, alias="AppName") app_type: Optional[StrictStr] = Field(default=None, alias="AppType") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") - __properties: ClassVar[List[str]] = ["Actions", "AppName", "AppType", "Parameters"] + description: Optional[StrictStr] = Field(default=None, alias="Description") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") + __properties: ClassVar[List[str]] = ["Actions", "AppName", "AppType", "Description", "Parameters"] model_config = ConfigDict( populate_by_name=True, @@ -103,10 +104,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [ActionInput.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [ActionInput.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "AppName": obj.get("AppName"), "AppType": obj.get("AppType"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Description": obj.get("Description"), + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/create_app_or_attack_operation_input.py b/cyperf/models/create_app_or_attack_operation_input.py index 68d03c4..6028d4d 100644 --- a/cyperf/models/create_app_or_attack_operation_input.py +++ b/cyperf/models/create_app_or_attack_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.add_action_info import AddActionInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [AddActionInfo.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [AddActionInfo.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "ResourceURL": obj.get("ResourceURL") , "links": obj.get("links") diff --git a/cyperf/models/custom_dashboards.py b/cyperf/models/custom_dashboards.py index 0946761..080b20c 100644 --- a/cyperf/models/custom_dashboards.py +++ b/cyperf/models/custom_dashboards.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), - "Links": [APILink.from_dict(_item) for _item in obj["Links"]] if obj.get("Links") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "Links": ( [APILink.from_dict(_item) for _item in obj.get("Links", [])] if obj.get("Links") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/custom_import_handler.py b/cyperf/models/custom_import_handler.py index 8f22ecc..8f35a0f 100644 --- a/cyperf/models/custom_import_handler.py +++ b/cyperf/models/custom_import_handler.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/custom_stat.py b/cyperf/models/custom_stat.py index 66a33d6..eaa3bdf 100644 --- a/cyperf/models/custom_stat.py +++ b/cyperf/models/custom_stat.py @@ -18,9 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,8 +29,9 @@ class CustomStat(BaseModel): CustomStat """ # noqa: E501 function: Optional[StrictStr] = Field(default=None, description="The function of the custom statistic", alias="Function") + is_rate: Optional[StrictBool] = Field(default=None, description="Indicates whether this statistic supports rate computation", alias="IsRate") path: Optional[StrictStr] = Field(default=None, description="The path of the custom statistic", alias="Path") - __properties: ClassVar[List[str]] = ["Function", "Path"] + __properties: ClassVar[List[str]] = ["Function", "IsRate", "Path"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Function": obj.get("Function"), + "IsRate": obj.get("IsRate"), "Path": obj.get("Path") , "links": obj.get("links") diff --git a/cyperf/models/dashboard.py b/cyperf/models/dashboard.py index d201ef0..f62c7b9 100644 --- a/cyperf/models/dashboard.py +++ b/cyperf/models/dashboard.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/data_type.py b/cyperf/models/data_type.py index 7ad320a..ec5c84a 100644 --- a/cyperf/models/data_type.py +++ b/cyperf/models/data_type.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.data_type_values_inner import DataTypeValuesInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Values": [DataTypeValuesInner.from_dict(_item) for _item in obj["Values"]] if obj.get("Values") is not None else None, + "Values": ( [DataTypeValuesInner.from_dict(_item) for _item in obj.get("Values", [])] if obj.get("Values") is not None else None), "id": obj.get("id") , "links": obj.get("links") diff --git a/cyperf/models/data_type_values_inner.py b/cyperf/models/data_type_values_inner.py index 9621755..6e5a6da 100644 --- a/cyperf/models/data_type_values_inner.py +++ b/cyperf/models/data_type_values_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/definition.py b/cyperf/models/definition.py index 02d5c05..0629239 100644 --- a/cyperf/models/definition.py +++ b/cyperf/models/definition.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/delete_input.py b/cyperf/models/delete_input.py index 8aad0a8..490d940 100644 --- a/cyperf/models/delete_input.py +++ b/cyperf/models/delete_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/diagnostic_component.py b/cyperf/models/diagnostic_component.py index 1963d40..5630071 100644 --- a/cyperf/models/diagnostic_component.py +++ b/cyperf/models/diagnostic_component.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.diagnostic_options import DiagnosticOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "componentName": obj.get("componentName"), - "options": [DiagnosticOptions.from_dict(_item) for _item in obj["options"]] if obj.get("options") is not None else None, - "subComponents": [DiagnosticComponent.from_dict(_item) for _item in obj["subComponents"]] if obj.get("subComponents") is not None else None + "options": ( [DiagnosticOptions.from_dict(_item) for _item in obj.get("options", [])] if obj.get("options") is not None else None), + "subComponents": ( [DiagnosticComponent.from_dict(_item) for _item in obj.get("subComponents", [])] if obj.get("subComponents") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/diagnostic_component_context.py b/cyperf/models/diagnostic_component_context.py index 06406a3..0079a66 100644 --- a/cyperf/models/diagnostic_component_context.py +++ b/cyperf/models/diagnostic_component_context.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.diagnostic_component import DiagnosticComponent from cyperf.models.diagnostic_options import DiagnosticOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,8 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "componentList": [DiagnosticComponent.from_dict(_item) for _item in obj["componentList"]] if obj.get("componentList") is not None else None, - "context": [DiagnosticOptions.from_dict(_item) for _item in obj["context"]] if obj.get("context") is not None else None + "componentList": ( [DiagnosticComponent.from_dict(_item) for _item in obj.get("componentList", [])] if obj.get("componentList") is not None else None), + "context": ( [DiagnosticOptions.from_dict(_item) for _item in obj.get("context", [])] if obj.get("context") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/diagnostic_options.py b/cyperf/models/diagnostic_options.py index d32efef..739aa53 100644 --- a/cyperf/models/diagnostic_options.py +++ b/cyperf/models/diagnostic_options.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/disk_usage.py b/cyperf/models/disk_usage.py index 1c72b18..10b4637 100644 --- a/cyperf/models/disk_usage.py +++ b/cyperf/models/disk_usage.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.consumer import Consumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -129,10 +129,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "available": obj.get("available"), - "consumers": [Consumer.from_dict(_item) for _item in obj["consumers"]] if obj.get("consumers") is not None else None, + "consumers": ( [Consumer.from_dict(_item) for _item in obj.get("consumers", [])] if obj.get("consumers") is not None else None), "criticalDiskSpace": obj.get("criticalDiskSpace"), "criticalThreshold": obj.get("criticalThreshold"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "lowDiskSpace": obj.get("lowDiskSpace"), "lowThreshold": obj.get("lowThreshold"), "message": obj.get("message"), diff --git a/cyperf/models/dns_resolver.py b/cyperf/models/dns_resolver.py index 3bd3840..c6969f9 100644 --- a/cyperf/models/dns_resolver.py +++ b/cyperf/models/dns_resolver.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.name_server import NameServer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -105,8 +105,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "cacheTimeout": obj.get("cacheTimeout"), "enablePerconnect": obj.get("enablePerconnect"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "nameServers": [NameServer.from_dict(_item) for _item in obj["nameServers"]] if obj.get("nameServers") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "nameServers": ( [NameServer.from_dict(_item) for _item in obj.get("nameServers", [])] if obj.get("nameServers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/dns_server.py b/cyperf/models/dns_server.py index aeaee64..dfb5eaf 100644 --- a/cyperf/models/dns_server.py +++ b/cyperf/models/dns_server.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/dtls_settings.py b/cyperf/models/dtls_settings.py index f60a139..4ea3888 100644 --- a/cyperf/models/dtls_settings.py +++ b/cyperf/models/dtls_settings.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "TLSClientProfile": TLSProfile.from_dict(obj["TLSClientProfile"]) if obj.get("TLSClientProfile") is not None else None, "UDPProfile": UdpProfile.from_dict(obj["UDPProfile"]) if obj.get("UDPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index 8fd419e..b9d75e2 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -25,7 +25,7 @@ from cyperf.models.health_check_config import HealthCheckConfig from cyperf.models.params import Params from cyperf.models.pep_dut import PepDUT -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -74,8 +74,8 @@ def client_dut_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('config_settings') @@ -94,8 +94,8 @@ def hostname_suffix_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('http_forward_proxy_mode') @@ -114,8 +114,8 @@ def server_dut_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('host') @@ -124,8 +124,8 @@ def host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( @@ -211,7 +211,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags"), + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [], "ClientDUTActive": obj.get("ClientDUTActive"), "ClientDUTHost": obj.get("ClientDUTHost"), "ClientDUTPort": obj.get("ClientDUTPort"), @@ -234,7 +234,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "UseRealHost": obj.get("UseRealHost"), "active": obj.get("active"), "host": obj.get("host"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/edit_action_input.py b/cyperf/models/edit_action_input.py index 2366de1..660ad15 100644 --- a/cyperf/models/edit_action_input.py +++ b/cyperf/models/edit_action_input.py @@ -20,8 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.parameter_meta import ParameterMeta +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class EditActionInput(BaseModel): EditActionInput """ # noqa: E501 action_index: Optional[StrictInt] = Field(default=None, alias="ActionIndex") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["ActionIndex", "Parameters"] model_config = ConfigDict( @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionIndex": obj.get("ActionIndex"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 99f63fe..33e5063 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -23,11 +23,11 @@ from cyperf.models.add_input import AddInput from cyperf.models.delete_input import DeleteInput from cyperf.models.edit_action_input import EditActionInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.rename_input import RenameInput from cyperf.models.reorder_action_input import ReorderActionInput from cyperf.models.reorder_exchanges_input import ReorderExchangesInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -36,15 +36,16 @@ class EditAppOperation(BaseModel): EditAppOperation """ # noqa: E501 add_inputs: Optional[List[AddInput]] = Field(default=None, alias="AddInputs") + app_description: Optional[StrictStr] = Field(default=None, alias="AppDescription") app_id: Optional[StrictStr] = Field(default=None, alias="AppId") app_name: Optional[StrictStr] = Field(default=None, alias="AppName") - app_parameters: Optional[List[Parameter]] = Field(default=None, alias="AppParameters") + app_parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="AppParameters") delete_inputs: Optional[List[DeleteInput]] = Field(default=None, alias="DeleteInputs") edit_action_inputs: Optional[List[EditActionInput]] = Field(default=None, alias="EditActionInputs") rename_inputs: Optional[List[RenameInput]] = Field(default=None, alias="RenameInputs") reorder_actions_inputs: Optional[List[ReorderActionInput]] = Field(default=None, alias="ReorderActionsInputs") reorder_exchanges_inputs: Optional[List[ReorderExchangesInput]] = Field(default=None, alias="ReorderExchangesInputs") - __properties: ClassVar[List[str]] = ["AddInputs", "AppId", "AppName", "AppParameters", "DeleteInputs", "EditActionInputs", "RenameInputs", "ReorderActionsInputs", "ReorderExchangesInputs"] + __properties: ClassVar[List[str]] = ["AddInputs", "AppDescription", "AppId", "AppName", "AppParameters", "DeleteInputs", "EditActionInputs", "RenameInputs", "ReorderActionsInputs", "ReorderExchangesInputs"] model_config = ConfigDict( populate_by_name=True, @@ -148,15 +149,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AddInputs": [AddInput.from_dict(_item) for _item in obj["AddInputs"]] if obj.get("AddInputs") is not None else None, + "AddInputs": ( [AddInput.from_dict(_item) for _item in obj.get("AddInputs", [])] if obj.get("AddInputs") is not None else None), + "AppDescription": obj.get("AppDescription"), "AppId": obj.get("AppId"), "AppName": obj.get("AppName"), - "AppParameters": [Parameter.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, - "DeleteInputs": [DeleteInput.from_dict(_item) for _item in obj["DeleteInputs"]] if obj.get("DeleteInputs") is not None else None, - "EditActionInputs": [EditActionInput.from_dict(_item) for _item in obj["EditActionInputs"]] if obj.get("EditActionInputs") is not None else None, - "RenameInputs": [RenameInput.from_dict(_item) for _item in obj["RenameInputs"]] if obj.get("RenameInputs") is not None else None, - "ReorderActionsInputs": [ReorderActionInput.from_dict(_item) for _item in obj["ReorderActionsInputs"]] if obj.get("ReorderActionsInputs") is not None else None, - "ReorderExchangesInputs": [ReorderExchangesInput.from_dict(_item) for _item in obj["ReorderExchangesInputs"]] if obj.get("ReorderExchangesInputs") is not None else None + "AppParameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("AppParameters", [])] if obj.get("AppParameters") is not None else None), + "DeleteInputs": ( [DeleteInput.from_dict(_item) for _item in obj.get("DeleteInputs", [])] if obj.get("DeleteInputs") is not None else None), + "EditActionInputs": ( [EditActionInput.from_dict(_item) for _item in obj.get("EditActionInputs", [])] if obj.get("EditActionInputs") is not None else None), + "RenameInputs": ( [RenameInput.from_dict(_item) for _item in obj.get("RenameInputs", [])] if obj.get("RenameInputs") is not None else None), + "ReorderActionsInputs": ( [ReorderActionInput.from_dict(_item) for _item in obj.get("ReorderActionsInputs", [])] if obj.get("ReorderActionsInputs") is not None else None), + "ReorderExchangesInputs": ( [ReorderExchangesInput.from_dict(_item) for _item in obj.get("ReorderExchangesInputs", [])] if obj.get("ReorderExchangesInputs") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/effective_ports.py b/cyperf/models/effective_ports.py index ff7da4f..3659bee 100644 --- a/cyperf/models/effective_ports.py +++ b/cyperf/models/effective_ports.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/emulated_router.py b/cyperf/models/emulated_router.py index f7ca59f..4d93cec 100644 --- a/cyperf/models/emulated_router.py +++ b/cyperf/models/emulated_router.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.emulated_router_range import EmulatedRouterRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,9 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "EmulatedRouterRanges": [EmulatedRouterRange.from_dict(_item) for _item in obj["EmulatedRouterRanges"]] if obj.get("EmulatedRouterRanges") is not None else None, + "EmulatedRouterRanges": ( [EmulatedRouterRange.from_dict(_item) for _item in obj.get("EmulatedRouterRanges", [])] if obj.get("EmulatedRouterRanges") is not None else None), "Enabled": obj.get("Enabled"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 17f0dd9..5784f38 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -25,7 +25,7 @@ from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -172,9 +172,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetMask": obj.get("NetMask"), "NetMaskAuto": obj.get("NetMaskAuto"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/emulated_subnet_config.py b/cyperf/models/emulated_subnet_config.py index 99fa280..cb47de6 100644 --- a/cyperf/models/emulated_subnet_config.py +++ b/cyperf/models/emulated_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/endpoint.py b/cyperf/models/endpoint.py index d308c8b..f067242 100644 --- a/cyperf/models/endpoint.py +++ b/cyperf/models/endpoint.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.network_mapping import NetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, "Type": obj.get("Type"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/entitlement_code_info.py b/cyperf/models/entitlement_code_info.py index c86bc1e..a56490d 100644 --- a/cyperf/models/entitlement_code_info.py +++ b/cyperf/models/entitlement_code_info.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.activation_code_info import ActivationCodeInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "activationCodes": [ActivationCodeInfo.from_dict(_item) for _item in obj["activationCodes"]] if obj.get("activationCodes") is not None else None, + "activationCodes": ( [ActivationCodeInfo.from_dict(_item) for _item in obj.get("activationCodes", [])] if obj.get("activationCodes") is not None else None), "entitlementCode": obj.get("entitlementCode") , "links": obj.get("links") diff --git a/cyperf/models/entitlement_code_request.py b/cyperf/models/entitlement_code_request.py index 385bd32..0c98cba 100644 --- a/cyperf/models/entitlement_code_request.py +++ b/cyperf/models/entitlement_code_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/enum.py b/cyperf/models/enum.py index c14401a..b5435d5 100644 --- a/cyperf/models/enum.py +++ b/cyperf/models/enum.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.choice import Choice -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Choices": [Choice.from_dict(_item) for _item in obj["Choices"]] if obj.get("Choices") is not None else None, + "Choices": ( [Choice.from_dict(_item) for _item in obj.get("Choices", [])] if obj.get("Choices") is not None else None), "Default": obj.get("Default") , "links": obj.get("links") diff --git a/cyperf/models/error_description.py b/cyperf/models/error_description.py index f6c936d..9cb79f2 100644 --- a/cyperf/models/error_description.py +++ b/cyperf/models/error_description.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/error_response.py b/cyperf/models/error_response.py index 65c4f2a..f18fe1b 100644 --- a/cyperf/models/error_response.py +++ b/cyperf/models/error_response.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/esp_over_udp_settings.py b/cyperf/models/esp_over_udp_settings.py index 171a14d..11ba156 100644 --- a/cyperf/models/esp_over_udp_settings.py +++ b/cyperf/models/esp_over_udp_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "UDPProfile": UdpProfile.from_dict(obj["UDPProfile"]) if obj.get("UDPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index c8573d1..964ed14 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.static_arp_entry import StaticARPEntry -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -47,8 +47,8 @@ def mac_incr_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('mac_start') @@ -57,8 +57,8 @@ def mac_start_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value model_config = ConfigDict( @@ -133,8 +133,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MacIncr": obj.get("MacIncr"), "MacStart": obj.get("MacStart"), "OneMacPerIP": obj.get("OneMacPerIP"), - "StaticARPTable": [StaticARPEntry.from_dict(_item) for _item in obj["StaticARPTable"]] if obj.get("StaticARPTable") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "StaticARPTable": ( [StaticARPEntry.from_dict(_item) for _item in obj.get("StaticARPTable", [])] if obj.get("StaticARPTable") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent") , "links": obj.get("links") diff --git a/cyperf/models/eula_details.py b/cyperf/models/eula_details.py index acf5afb..6f3f952 100644 --- a/cyperf/models/eula_details.py +++ b/cyperf/models/eula_details.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -28,11 +28,11 @@ class EulaDetails(BaseModel): """ EulaDetails """ # noqa: E501 - id: Optional[StrictStr] = None accepted: StrictBool - text: Optional[StrictStr] = None + id: Optional[StrictStr] = None html: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "accepted", "text", "html"] + text: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["accepted", "id", "html", "text"] model_config = ConfigDict( populate_by_name=True, @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "id": obj.get("id"), - "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, - "text": obj.get("text"), - "html": obj.get("html") + "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, + "id": obj.get("id"), + "html": obj.get("html"), + "text": obj.get("text") , "links": obj.get("links") }) diff --git a/cyperf/models/eula_summary.py b/cyperf/models/eula_summary.py index f217a69..4342389 100644 --- a/cyperf/models/eula_summary.py +++ b/cyperf/models/eula_summary.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -28,9 +28,9 @@ class EulaSummary(BaseModel): """ EulaSummary """ # noqa: E501 - id: Optional[StrictStr] = None accepted: StrictBool - __properties: ClassVar[List[str]] = ["id", "accepted"] + id: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["accepted", "id"] model_config = ConfigDict( populate_by_name=True, @@ -85,8 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "id": obj.get("id"), - "accepted": obj.get("accepted") if obj.get("accepted") is not None else False + "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, + "id": obj.get("id") , "links": obj.get("links") }) diff --git a/cyperf/models/exchange.py b/cyperf/models/exchange.py index f4d8666..c6914fd 100644 --- a/cyperf/models/exchange.py +++ b/cyperf/models/exchange.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/exchange_order.py b/cyperf/models/exchange_order.py index 9d10b96..6ee8c5e 100644 --- a/cyperf/models/exchange_order.py +++ b/cyperf/models/exchange_order.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/exchange_payload.py b/cyperf/models/exchange_payload.py index 3b9acaa..6d98999 100644 --- a/cyperf/models/exchange_payload.py +++ b/cyperf/models/exchange_payload.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space.py b/cyperf/models/expected_disk_space.py index 88075fa..10fe944 100644 --- a/cyperf/models/expected_disk_space.py +++ b/cyperf/models/expected_disk_space.py @@ -23,7 +23,7 @@ from cyperf.models.expected_disk_space_message import ExpectedDiskSpaceMessage from cyperf.models.expected_disk_space_pretty_size import ExpectedDiskSpacePrettySize from cyperf.models.expected_disk_space_size import ExpectedDiskSpaceSize -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_message.py b/cyperf/models/expected_disk_space_message.py index 69c90c3..c68c435 100644 --- a/cyperf/models/expected_disk_space_message.py +++ b/cyperf/models/expected_disk_space_message.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_pretty_size.py b/cyperf/models/expected_disk_space_pretty_size.py index 17c689a..f616efb 100644 --- a/cyperf/models/expected_disk_space_pretty_size.py +++ b/cyperf/models/expected_disk_space_pretty_size.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_size.py b/cyperf/models/expected_disk_space_size.py index c840dfd..4cbadb4 100644 --- a/cyperf/models/expected_disk_space_size.py +++ b/cyperf/models/expected_disk_space_size.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/export_all_operation.py b/cyperf/models/export_all_operation.py index 80d08f2..369929b 100644 --- a/cyperf/models/export_all_operation.py +++ b/cyperf/models/export_all_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_id import ConfigId -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "configIds": [ConfigId.from_dict(_item) for _item in obj["configIds"]] if obj.get("configIds") is not None else None + "configIds": ( [ConfigId.from_dict(_item) for _item in obj.get("configIds", [])] if obj.get("configIds") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/export_apps_operation_input.py b/cyperf/models/export_apps_operation_input.py index 1c58259..fd49745 100644 --- a/cyperf/models/export_apps_operation_input.py +++ b/cyperf/models/export_apps_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_id import AppId -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "appIds": [AppId.from_dict(_item) for _item in obj["appIds"]] if obj.get("appIds") is not None else None + "appIds": ( [AppId.from_dict(_item) for _item in obj.get("appIds", [])] if obj.get("appIds") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/export_files_operation_input.py b/cyperf/models/export_files_operation_input.py index 7f7de67..31aeba9 100644 --- a/cyperf/models/export_files_operation_input.py +++ b/cyperf/models/export_files_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.export_files_request import ExportFilesRequest -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,13 +95,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "exportFilesRequestsByAgent": dict( - (_k, + "exportFilesRequestsByAgent": ( + { + _k: ( [ExportFilesRequest.from_dict(_item) for _item in _v] - if _v is not None - else None - ) - for _k, _v in obj.get("exportFilesRequestsByAgent", {}).items() + if _v is not None else None + ) + for _k, _v in (obj.get("exportFilesRequestsByAgent") or {}).items() + } ), "timeout": obj.get("timeout") , diff --git a/cyperf/models/export_files_request.py b/cyperf/models/export_files_request.py index eec9792..03dacf9 100644 --- a/cyperf/models/export_files_request.py +++ b/cyperf/models/export_files_request.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.required_file_types import RequiredFileTypes -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/export_package_operation.py b/cyperf/models/export_package_operation.py index cd8660e..c3f2bd9 100644 --- a/cyperf/models/export_package_operation.py +++ b/cyperf/models/export_package_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/external_resource_info.py b/cyperf/models/external_resource_info.py index 1878fa6..3fdb497 100644 --- a/cyperf/models/external_resource_info.py +++ b/cyperf/models/external_resource_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/f5_encapsulation.py b/cyperf/models/f5_encapsulation.py index 7ed8f2c..ed73979 100644 --- a/cyperf/models/f5_encapsulation.py +++ b/cyperf/models/f5_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PPPOverDTLSEnabled": obj.get("PPPOverDTLSEnabled"), "PPPOverDTLSSettings": DTLSSettings.from_dict(obj["PPPOverDTLSSettings"]) if obj.get("PPPOverDTLSSettings") is not None else None, "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/f5_settings.py b/cyperf/models/f5_settings.py index 4d9d8f7..d437ade 100644 --- a/cyperf/models/f5_settings.py +++ b/cyperf/models/f5_settings.py @@ -26,7 +26,7 @@ from cyperf.models.f5_encapsulation import F5Encapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "F5Encapsulation": F5Encapsulation.from_dict(obj["F5Encapsulation"]) if obj.get("F5Encapsulation") is not None else None, "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, "VPNGateway": obj.get("VPNGateway") diff --git a/cyperf/models/feature.py b/cyperf/models/feature.py index 9af1a44..5698b78 100644 --- a/cyperf/models/feature.py +++ b/cyperf/models/feature.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from cyperf.models.feature_reservation import FeatureReservation -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/feature_reservation.py b/cyperf/models/feature_reservation.py index 7869617..916ae58 100644 --- a/cyperf/models/feature_reservation.py +++ b/cyperf/models/feature_reservation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/feature_reservation_reserve.py b/cyperf/models/feature_reservation_reserve.py index bd1699c..4c93cec 100644 --- a/cyperf/models/feature_reservation_reserve.py +++ b/cyperf/models/feature_reservation_reserve.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/file_metadata.py b/cyperf/models/file_metadata.py index e27a93d..d68e1bd 100644 --- a/cyperf/models/file_metadata.py +++ b/cyperf/models/file_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index 62c7a57..8ce2752 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,10 +29,11 @@ class FileValue(BaseModel): FileValue """ # noqa: E501 file_name: Optional[StrictStr] = Field(default=None, description="The name of the file.", alias="fileName") + md5_sum: Optional[StrictStr] = Field(default=None, description="The MD5 sum of the file", alias="md5Sum") payload: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, description="The payload value of the file.") resource_url: Optional[StrictStr] = Field(default=None, description="The resource URL of the file.", alias="resourceURL") value: Optional[StrictStr] = Field(default=None, description="Selected column name of the file (playlist type).") - __properties: ClassVar[List[str]] = ["fileName", "payload", "resourceURL", "value"] + __properties: ClassVar[List[str]] = ["fileName", "md5Sum", "payload", "resourceURL", "value"] model_config = ConfigDict( populate_by_name=True, @@ -88,7 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "fileName": obj.get("fileName"), - "payload": obj.get("payload"), + "md5Sum": obj.get("md5Sum"), + "payload": obj.get("payload") if obj.get("payload") is not None else [], "resourceURL": obj.get("resourceURL"), "value": obj.get("value") , diff --git a/cyperf/models/filter.py b/cyperf/models/filter.py index 037e1db..8a40b69 100644 --- a/cyperf/models/filter.py +++ b/cyperf/models/filter.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/filtered_stat.py b/cyperf/models/filtered_stat.py index 74800d5..dfacd06 100644 --- a/cyperf/models/filtered_stat.py +++ b/cyperf/models/filtered_stat.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.filter import Filter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "filters": [Filter.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "filters": ( [Filter.from_dict(_item) for _item in obj.get("filters", [])] if obj.get("filters") is not None else None), "name": obj.get("name") , "links": obj.get("links") diff --git a/cyperf/models/find_param_matches_operation.py b/cyperf/models/find_param_matches_operation.py index 645d93a..92eee16 100644 --- a/cyperf/models/find_param_matches_operation.py +++ b/cyperf/models/find_param_matches_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_input_find_param import ActionInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,9 +95,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [ActionInputFindParam.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [ActionInputFindParam.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "AppId": obj.get("AppId"), - "MatchLocation": obj.get("MatchLocation"), + "MatchLocation": obj.get("MatchLocation") if obj.get("MatchLocation") is not None else [], "Pattern": obj.get("Pattern") , "links": obj.get("links") diff --git a/cyperf/models/fortinet_encapsulation.py b/cyperf/models/fortinet_encapsulation.py index e1526ba..860b9c5 100644 --- a/cyperf/models/fortinet_encapsulation.py +++ b/cyperf/models/fortinet_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PPPOverDTLSEnabled": obj.get("PPPOverDTLSEnabled"), "PPPOverDTLSSettings": DTLSSettings.from_dict(obj["PPPOverDTLSSettings"]) if obj.get("PPPOverDTLSSettings") is not None else None, "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/fortinet_settings.py b/cyperf/models/fortinet_settings.py index a772066..b5a6676 100644 --- a/cyperf/models/fortinet_settings.py +++ b/cyperf/models/fortinet_settings.py @@ -26,7 +26,7 @@ from cyperf.models.fortinet_encapsulation import FortinetEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "FortinetEncapsulation": FortinetEncapsulation.from_dict(obj["FortinetEncapsulation"]) if obj.get("FortinetEncapsulation") is not None else None, "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, "VPNGateway": obj.get("VPNGateway") diff --git a/cyperf/models/fulfillment_request.py b/cyperf/models/fulfillment_request.py index f4c7704..572bbe3 100644 --- a/cyperf/models/fulfillment_request.py +++ b/cyperf/models/fulfillment_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generate_all_operation.py b/cyperf/models/generate_all_operation.py index b29e15f..e358dfa 100644 --- a/cyperf/models/generate_all_operation.py +++ b/cyperf/models/generate_all_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generate_csv_reports_operation.py b/cyperf/models/generate_csv_reports_operation.py index 55de009..0b3a613 100644 --- a/cyperf/models/generate_csv_reports_operation.py +++ b/cyperf/models/generate_csv_reports_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.filtered_stat import FilteredStat -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -100,7 +100,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "forceGenerate": obj.get("forceGenerate"), "from": obj.get("from"), "interval": obj.get("interval"), - "stats": [FilteredStat.from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": ( [FilteredStat.from_dict(_item) for _item in obj.get("stats", [])] if obj.get("stats") is not None else None), "to": obj.get("to"), "useRelativeTime": obj.get("useRelativeTime") , diff --git a/cyperf/models/generate_pdf_report_operation.py b/cyperf/models/generate_pdf_report_operation.py index beaf775..24a453a 100644 --- a/cyperf/models/generate_pdf_report_operation.py +++ b/cyperf/models/generate_pdf_report_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generic_file.py b/cyperf/models/generic_file.py index b9e3aaa..dec088b 100644 --- a/cyperf/models/generic_file.py +++ b/cyperf/models/generic_file.py @@ -20,9 +20,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.file_metadata import FileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -36,7 +36,7 @@ class GenericFile(BaseModel): md5: Optional[StrictStr] = Field(default=None, description="The md5 value of the file") metadata: Optional[FileMetadata] = None name: Optional[StrictStr] = Field(default=None, description="The name of the file") - options: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The characteristics of the file") + options: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The characteristics of the file") owner: Optional[StrictStr] = Field(default=None, description="The user-visible name of the file's owner") owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the file's owner", alias="ownerId") reference_links: Optional[Dict[str, StrictInt]] = Field(default=None, alias="referenceLinks") @@ -122,8 +122,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "metadata": FileMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, "name": obj.get("name"), "options": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["options"].items() + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) + for _k, _v in (obj.get("options") or {}).items() ) if obj.get("options") is not None else None, diff --git a/cyperf/models/get_agents200_response.py b/cyperf/models/get_agents200_response.py index 64017a2..9f2e109 100644 --- a/cyperf/models/get_agents200_response.py +++ b/cyperf/models/get_agents200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetAgents200ResponseOneOf + + + try: instance.actual_instance = GetAgents200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_agents200_response_one_of.py b/cyperf/models/get_agents200_response_one_of.py index a235b13..ac0fbb5 100644 --- a/cyperf/models/get_agents200_response_one_of.py +++ b/cyperf/models/get_agents200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent import Agent -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Agent.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Agent.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_agents_tags200_response.py b/cyperf/models/get_agents_tags200_response.py index db1913f..b75c755 100644 --- a/cyperf/models/get_agents_tags200_response.py +++ b/cyperf/models/get_agents_tags200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetAgentsTags200ResponseOneOf + + + try: instance.actual_instance = GetAgentsTags200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_agents_tags200_response_one_of.py b/cyperf/models/get_agents_tags200_response_one_of.py index e753852..52df7eb 100644 --- a/cyperf/models/get_agents_tags200_response_one_of.py +++ b/cyperf/models/get_agents_tags200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agents_group import AgentsGroup -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AgentsGroup.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AgentsGroup.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_apps_operation.py b/cyperf/models/get_apps_operation.py new file mode 100644 index 0000000..1da38fe --- /dev/null +++ b/cyperf/models/get_apps_operation.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.category_filter import CategoryFilter +from cyperf.models.sort_body_field import SortBodyField +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetAppsOperation(BaseModel): + """ + GetAppsOperation + """ # noqa: E501 + categories: Optional[List[CategoryFilter]] = None + filter_mode: Optional[StrictStr] = Field(default=None, alias="filterMode") + search_col: Optional[List[StrictStr]] = Field(default=None, alias="searchCol") + search_val: Optional[List[StrictStr]] = Field(default=None, alias="searchVal") + skip: Optional[StrictStr] = None + sort: Optional[List[SortBodyField]] = None + take: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["categories", "filterMode", "searchCol", "searchVal", "skip", "sort", "take"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppsOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in categories (list) + _items = [] + if self.categories: + for _item in self.categories: + if _item: + _items.append(_item.to_dict()) + _dict['categories'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in sort (list) + _items = [] + if self.sort: + for _item in self.sort: + if _item: + _items.append(_item.to_dict()) + _dict['sort'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppsOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), + "filterMode": obj.get("filterMode"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], + "skip": obj.get("skip"), + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), + "take": obj.get("take") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_async_operation_result200_response.py b/cyperf/models/get_async_operation_result200_response.py index 01dee7c..d4473b8 100644 --- a/cyperf/models/get_async_operation_result200_response.py +++ b/cyperf/models/get_async_operation_result200_response.py @@ -98,23 +98,35 @@ def from_json(cls, json_str: str) -> Self: match = 0 # deserialize data into EntitlementCodeInfo + + + try: instance.actual_instance = EntitlementCodeInfo.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into ActivationCodeInfo + + + try: instance.actual_instance = ActivationCodeInfo.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into CountedFeatureStats + + + try: instance.actual_instance = CountedFeatureStats.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_attacks_operation.py b/cyperf/models/get_attacks_operation.py index 5404d64..02528b7 100644 --- a/cyperf/models/get_attacks_operation.py +++ b/cyperf/models/get_attacks_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -106,12 +106,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol"), - "searchVal": obj.get("searchVal"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), - "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), "take": obj.get("take") , "links": obj.get("links") diff --git a/cyperf/models/get_brokers200_response.py b/cyperf/models/get_brokers200_response.py index 953b4b9..af1490a 100644 --- a/cyperf/models/get_brokers200_response.py +++ b/cyperf/models/get_brokers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetBrokers200ResponseOneOf + + + try: instance.actual_instance = GetBrokers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_brokers200_response_one_of.py b/cyperf/models/get_brokers200_response_one_of.py index 8af1ac1..109a749 100644 --- a/cyperf/models/get_brokers200_response_one_of.py +++ b/cyperf/models/get_brokers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.broker import Broker -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Broker.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Broker.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_categories_operation.py b/cyperf/models/get_categories_operation.py index ca4f360..14a6b40 100644 --- a/cyperf/models/get_categories_operation.py +++ b/cyperf/models/get_categories_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "filter": [CategoryFilter.from_dict(_item) for _item in obj["filter"]] if obj.get("filter") is not None else None + "filter": ( [CategoryFilter.from_dict(_item) for _item in obj.get("filter", [])] if obj.get("filter") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/get_config_categorie_subcategories200_response.py b/cyperf/models/get_config_categorie_subcategories200_response.py new file mode 100644 index 0000000..09ccfda --- /dev/null +++ b/cyperf/models/get_config_categorie_subcategories200_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.config_sub_category import ConfigSubCategory +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETCONFIGCATEGORIESUBCATEGORIES200RESPONSE_ONE_OF_SCHEMAS = ["GetConfigCategorieSubcategories200ResponseOneOf", "List[ConfigSubCategory]"] + +class GetConfigCategorieSubcategories200Response(BaseModel): + """ + GetConfigCategorieSubcategories200Response + """ + # data type: List[ConfigSubCategory] + oneof_schema_1_validator: Optional[List[ConfigSubCategory]] = None + # data type: GetConfigCategorieSubcategories200ResponseOneOf + oneof_schema_2_validator: Optional[GetConfigCategorieSubcategories200ResponseOneOf] = None + actual_instance: Optional[Union[GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]]] = None + one_of_schemas: Set[str] = { "GetConfigCategorieSubcategories200ResponseOneOf", "List[ConfigSubCategory]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetConfigCategorieSubcategories200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[ConfigSubCategory] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetConfigCategorieSubcategories200ResponseOneOf + if not isinstance(v, GetConfigCategorieSubcategories200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetConfigCategorieSubcategories200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[ConfigSubCategory] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetConfigCategorieSubcategories200ResponseOneOf + + + + try: + instance.actual_instance = GetConfigCategorieSubcategories200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py new file mode 100644 index 0000000..4538f05 --- /dev/null +++ b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.config_sub_category import ConfigSubCategory +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetConfigCategorieSubcategories200ResponseOneOf(BaseModel): + """ + GetConfigCategorieSubcategories200ResponseOneOf + """ # noqa: E501 + data: Optional[List[ConfigSubCategory]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": ( [ConfigSubCategory.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_config_categories200_response.py b/cyperf/models/get_config_categories200_response.py index 40dc785..44e9a1b 100644 --- a/cyperf/models/get_config_categories200_response.py +++ b/cyperf/models/get_config_categories200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetConfigCategories200ResponseOneOf + + + try: instance.actual_instance = GetConfigCategories200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_config_categories200_response_one_of.py b/cyperf/models/get_config_categories200_response_one_of.py index dacddb4..9cc0398 100644 --- a/cyperf/models/get_config_categories200_response_one_of.py +++ b/cyperf/models/get_config_categories200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_category import ConfigCategory -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ConfigCategory.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ConfigCategory.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_configs200_response.py b/cyperf/models/get_configs200_response.py index c900452..45826c3 100644 --- a/cyperf/models/get_configs200_response.py +++ b/cyperf/models/get_configs200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetConfigs200ResponseOneOf + + + try: instance.actual_instance = GetConfigs200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_configs200_response_one_of.py b/cyperf/models/get_configs200_response_one_of.py index f755da5..9732c55 100644 --- a/cyperf/models/get_configs200_response_one_of.py +++ b/cyperf/models/get_configs200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_metadata import ConfigMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ConfigMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ConfigMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_controllers200_response.py b/cyperf/models/get_controllers200_response.py index 39dcad6..2e68d81 100644 --- a/cyperf/models/get_controllers200_response.py +++ b/cyperf/models/get_controllers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetControllers200ResponseOneOf + + + try: instance.actual_instance = GetControllers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_controllers200_response_one_of.py b/cyperf/models/get_controllers200_response_one_of.py index d879394..07aae2d 100644 --- a/cyperf/models/get_controllers200_response_one_of.py +++ b/cyperf/models/get_controllers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.controller import Controller -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Controller.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Controller.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_disk_usage_consumers200_response.py b/cyperf/models/get_disk_usage_consumers200_response.py index da65111..2a8ee57 100644 --- a/cyperf/models/get_disk_usage_consumers200_response.py +++ b/cyperf/models/get_disk_usage_consumers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetDiskUsageConsumers200ResponseOneOf + + + try: instance.actual_instance = GetDiskUsageConsumers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_disk_usage_consumers200_response_one_of.py b/cyperf/models/get_disk_usage_consumers200_response_one_of.py index ff92ced..b102098 100644 --- a/cyperf/models/get_disk_usage_consumers200_response_one_of.py +++ b/cyperf/models/get_disk_usage_consumers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.consumer import Consumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Consumer.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Consumer.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_license_async_operation_result200_response.py b/cyperf/models/get_license_async_operation_result200_response.py index 1d93222..1dc2334 100644 --- a/cyperf/models/get_license_async_operation_result200_response.py +++ b/cyperf/models/get_license_async_operation_result200_response.py @@ -82,11 +82,15 @@ def from_json(cls, json_str: str) -> Self: match = 0 # deserialize data into License + + + try: instance.actual_instance = License.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_license_servers200_response.py b/cyperf/models/get_license_servers200_response.py index fde5477..d1d2606 100644 --- a/cyperf/models/get_license_servers200_response.py +++ b/cyperf/models/get_license_servers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetLicenseServers200ResponseOneOf + + + try: instance.actual_instance = GetLicenseServers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_license_servers200_response_one_of.py b/cyperf/models/get_license_servers200_response_one_of.py index 99a5271..75dfe59 100644 --- a/cyperf/models/get_license_servers200_response_one_of.py +++ b/cyperf/models/get_license_servers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.license_server_metadata import LicenseServerMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [LicenseServerMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [LicenseServerMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_notifications200_response.py b/cyperf/models/get_notifications200_response.py index d6e5954..847fdac 100644 --- a/cyperf/models/get_notifications200_response.py +++ b/cyperf/models/get_notifications200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetNotifications200ResponseOneOf + + + try: instance.actual_instance = GetNotifications200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_notifications200_response_one_of.py b/cyperf/models/get_notifications200_response_one_of.py index 8b51284..6e61e3e 100644 --- a/cyperf/models/get_notifications200_response_one_of.py +++ b/cyperf/models/get_notifications200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.notification import Notification -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Notification.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Notification.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_application_types200_response.py b/cyperf/models/get_resources_application_types200_response.py index deac8bf..92d9d1a 100644 --- a/cyperf/models/get_resources_application_types200_response.py +++ b/cyperf/models/get_resources_application_types200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesApplicationTypes200ResponseOneOf + + + try: instance.actual_instance = GetResourcesApplicationTypes200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_application_types200_response_one_of.py b/cyperf/models/get_resources_application_types200_response_one_of.py index ed7388b..a4778c2 100644 --- a/cyperf/models/get_resources_application_types200_response_one_of.py +++ b/cyperf/models/get_resources_application_types200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.application_type import ApplicationType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ApplicationType.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ApplicationType.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_apps200_response.py b/cyperf/models/get_resources_apps200_response.py index bf83700..0b9557c 100644 --- a/cyperf/models/get_resources_apps200_response.py +++ b/cyperf/models/get_resources_apps200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesApps200ResponseOneOf + + + try: instance.actual_instance = GetResourcesApps200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_apps200_response_one_of.py b/cyperf/models/get_resources_apps200_response_one_of.py index 5894e72..e36deea 100644 --- a/cyperf/models/get_resources_apps200_response_one_of.py +++ b/cyperf/models/get_resources_apps200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app import AppsecApp -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AppsecApp.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AppsecApp.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_attacks200_response.py b/cyperf/models/get_resources_attacks200_response.py index 8d430d3..4227e3d 100644 --- a/cyperf/models/get_resources_attacks200_response.py +++ b/cyperf/models/get_resources_attacks200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesAttacks200ResponseOneOf + + + try: instance.actual_instance = GetResourcesAttacks200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_attacks200_response_one_of.py b/cyperf/models/get_resources_attacks200_response_one_of.py index 25dcb6e..520f321 100644 --- a/cyperf/models/get_resources_attacks200_response_one_of.py +++ b/cyperf/models/get_resources_attacks200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_attack import AppsecAttack -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AppsecAttack.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AppsecAttack.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_auth_profiles200_response.py b/cyperf/models/get_resources_auth_profiles200_response.py index 684ac08..e14d010 100644 --- a/cyperf/models/get_resources_auth_profiles200_response.py +++ b/cyperf/models/get_resources_auth_profiles200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesAuthProfiles200ResponseOneOf + + + try: instance.actual_instance = GetResourcesAuthProfiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_auth_profiles200_response_one_of.py b/cyperf/models/get_resources_auth_profiles200_response_one_of.py index d872515..a9d5db7 100644 --- a/cyperf/models/get_resources_auth_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_auth_profiles200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.auth_profile import AuthProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AuthProfile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AuthProfile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_certificates200_response.py b/cyperf/models/get_resources_certificates200_response.py index 18e5e6d..3847182 100644 --- a/cyperf/models/get_resources_certificates200_response.py +++ b/cyperf/models/get_resources_certificates200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesCertificates200ResponseOneOf + + + try: instance.actual_instance = GetResourcesCertificates200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_certificates200_response_one_of.py b/cyperf/models/get_resources_certificates200_response_one_of.py index f92e9ec..e89b61a 100644 --- a/cyperf/models/get_resources_certificates200_response_one_of.py +++ b/cyperf/models/get_resources_certificates200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.generic_file import GenericFile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [GenericFile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [GenericFile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_custom_import_operations200_response.py b/cyperf/models/get_resources_custom_import_operations200_response.py index 35f9ede..2cc4b11 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response.py +++ b/cyperf/models/get_resources_custom_import_operations200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesCustomImportOperations200ResponseOneOf + + + try: instance.actual_instance = GetResourcesCustomImportOperations200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py index 08c1f03..5c4ad31 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py +++ b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.custom_import_handler import CustomImportHandler -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [CustomImportHandler.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [CustomImportHandler.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_http_profiles200_response.py b/cyperf/models/get_resources_http_profiles200_response.py index 7d1dd09..a5ca4c2 100644 --- a/cyperf/models/get_resources_http_profiles200_response.py +++ b/cyperf/models/get_resources_http_profiles200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesHttpProfiles200ResponseOneOf + + + try: instance.actual_instance = GetResourcesHttpProfiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_http_profiles200_response_one_of.py b/cyperf/models/get_resources_http_profiles200_response_one_of.py index c5f8ed4..85dda5f 100644 --- a/cyperf/models/get_resources_http_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_http_profiles200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.http_profile import HTTPProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [HTTPProfile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [HTTPProfile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_result_files200_response.py b/cyperf/models/get_result_files200_response.py index 60e849a..8107fb7 100644 --- a/cyperf/models/get_result_files200_response.py +++ b/cyperf/models/get_result_files200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultFiles200ResponseOneOf + + + try: instance.actual_instance = GetResultFiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_result_files200_response_one_of.py b/cyperf/models/get_result_files200_response_one_of.py index 57d475a..4c8f718 100644 --- a/cyperf/models/get_result_files200_response_one_of.py +++ b/cyperf/models/get_result_files200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.result_file_metadata import ResultFileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultFileMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultFileMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_result_stats200_response.py b/cyperf/models/get_result_stats200_response.py index 6252440..e13e44f 100644 --- a/cyperf/models/get_result_stats200_response.py +++ b/cyperf/models/get_result_stats200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultStats200ResponseOneOf + + + try: instance.actual_instance = GetResultStats200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_result_stats200_response_one_of.py b/cyperf/models/get_result_stats200_response_one_of.py index 901f7ec..fadc58e 100644 --- a/cyperf/models/get_result_stats200_response_one_of.py +++ b/cyperf/models/get_result_stats200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stats_result import StatsResult -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [StatsResult.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [StatsResult.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_results200_response.py b/cyperf/models/get_results200_response.py index 36c09a2..f30f6a4 100644 --- a/cyperf/models/get_results200_response.py +++ b/cyperf/models/get_results200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResults200ResponseOneOf + + + try: instance.actual_instance = GetResults200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_results200_response_one_of.py b/cyperf/models/get_results200_response_one_of.py index ab6a681..660a86f 100644 --- a/cyperf/models/get_results200_response_one_of.py +++ b/cyperf/models/get_results200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.result_metadata import ResultMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_results_tags200_response.py b/cyperf/models/get_results_tags200_response.py index a046c9b..d07c8f6 100644 --- a/cyperf/models/get_results_tags200_response.py +++ b/cyperf/models/get_results_tags200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultsTags200ResponseOneOf + + + try: instance.actual_instance = GetResultsTags200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_results_tags200_response_one_of.py b/cyperf/models/get_results_tags200_response_one_of.py index 0d4b261..6770a33 100644 --- a/cyperf/models/get_results_tags200_response_one_of.py +++ b/cyperf/models/get_results_tags200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.results_group import ResultsGroup -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultsGroup.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultsGroup.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_session_meta200_response.py b/cyperf/models/get_session_meta200_response.py index 45e5548..dcdb316 100644 --- a/cyperf/models/get_session_meta200_response.py +++ b/cyperf/models/get_session_meta200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetSessionMeta200ResponseOneOf + + + try: instance.actual_instance = GetSessionMeta200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_session_meta200_response_one_of.py b/cyperf/models/get_session_meta200_response_one_of.py index 1b600dd..c0f3aff 100644 --- a/cyperf/models/get_session_meta200_response_one_of.py +++ b/cyperf/models/get_session_meta200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.pair import Pair -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Pair.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Pair.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_sessions200_response.py b/cyperf/models/get_sessions200_response.py index 33b3307..092e45f 100644 --- a/cyperf/models/get_sessions200_response.py +++ b/cyperf/models/get_sessions200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetSessions200ResponseOneOf + + + try: instance.actual_instance = GetSessions200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_sessions200_response_one_of.py b/cyperf/models/get_sessions200_response_one_of.py index 63ea875..bb10f2e 100644 --- a/cyperf/models/get_sessions200_response_one_of.py +++ b/cyperf/models/get_sessions200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.session import Session -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Session.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Session.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_stats_plugins200_response.py b/cyperf/models/get_stats_plugins200_response.py index c82a250..a8058b3 100644 --- a/cyperf/models/get_stats_plugins200_response.py +++ b/cyperf/models/get_stats_plugins200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetStatsPlugins200ResponseOneOf + + + try: instance.actual_instance = GetStatsPlugins200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_stats_plugins200_response_one_of.py b/cyperf/models/get_stats_plugins200_response_one_of.py index 8debc22..657bce2 100644 --- a/cyperf/models/get_stats_plugins200_response_one_of.py +++ b/cyperf/models/get_stats_plugins200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.plugin import Plugin -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Plugin.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Plugin.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_strikes_operation.py b/cyperf/models/get_strikes_operation.py index 700f372..e390792 100644 --- a/cyperf/models/get_strikes_operation.py +++ b/cyperf/models/get_strikes_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -107,13 +107,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), "compatibleWith": obj.get("compatibleWith"), "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol"), - "searchVal": obj.get("searchVal"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), - "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), "take": obj.get("take") , "links": obj.get("links") diff --git a/cyperf/models/group_tls13.py b/cyperf/models/group_tls13.py new file mode 100644 index 0000000..b248820 --- /dev/null +++ b/cyperf/models/group_tls13.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List +from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GroupTLS13(BaseModel): + """ + A TLSv1.3 group with deprecation status. + """ # noqa: E501 + is_deprecated: StrictBool = Field(alias="IsDeprecated") + name: SupportedGroupTLS13 = Field(alias="Name") + __properties: ClassVar[List[str]] = ["IsDeprecated", "Name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GroupTLS13 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GroupTLS13 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "IsDeprecated": obj.get("IsDeprecated"), + "Name": obj.get("Name") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/health_check_config.py b/cyperf/models/health_check_config.py index d05e835..7d4cfd9 100644 --- a/cyperf/models/health_check_config.py +++ b/cyperf/models/health_check_config.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,9 +104,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Enabled": obj.get("Enabled"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/health_issue.py b/cyperf/models/health_issue.py index c36096a..2f11b87 100644 --- a/cyperf/models/health_issue.py +++ b/cyperf/models/health_issue.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/host_id.py b/cyperf/models/host_id.py index 875af1f..0cecfab 100644 --- a/cyperf/models/host_id.py +++ b/cyperf/models/host_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/http_profile.py b/cyperf/models/http_profile.py index 0166330..5497708 100644 --- a/cyperf/models/http_profile.py +++ b/cyperf/models/http_profile.py @@ -24,7 +24,7 @@ from cyperf.models.connection_persistence import ConnectionPersistence from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -128,9 +128,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Headers": Params.from_dict(obj["Headers"]) if obj.get("Headers") is not None else None, "IsModified": obj.get("IsModified"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "UseApplicationServerHeaders": obj.get("UseApplicationServerHeaders"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/http_req_meta.py b/cyperf/models/http_req_meta.py index 11e78c2..4a3e5f6 100644 --- a/cyperf/models/http_req_meta.py +++ b/cyperf/models/http_req_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/http_res_meta.py b/cyperf/models/http_res_meta.py index 7f74507..8f5fa3f 100644 --- a/cyperf/models/http_res_meta.py +++ b/cyperf/models/http_res_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/import_all_operation.py b/cyperf/models/import_all_operation.py index 934b807..489b76b 100644 --- a/cyperf/models/import_all_operation.py +++ b/cyperf/models/import_all_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_metadata import ConfigMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "configs": [ConfigMetadata.from_dict(_item) for _item in obj["configs"]] if obj.get("configs") is not None else None + "configs": ( [ConfigMetadata.from_dict(_item) for _item in obj.get("configs", [])] if obj.get("configs") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/import_offline_license_result.py b/cyperf/models/import_offline_license_result.py index 9944c8f..3939594 100644 --- a/cyperf/models/import_offline_license_result.py +++ b/cyperf/models/import_offline_license_result.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.license_receipt import LicenseReceipt -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ingest_operation.py b/cyperf/models/ingest_operation.py index 217ee6b..34468b9 100644 --- a/cyperf/models/ingest_operation.py +++ b/cyperf/models/ingest_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.plugin_stats import PluginStats -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/inner_ip_range.py b/cyperf/models/inner_ip_range.py index 8a6dd42..ad7a6ec 100644 --- a/cyperf/models/inner_ip_range.py +++ b/cyperf/models/inner_ip_range.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/interface.py b/cyperf/models/interface.py index c3c8f96..5a354b6 100644 --- a/cyperf/models/interface.py +++ b/cyperf/models/interface.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ip_mask import IpMask -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -107,7 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Gateway": obj.get("Gateway"), - "IP": [IpMask.from_dict(_item) for _item in obj["IP"]] if obj.get("IP") is not None else None, + "IP": ( [IpMask.from_dict(_item) for _item in obj.get("IP", [])] if obj.get("IP") is not None else None), "MTU": obj.get("MTU"), "Mac": obj.get("Mac"), "Name": obj.get("Name") diff --git a/cyperf/models/ip_mask.py b/cyperf/models/ip_mask.py index dbe7219..4ec3078 100644 --- a/cyperf/models/ip_mask.py +++ b/cyperf/models/ip_mask.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 5e8b58d..221bdf1 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -31,7 +31,8 @@ from cyperf.models.ip_sec_stack import IPSecStack from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.tunnel_stack import TunnelStack -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.vx_lan_stack import VxLANStack +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -51,11 +52,14 @@ class IPNetwork(BaseModel): ip_sec_stacks: Optional[List[IPSecStack]] = Field(default=None, alias="IPSecStacks") mac_dtls_stacks: Optional[List[MacDtlsStack]] = Field(default=None, alias="MacDtlsStacks") tunnel_stacks: Optional[List[TunnelStack]] = Field(default=None, alias="TunnelStacks") + vx_lan_stacks: Optional[List[VxLANStack]] = Field(default=None, alias="VxLANStacks") active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the network segment is active.(default: true)") agent_assignments: Optional[AgentAssignments] = Field(default=None, alias="agentAssignments") + inherit_streaming_cpu_allocation: Optional[StrictBool] = Field(default=None, description="A flag indicating if the CPU percentage used by agents assigned to this network segment for streaming purposes will be inherited from the objective settings (default: true).", alias="inheritStreamingCPUAllocation") links: Optional[List[APILink]] = None min_agents: Optional[StrictInt] = Field(default=None, description="The minimum number of agents that should be assigned to this network segment in a valid test (default: 1).", alias="minAgents") - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "DNSResolver", "DNSServer", "DUTConnections", "EmulatedRouter", "EthRange", "IPRanges", "IPSecStacks", "MacDtlsStacks", "TunnelStacks", "active", "agentAssignments", "links", "minAgents"] + streaming_cpu_allocation: Optional[StrictInt] = Field(default=None, description="The CPU percentage used by agents assigned to this network segment for streaming purposes (default: 25).", alias="streamingCPUAllocation") + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "DNSResolver", "DNSServer", "DUTConnections", "EmulatedRouter", "EthRange", "IPRanges", "IPSecStacks", "MacDtlsStacks", "TunnelStacks", "VxLANStacks", "active", "agentAssignments", "inheritStreamingCPUAllocation", "links", "minAgents", "streamingCPUAllocation"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -143,6 +147,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['TunnelStacks'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in vx_lan_stacks (list) + _items = [] + if self.vx_lan_stacks: + for _item in self.vx_lan_stacks: + if _item: + _items.append(_item.to_dict()) + _dict['VxLANStacks'] = _items # override the default output from pydantic by calling `to_dict()` of agent_assignments if self.agent_assignments: _dict['agentAssignments'] = self.agent_assignments.to_dict() @@ -169,20 +180,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags"), + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [], "DNSResolver": DNSResolver.from_dict(obj["DNSResolver"]) if obj.get("DNSResolver") is not None else None, "DNSServer": DNSServer.from_dict(obj["DNSServer"]) if obj.get("DNSServer") is not None else None, + "DUTConnections": obj.get("DUTConnections") if obj.get("DUTConnections") is not None else [], "EmulatedRouter": EmulatedRouter.from_dict(obj["EmulatedRouter"]) if obj.get("EmulatedRouter") is not None else None, "EthRange": EthRange.from_dict(obj["EthRange"]) if obj.get("EthRange") is not None else None, - "EthRange": obj.get("EthRange"), - "IPRanges": [IPRange.from_dict(_item) for _item in obj["IPRanges"]] if obj.get("IPRanges") is not None else None, - "IPSecStacks": [IPSecStack.from_dict(_item) for _item in obj["IPSecStacks"]] if obj.get("IPSecStacks") is not None else None, - "MacDtlsStacks": [MacDtlsStack.from_dict(_item) for _item in obj["MacDtlsStacks"]] if obj.get("MacDtlsStacks") is not None else None, - "TunnelStacks": [TunnelStack.from_dict(_item) for _item in obj["TunnelStacks"]] if obj.get("TunnelStacks") is not None else None, + "IPRanges": ( [IPRange.from_dict(_item) for _item in obj.get("IPRanges", [])] if obj.get("IPRanges") is not None else None), + "IPSecStacks": ( [IPSecStack.from_dict(_item) for _item in obj.get("IPSecStacks", [])] if obj.get("IPSecStacks") is not None else None), + "MacDtlsStacks": ( [MacDtlsStack.from_dict(_item) for _item in obj.get("MacDtlsStacks", [])] if obj.get("MacDtlsStacks") is not None else None), + "TunnelStacks": ( [TunnelStack.from_dict(_item) for _item in obj.get("TunnelStacks", [])] if obj.get("TunnelStacks") is not None else None), + "VxLANStacks": ( [VxLANStack.from_dict(_item) for _item in obj.get("VxLANStacks", [])] if obj.get("VxLANStacks") is not None else None), "active": obj.get("active"), "agentAssignments": AgentAssignments.from_dict(obj["agentAssignments"]) if obj.get("agentAssignments") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "minAgents": obj.get("minAgents") + "inheritStreamingCPUAllocation": obj.get("inheritStreamingCPUAllocation"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "minAgents": obj.get("minAgents"), + "streamingCPUAllocation": obj.get("streamingCPUAllocation") , "links": obj.get("links") }) diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index c9c5c1b..f8288af 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -25,7 +25,7 @@ from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -172,9 +172,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetMask": obj.get("NetMask"), "NetMaskAuto": obj.get("NetMaskAuto"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/ip_sec_range.py b/cyperf/models/ip_sec_range.py index a326b61..2691442 100644 --- a/cyperf/models/ip_sec_range.py +++ b/cyperf/models/ip_sec_range.py @@ -29,7 +29,7 @@ from cyperf.models.remote_access import RemoteAccess from cyperf.models.remote_subnet_config import RemoteSubnetConfig from cyperf.models.timers import Timers -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -177,7 +177,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Timers": Timers.from_dict(obj["Timers"]) if obj.get("Timers") is not None else None, "TunnelCountPerOuterIP": obj.get("TunnelCountPerOuterIP"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/ip_sec_stack.py b/cyperf/models/ip_sec_stack.py index 915e264..b1529b6 100644 --- a/cyperf/models/ip_sec_stack.py +++ b/cyperf/models/ip_sec_stack.py @@ -27,7 +27,7 @@ from cyperf.models.ip_sec_range import IPSecRange from cyperf.models.local_subnet_config import LocalSubnetConfig from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -165,7 +165,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SetupTimeout": obj.get("SetupTimeout"), "StackRole": obj.get("StackRole"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/license.py b/cyperf/models/license.py index c413e13..89d97cd 100644 --- a/cyperf/models/license.py +++ b/cyperf/models/license.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from cyperf.models.feature import Feature from cyperf.models.link import Link -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -113,9 +113,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "activationCode": obj.get("activationCode"), "daysLeftToExpire": obj.get("daysLeftToExpire"), "expiryDate": obj.get("expiryDate"), - "features": [Feature.from_dict(_item) for _item in obj["features"]] if obj.get("features") is not None else None, + "features": ( [Feature.from_dict(_item) for _item in obj.get("features", [])] if obj.get("features") is not None else None), "isExpired": obj.get("isExpired"), - "links": [Link.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [Link.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maintenanceDate": obj.get("maintenanceDate"), "partNumberDescription": obj.get("partNumberDescription"), "partNumberId": obj.get("partNumberId"), diff --git a/cyperf/models/license_receipt.py b/cyperf/models/license_receipt.py index 6e57004..578088c 100644 --- a/cyperf/models/license_receipt.py +++ b/cyperf/models/license_receipt.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from cyperf.models.license import License -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "changedLicenses": [License.from_dict(_item) for _item in obj["changedLicenses"]] if obj.get("changedLicenses") is not None else None, + "changedLicenses": ( [License.from_dict(_item) for _item in obj.get("changedLicenses", [])] if obj.get("changedLicenses") is not None else None), "isOnline": obj.get("isOnline"), "operationType": obj.get("operationType") , diff --git a/cyperf/models/license_server_metadata.py b/cyperf/models/license_server_metadata.py index b7a46ac..c3f0cb6 100644 --- a/cyperf/models/license_server_metadata.py +++ b/cyperf/models/license_server_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/link.py b/cyperf/models/link.py index 599cb8a..a49376f 100644 --- a/cyperf/models/link.py +++ b/cyperf/models/link.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/load_config_operation.py b/cyperf/models/load_config_operation.py index 68b7ae2..b98e5f9 100644 --- a/cyperf/models/load_config_operation.py +++ b/cyperf/models/load_config_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index 92769b7..2753476 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/log_config.py b/cyperf/models/log_config.py index 6793d2e..3a96bf6 100644 --- a/cyperf/models/log_config.py +++ b/cyperf/models/log_config.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/mac_dtls_stack.py b/cyperf/models/mac_dtls_stack.py index 1b873e2..00b5cdf 100644 --- a/cyperf/models/mac_dtls_stack.py +++ b/cyperf/models/mac_dtls_stack.py @@ -25,7 +25,7 @@ from cyperf.models.ip_range import IPRange from cyperf.models.network_meshing import NetworkMeshing from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -121,15 +121,15 @@ def out_key_incr_validate_regular_expression(cls, value): @field_validator('tunnel_destination_mac_incr') def tunnel_destination_mac_incr_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('tunnel_destination_mac_start') def tunnel_destination_mac_start_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value model_config = ConfigDict( @@ -220,7 +220,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelDestinationMacStart": obj.get("TunnelDestinationMacStart"), "VlanRange": VLANRange.from_dict(obj["VlanRange"]) if obj.get("VlanRange") is not None else None, "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/marked_as_deleted.py b/cyperf/models/marked_as_deleted.py index 2e3f99d..4578132 100644 --- a/cyperf/models/marked_as_deleted.py +++ b/cyperf/models/marked_as_deleted.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/async_operation_response.py b/cyperf/models/md2_tlv.py similarity index 62% rename from cyperf/models/async_operation_response.py rename to cyperf/models/md2_tlv.py index 32351b5..9b87749 100644 --- a/cyperf/models/async_operation_response.py +++ b/cyperf/models/md2_tlv.py @@ -20,22 +20,19 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr -class AsyncOperationResponse(BaseModel): +class Md2Tlv(BaseModel): """ - The POST response for an async operation. + Md2Tlv """ # noqa: E501 - id: StrictInt = Field(description="The subresource id of the status.") - message: StrictStr = Field(description="A message from the operation (optional).") - progress: StrictInt = Field(description="The progress of the operation (percent).") - result_url: Optional[StrictStr] = Field(description="The URL where the archive is available.", alias="resultUrl") - state: StrictStr = Field(description="The state of the operation.") - type: StrictStr = Field(description="The name of the operation.") - url: StrictStr = Field(description="The status URI of the operation.") - __properties: ClassVar[List[str]] = ["id", "message", "progress", "resultUrl", "state", "type", "url"] + md2_class: StrictInt = Field(alias="Md2Class") + md2_type: StrictInt = Field(alias="Md2Type") + md2_value: StrictInt = Field(alias="Md2Value") + id: StrictStr + __properties: ClassVar[List[str]] = ["Md2Class", "Md2Type", "Md2Value", "id"] model_config = ConfigDict( populate_by_name=True, @@ -55,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AsyncOperationResponse from a JSON string""" + """Create an instance of Md2Tlv from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -80,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AsyncOperationResponse from a dict""" + """Create an instance of Md2Tlv from a dict""" if obj is None: return None @@ -90,13 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "id": obj.get("id"), - "message": obj.get("message"), - "progress": obj.get("progress"), - "resultUrl": obj.get("resultUrl"), - "state": obj.get("state"), - "type": obj.get("type"), - "url": obj.get("url") + "Md2Class": obj.get("Md2Class"), + "Md2Type": obj.get("Md2Type"), + "Md2Value": obj.get("Md2Value"), + "id": obj.get("id") , "links": obj.get("links") }) diff --git a/cyperf/models/media_file.py b/cyperf/models/media_file.py index 3aaedfd..991c068 100644 --- a/cyperf/models/media_file.py +++ b/cyperf/models/media_file.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.file_value import FileValue from cyperf.models.media_track import MediaTrack -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,9 +108,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "FileValue": FileValue.from_dict(obj["FileValue"]) if obj.get("FileValue") is not None else None, - "MediaTracks": [MediaTrack.from_dict(_item) for _item in obj["MediaTracks"]] if obj.get("MediaTracks") is not None else None, + "MediaTracks": ( [MediaTrack.from_dict(_item) for _item in obj.get("MediaTracks", [])] if obj.get("MediaTracks") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/media_track.py b/cyperf/models/media_track.py index 4f57608..1173235 100644 --- a/cyperf/models/media_track.py +++ b/cyperf/models/media_track.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.track_type import TrackType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 3600451..7eb494d 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -20,10 +20,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from cyperf.models.rtp_profile_meta import RTPProfileMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -33,8 +33,10 @@ class Metadata(BaseModel): """ # noqa: E501 direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") - keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") + is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") + no_multi_flow_support: Optional[StrictBool] = Field(default=None, description="If true, only a single application with this protocol id can be present in the configuration", alias="NoMultiFlowSupport") protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") rtp_profile_meta: Optional[RTPProfileMeta] = Field(default=None, alias="RTPProfileMeta") references: Optional[List[Reference]] = Field(default=None, description="The references of the strike", alias="References") @@ -45,7 +47,7 @@ class Metadata(BaseModel): static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "Keywords", "LegacyNames", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -119,17 +121,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), - "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, - "LegacyNames": obj.get("LegacyNames"), + "IsStreaming": obj.get("IsStreaming"), + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], + "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, - "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), "RequiresUniqueness": obj.get("RequiresUniqueness"), "Severity": obj.get("Severity"), "SkipAttackGeneration": obj.get("SkipAttackGeneration"), "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), - "SupportedApps": obj.get("SupportedApps"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/name_server.py b/cyperf/models/name_server.py index e10cd2e..a3c9a58 100644 --- a/cyperf/models/name_server.py +++ b/cyperf/models/name_server.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/network_mapping.py b/cyperf/models/network_mapping.py index 9fcba81..12c8201 100644 --- a/cyperf/models/network_mapping.py +++ b/cyperf/models/network_mapping.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -86,9 +86,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ClientNetworkTags": obj.get("ClientNetworkTags"), - "ExcludedDUTList": obj.get("ExcludedDUTList"), - "ServerNetworkTags": obj.get("ServerNetworkTags") + "ClientNetworkTags": obj.get("ClientNetworkTags") if obj.get("ClientNetworkTags") is not None else [], + "ExcludedDUTList": obj.get("ExcludedDUTList") if obj.get("ExcludedDUTList") is not None else [], + "ServerNetworkTags": obj.get("ServerNetworkTags") if obj.get("ServerNetworkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/network_meshing.py b/cyperf/models/network_meshing.py index a16c2fd..e9ebd0a 100644 --- a/cyperf/models/network_meshing.py +++ b/cyperf/models/network_meshing.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.mapping_type import MappingType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/network_profile.py b/cyperf/models/network_profile.py index a0c5937..b47054f 100644 --- a/cyperf/models/network_profile.py +++ b/cyperf/models/network_profile.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.dut_network import DUTNetwork from cyperf.models.ip_network import IPNetwork -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,10 +111,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "DUTNetworkSegment": [DUTNetwork.from_dict(_item) for _item in obj["DUTNetworkSegment"]] if obj.get("DUTNetworkSegment") is not None else None, - "IPNetworkSegment": [IPNetwork.from_dict(_item) for _item in obj["IPNetworkSegment"]] if obj.get("IPNetworkSegment") is not None else None, + "DUTNetworkSegment": ( [DUTNetwork.from_dict(_item) for _item in obj.get("DUTNetworkSegment", [])] if obj.get("DUTNetworkSegment") is not None else None), + "IPNetworkSegment": ( [IPNetwork.from_dict(_item) for _item in obj.get("IPNetworkSegment", [])] if obj.get("IPNetworkSegment") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/network_segment_base.py b/cyperf/models/network_segment_base.py index 58253ab..5580ce5 100644 --- a/cyperf/models/network_segment_base.py +++ b/cyperf/models/network_segment_base.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/nodes_by_controller.py b/cyperf/models/nodes_by_controller.py index 4137294..66b39f0 100644 --- a/cyperf/models/nodes_by_controller.py +++ b/cyperf/models/nodes_by_controller.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": obj.get("computeNodes"), + "computeNodes": obj.get("computeNodes") if obj.get("computeNodes") is not None else [], "controllerId": obj.get("controllerId") , "links": obj.get("links") diff --git a/cyperf/models/nodes_power_cycle_operation.py b/cyperf/models/nodes_power_cycle_operation.py index 6e8c327..5c8903f 100644 --- a/cyperf/models/nodes_power_cycle_operation.py +++ b/cyperf/models/nodes_power_cycle_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.nodes_by_controller import NodesByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [NodesByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/notification.py b/cyperf/models/notification.py index 1593324..5ad191c 100644 --- a/cyperf/models/notification.py +++ b/cyperf/models/notification.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/notification_counts.py b/cyperf/models/notification_counts.py index 33e4e02..d08e265 100644 --- a/cyperf/models/notification_counts.py +++ b/cyperf/models/notification_counts.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ntp_info.py b/cyperf/models/ntp_info.py index dc716ae..e105116 100644 --- a/cyperf/models/ntp_info.py +++ b/cyperf/models/ntp_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -91,7 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "activeServer": obj.get("activeServer"), - "servers": obj.get("servers"), + "servers": obj.get("servers") if obj.get("servers") is not None else [], "status": obj.get("status") , "links": obj.get("links") diff --git a/cyperf/models/objective_type.py b/cyperf/models/objective_type.py index 06398b2..8d74656 100644 --- a/cyperf/models/objective_type.py +++ b/cyperf/models/objective_type.py @@ -32,6 +32,7 @@ class ObjectiveType(str, Enum): CONNECTIONS_PER_SECOND = 'Connections per second' FLOW_RATE = 'Flow rate' CONCURRENT_CONNECTIONS = 'Concurrent connections' + PROMPTS_PER_SECOND = 'Prompts per second' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/objective_value_entry.py b/cyperf/models/objective_value_entry.py index 6e964a7..7fb847a 100644 --- a/cyperf/models/objective_value_entry.py +++ b/cyperf/models/objective_value_entry.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/objectives_and_timeline.py b/cyperf/models/objectives_and_timeline.py index 196a690..f5bd81b 100644 --- a/cyperf/models/objectives_and_timeline.py +++ b/cyperf/models/objectives_and_timeline.py @@ -25,7 +25,7 @@ from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.specific_objective import SpecificObjective from cyperf.models.timeline_segment import TimelineSegment -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -127,9 +127,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "AdvancedSettings": AdvancedSettings.from_dict(obj["AdvancedSettings"]) if obj.get("AdvancedSettings") is not None else None, "PrimaryObjective": SpecificObjective.from_dict(obj["PrimaryObjective"]) if obj.get("PrimaryObjective") is not None else None, "SecondaryObjective": SecondaryObjective.from_dict(obj["SecondaryObjective"]) if obj.get("SecondaryObjective") is not None else None, - "SecondaryObjectives": [SpecificObjective.from_dict(_item) for _item in obj["SecondaryObjectives"]] if obj.get("SecondaryObjectives") is not None else None, - "TimelineSegments": [TimelineSegment.from_dict(_item) for _item in obj["TimelineSegments"]] if obj.get("TimelineSegments") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "SecondaryObjectives": ( [SpecificObjective.from_dict(_item) for _item in obj.get("SecondaryObjectives", [])] if obj.get("SecondaryObjectives") is not None else None), + "TimelineSegments": ( [TimelineSegment.from_dict(_item) for _item in obj.get("TimelineSegments", [])] if obj.get("TimelineSegments") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/open_api_definitions.py b/cyperf/models/open_api_definitions.py index 2299499..4f9f5f9 100644 --- a/cyperf/models/open_api_definitions.py +++ b/cyperf/models/open_api_definitions.py @@ -20,8 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,7 +29,7 @@ class OpenAPIDefinitions(BaseModel): """ OpenAPIDefinitions """ # noqa: E501 - open_api_definitions: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The OpenAPI definitions for CyPerf data model", alias="openApiDefinitions") + open_api_definitions: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The OpenAPI definitions for CyPerf data model", alias="openApiDefinitions") __properties: ClassVar[List[str]] = ["openApiDefinitions"] model_config = ConfigDict( @@ -93,8 +93,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "openApiDefinitions": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["openApiDefinitions"].items() + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) + for _k, _v in (obj.get("openApiDefinitions") or {}).items() ) if obj.get("openApiDefinitions") is not None else None diff --git a/cyperf/models/p1_config.py b/cyperf/models/p1_config.py index 794c68e..40f905d 100644 --- a/cyperf/models/p1_config.py +++ b/cyperf/models/p1_config.py @@ -24,7 +24,7 @@ from cyperf.models.enc_p1_algorithm import EncP1Algorithm from cyperf.models.hash_p1_algorithm import HashP1Algorithm from cyperf.models.prf_p1_algorithm import PrfP1Algorithm -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/p2_config.py b/cyperf/models/p2_config.py index 992e8b1..8340f0b 100644 --- a/cyperf/models/p2_config.py +++ b/cyperf/models/p2_config.py @@ -23,7 +23,7 @@ from cyperf.models.enc_p2_algorithm import EncP2Algorithm from cyperf.models.hash_p2_algorithm import HashP2Algorithm from cyperf.models.pfs_p2_group import PfsP2Group -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pair.py b/cyperf/models/pair.py index fbe2857..c15ebc0 100644 --- a/cyperf/models/pair.py +++ b/cyperf/models/pair.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pangp_encapsulation.py b/cyperf/models/pangp_encapsulation.py index cb1b4cc..5b09a5a 100644 --- a/cyperf/models/pangp_encapsulation.py +++ b/cyperf/models/pangp_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ESPOverUDPSettings": ESPOverUDPSettings.from_dict(obj["ESPOverUDPSettings"]) if obj.get("ESPOverUDPSettings") is not None else None, "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/pangp_settings.py b/cyperf/models/pangp_settings.py index 25915ae..591a3ef 100644 --- a/cyperf/models/pangp_settings.py +++ b/cyperf/models/pangp_settings.py @@ -26,7 +26,7 @@ from cyperf.models.pangp_encapsulation import PANGPEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -129,7 +129,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ESPProbeRetryTimeout": obj.get("ESPProbeRetryTimeout"), "ESPProbeTimeout": obj.get("ESPProbeTimeout"), "GPClientVersion": obj.get("GPClientVersion"), @@ -138,7 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PANGPEncapsulation": PANGPEncapsulation.from_dict(obj["PANGPEncapsulation"]) if obj.get("PANGPEncapsulation") is not None else None, "PortalHostname": obj.get("PortalHostname"), "VPNGateway": obj.get("VPNGateway"), - "VPNGateways": obj.get("VPNGateways") + "VPNGateways": obj.get("VPNGateways") if obj.get("VPNGateways") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/param_metadata.py b/cyperf/models/param_metadata.py index 8fbe62d..c40caf4 100644 --- a/cyperf/models/param_metadata.py +++ b/cyperf/models/param_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info.py b/cyperf/models/param_metadata_type_info.py index 0526790..904eb3e 100644 --- a/cyperf/models/param_metadata_type_info.py +++ b/cyperf/models/param_metadata_type_info.py @@ -24,7 +24,7 @@ from cyperf.models.param_metadata_type_info_int import ParamMetadataTypeInfoInt from cyperf.models.param_metadata_type_info_media import ParamMetadataTypeInfoMedia from cyperf.models.param_metadata_type_info_string import ParamMetadataTypeInfoString -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_array_v2.py b/cyperf/models/param_metadata_type_info_array_v2.py index 059cf09..91df78c 100644 --- a/cyperf/models/param_metadata_type_info_array_v2.py +++ b/cyperf/models/param_metadata_type_info_array_v2.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.param_metadata_type_info_array_v2_elements_inner import ParamMetadataTypeInfoArrayV2ElementsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "elements": [ParamMetadataTypeInfoArrayV2ElementsInner.from_dict(_item) for _item in obj["elements"]] if obj.get("elements") is not None else None + "elements": ( [ParamMetadataTypeInfoArrayV2ElementsInner.from_dict(_item) for _item in obj.get("elements", [])] if obj.get("elements") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py index 5ec94f6..5192ef2 100644 --- a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py +++ b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_int.py b/cyperf/models/param_metadata_type_info_int.py index d12e3ff..36141a0 100644 --- a/cyperf/models/param_metadata_type_info_int.py +++ b/cyperf/models/param_metadata_type_info_int.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_media.py b/cyperf/models/param_metadata_type_info_media.py index b484347..c318bcd 100644 --- a/cyperf/models/param_metadata_type_info_media.py +++ b/cyperf/models/param_metadata_type_info_media.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_string.py b/cyperf/models/param_metadata_type_info_string.py index bed3618..f0e606a 100644 --- a/cyperf/models/param_metadata_type_info_string.py +++ b/cyperf/models/param_metadata_type_info_string.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_type.py b/cyperf/models/param_type.py index 31c947c..0932def 100644 --- a/cyperf/models/param_type.py +++ b/cyperf/models/param_type.py @@ -38,6 +38,7 @@ class ParamType(str, Enum): MEDIAPROFILE = 'MediaProfile' RANGE = 'range' INT = 'int' + STATS_MINUS_PROFILE = 'stats-profile' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index a30f21b..2ff1f01 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.parameter_metadata import ParameterMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -109,16 +109,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "DefaultArrayElements": obj.get("DefaultArrayElements"), + "DefaultArrayElements": obj.get("DefaultArrayElements") if obj.get("DefaultArrayElements") is not None else [], "DefaultSource": obj.get("DefaultSource"), "DefaultValue": obj.get("DefaultValue"), "ElementType": obj.get("ElementType"), "Metadata": ParameterMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, - "Sources": obj.get("Sources"), + "Sources": obj.get("Sources") if obj.get("Sources") is not None else [], "Type": obj.get("Type"), "field": obj.get("field"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "operator": obj.get("operator"), "queryParam": obj.get("queryParam") , diff --git a/cyperf/models/parameter_match.py b/cyperf/models/parameter_match.py index 308356e..5d419bf 100644 --- a/cyperf/models/parameter_match.py +++ b/cyperf/models/parameter_match.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.regex_match import RegexMatch -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "MatchLocation": obj.get("MatchLocation"), + "MatchLocation": obj.get("MatchLocation") if obj.get("MatchLocation") is not None else [], "MatchType": obj.get("MatchType"), "RegexMatch": RegexMatch.from_dict(obj["RegexMatch"]) if obj.get("RegexMatch") is not None else None , diff --git a/cyperf/models/parameter_meta.py b/cyperf/models/parameter_meta.py new file mode 100644 index 0000000..7219a69 --- /dev/null +++ b/cyperf/models/parameter_meta.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.parameter_match import ParameterMatch +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ParameterMeta(BaseModel): + """ + ParameterMeta + """ # noqa: E501 + matches: Optional[List[ParameterMatch]] = Field(default=None, alias="Matches") + name: Optional[StrictStr] = Field(default=None, alias="Name") + __properties: ClassVar[List[str]] = ["Matches", "Name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ParameterMeta from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + _items = [] + if self.matches: + for _item in self.matches: + if _item: + _items.append(_item.to_dict()) + _dict['Matches'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ParameterMeta from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Matches": ( [ParameterMatch.from_dict(_item) for _item in obj.get("Matches", [])] if obj.get("Matches") is not None else None), + "Name": obj.get("Name") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index b8d259f..8dabe11 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -23,8 +23,9 @@ from cyperf.models.api_link import APILink from cyperf.models.enum import Enum from cyperf.models.payload_metadata import PayloadMetadata +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.type_info_metadata import TypeInfoMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -43,13 +44,14 @@ class ParameterMetadata(BaseModel): legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent parameters", alias="LegacyNames") mandatory: Optional[StrictBool] = Field(default=None, description="The mandatory status of the parameter", alias="Mandatory") payload: Optional[PayloadMetadata] = Field(default=None, alias="Payload") + playlist: Optional[PlaylistMetadata] = Field(default=None, alias="Playlist") readonly: Optional[StrictBool] = Field(default=None, description="The read-only status of the parameter", alias="Readonly") shared: Optional[StrictBool] = Field(default=None, description="The shared status of the parameter", alias="Shared") type: Optional[StrictStr] = Field(default=None, description="The type of the parameter", alias="Type") type_info: Optional[TypeInfoMetadata] = Field(default=None, alias="TypeInfo") unique_value: Optional[StrictBool] = Field(default=None, description="If true, the value of this parameter must be unique across all Applications/Actions", alias="UniqueValue") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Category", "CategoryIndex", "Default", "Description", "DisplayName", "Enum", "FlowIdentifier", "Input", "LegacyNames", "Mandatory", "Payload", "Readonly", "Shared", "Type", "TypeInfo", "UniqueValue", "links"] + __properties: ClassVar[List[str]] = ["Category", "CategoryIndex", "Default", "Description", "DisplayName", "Enum", "FlowIdentifier", "Input", "LegacyNames", "Mandatory", "Payload", "Playlist", "Readonly", "Shared", "Type", "TypeInfo", "UniqueValue", "links"] model_config = ConfigDict( populate_by_name=True, @@ -96,6 +98,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of payload if self.payload: _dict['Payload'] = self.payload.to_dict() + # override the default output from pydantic by calling `to_dict()` of playlist + if self.playlist: + _dict['Playlist'] = self.playlist.to_dict() # override the default output from pydantic by calling `to_dict()` of type_info if self.type_info: _dict['TypeInfo'] = self.type_info.to_dict() @@ -128,15 +133,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Enum": Enum.from_dict(obj["Enum"]) if obj.get("Enum") is not None else None, "FlowIdentifier": obj.get("FlowIdentifier"), "Input": obj.get("Input"), - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "Mandatory": obj.get("Mandatory"), "Payload": PayloadMetadata.from_dict(obj["Payload"]) if obj.get("Payload") is not None else None, + "Playlist": PlaylistMetadata.from_dict(obj["Playlist"]) if obj.get("Playlist") is not None else None, "Readonly": obj.get("Readonly"), "Shared": obj.get("Shared"), "Type": obj.get("Type"), "TypeInfo": TypeInfoMetadata.from_dict(obj["TypeInfo"]) if obj.get("TypeInfo") is not None else None, "UniqueValue": obj.get("UniqueValue"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/params.py b/cyperf/models/params.py index 24d4305..8c5c131 100644 --- a/cyperf/models/params.py +++ b/cyperf/models/params.py @@ -25,7 +25,7 @@ from cyperf.models.media_file import MediaFile from cyperf.models.param_metadata import ParamMetadata from cyperf.models.params_enum import ParamsEnum -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -139,7 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ArrayElementType": obj.get("ArrayElementType"), - "ArrayElements": obj.get("ArrayElements"), + "ArrayElements": obj.get("ArrayElements") if obj.get("ArrayElements") is not None else [], "Category": obj.get("Category"), "CategoryIndex": obj.get("CategoryIndex"), "DeprecatedPreviousSource": obj.get("DeprecatedPreviousSource"), @@ -150,18 +150,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "FlowIdentifier": obj.get("FlowIdentifier"), "IsDeprecated": obj.get("IsDeprecated"), "IsModified": obj.get("IsModified"), - "MediaFiles": [MediaFile.from_dict(_item) for _item in obj["MediaFiles"]] if obj.get("MediaFiles") is not None else None, + "MediaFiles": ( [MediaFile.from_dict(_item) for _item in obj.get("MediaFiles", [])] if obj.get("MediaFiles") is not None else None), "Metadata": ParamMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "ParamId": obj.get("ParamId"), "Readonly": obj.get("Readonly"), "Source": obj.get("Source"), - "SupportedSources": obj.get("SupportedSources"), + "SupportedSources": obj.get("SupportedSources") if obj.get("SupportedSources") is not None else [], "Type": obj.get("Type"), "Value": obj.get("Value"), - "file-upload": obj.get("file-upload"), + "file-upload": obj.get("file-upload") if obj.get("file-upload") is not None else [], "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "supportsDynamicPayload": obj.get("supportsDynamicPayload"), "uploadURL": obj.get("uploadURL") , diff --git a/cyperf/models/params_enum.py b/cyperf/models/params_enum.py index 74c603e..8f409e5 100644 --- a/cyperf/models/params_enum.py +++ b/cyperf/models/params_enum.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.choice import Choice -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Choices": [Choice.from_dict(_item) for _item in obj["Choices"]] if obj.get("Choices") is not None else None + "Choices": ( [Choice.from_dict(_item) for _item in obj.get("Choices", [])] if obj.get("Choices") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/payload_meta.py b/cyperf/models/payload_meta.py index 82e20b2..62ad58a 100644 --- a/cyperf/models/payload_meta.py +++ b/cyperf/models/payload_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/payload_metadata.py b/cyperf/models/payload_metadata.py index 86da169..ff6c423 100644 --- a/cyperf/models/payload_metadata.py +++ b/cyperf/models/payload_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pep_dut.py b/cyperf/models/pep_dut.py index e43b9d3..d5b69c0 100644 --- a/cyperf/models/pep_dut.py +++ b/cyperf/models/pep_dut.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.params import Params from cyperf.models.simulated_id_p import SimulatedIdP -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -50,8 +50,8 @@ def hostname_suffix_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('pep_host') @@ -60,8 +60,8 @@ def pep_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( @@ -141,7 +141,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthMethod": Params.from_dict(obj["AuthMethod"]) if obj.get("AuthMethod") is not None else None, - "AuthProfileParams": [Params.from_dict(_item) for _item in obj["AuthProfileParams"]] if obj.get("AuthProfileParams") is not None else None, + "AuthProfileParams": ( [Params.from_dict(_item) for _item in obj.get("AuthProfileParams", [])] if obj.get("AuthProfileParams") is not None else None), "AuthProfileType": obj.get("AuthProfileType"), "HostnameSuffix": obj.get("HostnameSuffix"), "IDPType": Params.from_dict(obj["IDPType"]) if obj.get("IDPType") is not None else None, @@ -149,7 +149,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PEPHost": obj.get("PEPHost"), "PEPPort": obj.get("PEPPort"), "SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/playlist_metadata.py b/cyperf/models/playlist_metadata.py new file mode 100644 index 0000000..13effc1 --- /dev/null +++ b/cyperf/models/playlist_metadata.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class PlaylistMetadata(BaseModel): + """ + PlaylistMetadata + """ # noqa: E501 + column: Optional[StrictStr] = Field(default=None, description="The selected column", alias="Column") + file_name: Optional[StrictStr] = Field(default=None, description="The path of the file", alias="FileName") + __properties: ClassVar[List[str]] = ["Column", "FileName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlaylistMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlaylistMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Column": obj.get("Column"), + "FileName": obj.get("FileName") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/plugin.py b/cyperf/models/plugin.py index 8d0013f..8720947 100644 --- a/cyperf/models/plugin.py +++ b/cyperf/models/plugin.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), - "keys": obj.get("keys"), + "keys": obj.get("keys") if obj.get("keys") is not None else [], "name": obj.get("name"), "version": obj.get("version") , diff --git a/cyperf/models/plugin_stats.py b/cyperf/models/plugin_stats.py index 3514522..7cb0ed8 100644 --- a/cyperf/models/plugin_stats.py +++ b/cyperf/models/plugin_stats.py @@ -20,8 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class PluginStats(BaseModel): PluginStats """ # noqa: E501 plugin: Optional[StrictStr] = Field(default=None, description="The name of the plugin") - stats: Optional[List[Dict[str, AttackMetadataKeywordsInner]]] = Field(default=None, description="The statistics to be ingested") + stats: Optional[List[Dict[str, AppsecAppMetadataKeywordsInner]]] = Field(default=None, description="The statistics to be ingested") version: Optional[StrictStr] = Field(default=None, description="The version of the plugin") __properties: ClassVar[List[str]] = ["plugin", "stats", "version"] @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "plugin": obj.get("plugin"), - "stats": [Dict[str, AttackMetadataKeywordsInner].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": ( [Dict.from_dict(_item) for _item in obj.get("stats", [])] if obj.get("stats") is not None else None), "version": obj.get("version") , "links": obj.get("links") diff --git a/cyperf/models/port.py b/cyperf/models/port.py index a1e9c61..477f923 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -35,8 +35,9 @@ class Port(BaseModel): reserved_by: Optional[StrictStr] = Field(default=None, description="The owner of the port", alias="reservedBy") speed: Optional[StrictStr] = Field(default=None, description="The port's speed") status: Optional[StrictStr] = Field(default=None, description="The current status of the port: ready or not ready") + tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags") traffic_status: Optional[StrictStr] = Field(default=None, description="The traffic status of the port", alias="trafficStatus") - __properties: ClassVar[List[str]] = ["disabled", "id", "link", "name", "reservedBy", "speed", "status", "trafficStatus"] + __properties: ClassVar[List[str]] = ["disabled", "id", "link", "name", "reservedBy", "speed", "status", "tags", "trafficStatus"] model_config = ConfigDict( populate_by_name=True, @@ -98,6 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reservedBy": obj.get("reservedBy"), "speed": obj.get("speed"), "status": obj.get("status"), + "tags": obj.get("tags") if obj.get("tags") is not None else [], "trafficStatus": obj.get("trafficStatus") , "links": obj.get("links") diff --git a/cyperf/models/port_settings.py b/cyperf/models/port_settings.py index 7c85a4d..9893c6c 100644 --- a/cyperf/models/port_settings.py +++ b/cyperf/models/port_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.effective_ports import EffectivePorts -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ForwardProxyPort": obj.get("ForwardProxyPort"), "Readonly": obj.get("Readonly"), "ServerListenPort": obj.get("ServerListenPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/ports_by_controller.py b/cyperf/models/ports_by_controller.py index d994704..f6c398c 100644 --- a/cyperf/models/ports_by_controller.py +++ b/cyperf/models/ports_by_controller.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_node import PortsByNode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": [PortsByNode.from_dict(_item) for _item in obj["computeNodes"]] if obj.get("computeNodes") is not None else None, + "computeNodes": ( [PortsByNode.from_dict(_item) for _item in obj.get("computeNodes", [])] if obj.get("computeNodes") is not None else None), "controllerId": obj.get("controllerId") , "links": obj.get("links") diff --git a/cyperf/models/ports_by_node.py b/cyperf/models/ports_by_node.py index e8c8d69..a67dbb8 100644 --- a/cyperf/models/ports_by_node.py +++ b/cyperf/models/ports_by_node.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "computeNodeId": obj.get("computeNodeId"), - "ports": obj.get("ports") + "ports": obj.get("ports") if obj.get("ports") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/prepare_test_operation.py b/cyperf/models/prepare_test_operation.py index 0a6045c..d9f44e9 100644 --- a/cyperf/models/prepare_test_operation.py +++ b/cyperf/models/prepare_test_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.prepared_test_options import PreparedTestOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/prepared_test_options.py b/cyperf/models/prepared_test_options.py index e170377..e6704ce 100644 --- a/cyperf/models/prepared_test_options.py +++ b/cyperf/models/prepared_test_options.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/protected_subnet_config.py b/cyperf/models/protected_subnet_config.py index f6b542a..d15bc22 100644 --- a/cyperf/models/protected_subnet_config.py +++ b/cyperf/models/protected_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/quic_profile.py b/cyperf/models/quic_profile.py new file mode 100644 index 0000000..4aaf820 --- /dev/null +++ b/cyperf/models/quic_profile.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.quic_version import QUICVersion +from cyperf.models.tls_profile import TLSProfile +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class QUICProfile(BaseModel): + """ + QUICProfile + """ # noqa: E501 + client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") + min_rto: Optional[StrictInt] = Field(default=None, alias="MinRTO") + name: Optional[StrictStr] = Field(default=None, description="The name of the QUIC profile.", alias="Name") + quic_version: Optional[QUICVersion] = Field(default=None, alias="QUICVersion") + rx_buffer: Optional[StrictInt] = Field(default=None, alias="RxBuffer") + server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["ClientTLSProfile", "MinRTO", "Name", "QUICVersion", "RxBuffer", "ServerTLSProfile", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QUICProfile from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of client_tls_profile + if self.client_tls_profile: + _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_tls_profile + if self.server_tls_profile: + _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QUICProfile from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, + "MinRTO": obj.get("MinRTO"), + "Name": obj.get("Name"), + "QUICVersion": obj.get("QUICVersion"), + "RxBuffer": obj.get("RxBuffer"), + "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/quic_version.py b/cyperf/models/quic_version.py new file mode 100644 index 0000000..6ae4dbb --- /dev/null +++ b/cyperf/models/quic_version.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class QUICVersion(str, Enum): + """ + QUICVersion + """ + + """ + allowed enum values + """ + Q043 = 'Q043' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of QUICVersion from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/reboot_operation_input.py b/cyperf/models/reboot_operation_input.py index 850474f..82a8e65 100644 --- a/cyperf/models/reboot_operation_input.py +++ b/cyperf/models/reboot_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_to_be_rebooted import AgentToBeRebooted -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agents": [AgentToBeRebooted.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None, + "agents": ( [AgentToBeRebooted.from_dict(_item) for _item in obj.get("agents", [])] if obj.get("agents") is not None else None), "softReboot": obj.get("softReboot") , "links": obj.get("links") diff --git a/cyperf/models/reboot_ports_operation.py b/cyperf/models/reboot_ports_operation.py index 7f870ae..d6d49a2 100644 --- a/cyperf/models/reboot_ports_operation.py +++ b/cyperf/models/reboot_ports_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/reference.py b/cyperf/models/reference.py index bd63783..bb39ae6 100644 --- a/cyperf/models/reference.py +++ b/cyperf/models/reference.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/regex_match.py b/cyperf/models/regex_match.py index f84aa53..4e01819 100644 --- a/cyperf/models/regex_match.py +++ b/cyperf/models/regex_match.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Patterns": obj.get("Patterns") + "Patterns": obj.get("Patterns") if obj.get("Patterns") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/release_operation_input.py b/cyperf/models/release_operation_input.py index f1c8d74..934b5ad 100644 --- a/cyperf/models/release_operation_input.py +++ b/cyperf/models/release_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_release import AgentRelease -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentsData": [AgentRelease.from_dict(_item) for _item in obj["agentsData"]] if obj.get("agentsData") is not None else None, + "agentsData": ( [AgentRelease.from_dict(_item) for _item in obj.get("agentsData", [])] if obj.get("agentsData") is not None else None), "sessionId": obj.get("sessionId") , "links": obj.get("links") diff --git a/cyperf/models/remote_access.py b/cyperf/models/remote_access.py index 0f5f405..13de408 100644 --- a/cyperf/models/remote_access.py +++ b/cyperf/models/remote_access.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/remote_subnet_config.py b/cyperf/models/remote_subnet_config.py index 93eb250..b9e55d1 100644 --- a/cyperf/models/remote_subnet_config.py +++ b/cyperf/models/remote_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/rename_input.py b/cyperf/models/rename_input.py index f74da1b..639a343 100644 --- a/cyperf/models/rename_input.py +++ b/cyperf/models/rename_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reorder_action_input.py b/cyperf/models/reorder_action_input.py index 256897b..fdae1f1 100644 --- a/cyperf/models/reorder_action_input.py +++ b/cyperf/models/reorder_action_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reorder_exchanges_input.py b/cyperf/models/reorder_exchanges_input.py index c01037e..70b8c41 100644 --- a/cyperf/models/reorder_exchanges_input.py +++ b/cyperf/models/reorder_exchanges_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.exchange_order import ExchangeOrder -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionName": obj.get("ActionName"), - "ExchangesOrder": [ExchangeOrder.from_dict(_item) for _item in obj["ExchangesOrder"]] if obj.get("ExchangesOrder") is not None else None, + "ExchangesOrder": ( [ExchangeOrder.from_dict(_item) for _item in obj.get("ExchangesOrder", [])] if obj.get("ExchangesOrder") is not None else None), "FlowIdx": obj.get("FlowIdx") , "links": obj.get("links") diff --git a/cyperf/models/replay_capture.py b/cyperf/models/replay_capture.py index 70e2c80..3af9a03 100644 --- a/cyperf/models/replay_capture.py +++ b/cyperf/models/replay_capture.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.app_flow import AppFlow -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,9 +111,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "flows": [AppFlow.from_dict(_item) for _item in obj["flows"]] if obj.get("flows") is not None else None, + "flows": ( [AppFlow.from_dict(_item) for _item in obj.get("flows", [])] if obj.get("flows") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") diff --git a/cyperf/models/required_file_types.py b/cyperf/models/required_file_types.py index 5ff6c0f..14be112 100644 --- a/cyperf/models/required_file_types.py +++ b/cyperf/models/required_file_types.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reserve_operation_input.py b/cyperf/models/reserve_operation_input.py index 95f4ce7..0364b1b 100644 --- a/cyperf/models/reserve_operation_input.py +++ b/cyperf/models/reserve_operation_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_reservation import AgentReservation from cyperf.models.payload_meta import PayloadMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -106,13 +106,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentsData": [AgentReservation.from_dict(_item) for _item in obj["agentsData"]] if obj.get("agentsData") is not None else None, + "agentsData": ( [AgentReservation.from_dict(_item) for _item in obj.get("agentsData", [])] if obj.get("agentsData") is not None else None), "force": obj.get("force"), "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "payloads": dict( (_k, PayloadMeta.from_dict(_v)) - for _k, _v in obj["payloads"].items() + for _k, _v in (obj.get("payloads") or {}).items() ) if obj.get("payloads") is not None else None, diff --git a/cyperf/models/result_file_metadata.py b/cyperf/models/result_file_metadata.py index 453f525..1a8ea37 100644 --- a/cyperf/models/result_file_metadata.py +++ b/cyperf/models/result_file_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index 2de2c91..294b5c2 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.marked_as_deleted import MarkedAsDeleted from cyperf.models.result_file_metadata import ResultFileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -47,6 +47,7 @@ class ResultMetadata(BaseModel): owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user who owns the result", alias="ownerId") pdf_url: Optional[StrictStr] = Field(default=None, description="The URL of the cached pdf report", alias="pdfURL") pinned: Optional[StrictBool] = Field(default=None, description="A flag that indicates if the result's configuration is pinned") + report_types: Optional[List[StrictStr]] = Field(default=None, description="The report types supported for the result", alias="reportTypes") reporting_links: Optional[List[APILink]] = Field(default=None, description="A list of links to result reporting resources", alias="reportingLinks") result_url: Optional[StrictStr] = Field(default=None, description="The URL of the result", alias="resultUrl") start_time: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was started", alias="startTime") @@ -54,7 +55,7 @@ class ResultMetadata(BaseModel): test_name: Optional[StrictStr] = Field(default=None, description="The name of the test associated with the result", alias="testName") type: Optional[StrictStr] = Field(default=None, description="The application type of the result") user_tags: Optional[List[StrictStr]] = Field(default=None, description="The list of user defined tags", alias="userTags") - __properties: ClassVar[List[str]] = ["activeSession", "configUrl", "csvURL", "displayName", "download-all", "download-diagnostic", "endTime", "files", "id", "lastModified", "links", "markedAsDeleted", "owner", "ownerId", "pdfURL", "pinned", "reportingLinks", "resultUrl", "startTime", "tags", "testName", "type", "userTags"] + __properties: ClassVar[List[str]] = ["activeSession", "configUrl", "csvURL", "displayName", "download-all", "download-diagnostic", "endTime", "files", "id", "lastModified", "links", "markedAsDeleted", "owner", "ownerId", "pdfURL", "pinned", "reportTypes", "reportingLinks", "resultUrl", "startTime", "tags", "testName", "type", "userTags"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +95,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "config_url", @@ -101,6 +103,7 @@ def to_dict(self) -> Dict[str, Any]: "last_modified", "owner", "owner_id", + "report_types", "result_url", "start_time", "type", @@ -166,22 +169,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "download-all": obj.get("download-all"), "download-diagnostic": obj.get("download-diagnostic"), "endTime": obj.get("endTime"), - "files": [ResultFileMetadata.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None, + "files": ( [ResultFileMetadata.from_dict(_item) for _item in obj.get("files", [])] if obj.get("files") is not None else None), "id": obj.get("id"), "lastModified": obj.get("lastModified"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "markedAsDeleted": MarkedAsDeleted.from_dict(obj["markedAsDeleted"]) if obj.get("markedAsDeleted") is not None else None, "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "pdfURL": obj.get("pdfURL"), "pinned": obj.get("pinned"), - "reportingLinks": [APILink.from_dict(_item) for _item in obj["reportingLinks"]] if obj.get("reportingLinks") is not None else None, + "reportTypes": obj.get("reportTypes") if obj.get("reportTypes") is not None else [], + "reportingLinks": ( [APILink.from_dict(_item) for _item in obj.get("reportingLinks", [])] if obj.get("reportingLinks") is not None else None), "resultUrl": obj.get("resultUrl"), "startTime": obj.get("startTime"), "tags": obj.get("tags"), "testName": obj.get("testName"), "type": obj.get("type"), - "userTags": obj.get("userTags") + "userTags": obj.get("userTags") if obj.get("userTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/results_group.py b/cyperf/models/results_group.py index f7c8e0d..a128e00 100644 --- a/cyperf/models/results_group.py +++ b/cyperf/models/results_group.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), - "Results": obj.get("Results") + "Results": obj.get("Results") if obj.get("Results") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/rtp_profile.py b/cyperf/models/rtp_profile.py index 8a9fbb2..994ab59 100644 --- a/cyperf/models/rtp_profile.py +++ b/cyperf/models/rtp_profile.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from cyperf.models.mos_mode import MosMode from cyperf.models.rtp_encryption_mode import RTPEncryptionMode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/rtp_profile_meta.py b/cyperf/models/rtp_profile_meta.py index 27c910b..f476a13 100644 --- a/cyperf/models/rtp_profile_meta.py +++ b/cyperf/models/rtp_profile_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/save_config_operation.py b/cyperf/models/save_config_operation.py index 30e7f8d..8f94e01 100644 --- a/cyperf/models/save_config_operation.py +++ b/cyperf/models/save_config_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/scenario.py b/cyperf/models/scenario.py index 91ff912..3ecf696 100644 --- a/cyperf/models/scenario.py +++ b/cyperf/models/scenario.py @@ -28,7 +28,8 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.quic_profile import QUICProfile +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -39,6 +40,7 @@ class Scenario(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -49,6 +51,7 @@ class Scenario(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -60,12 +63,13 @@ class Scenario(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -119,6 +123,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -146,6 +153,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -170,32 +180,35 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/secondary_objective.py b/cyperf/models/secondary_objective.py index 3a939fe..f6eddc0 100644 --- a/cyperf/models/secondary_objective.py +++ b/cyperf/models/secondary_objective.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from cyperf.models.objective_type import ObjectiveType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -35,7 +35,7 @@ class SecondaryObjective(BaseModel): max_simulated_users_per_interval: Optional[StrictInt] = Field(default=None, description="Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit)", alias="MaxSimulatedUsersPerInterval") objective_unit: StrictStr = Field(description="The objective's unit.", alias="ObjectiveUnit") objective_value: Union[StrictFloat, StrictInt] = Field(description="The value of the secondary objective. This value will be used for the whole duration of the test.", alias="ObjectiveValue") - type: ObjectiveType = Field(description="The objective's type (default: SimulatedUsers).", alias="Type") + type: ObjectiveType = Field(alias="Type") __properties: ClassVar[List[str]] = ["Enabled", "MaxPendingSimulatedUsers", "MaxSimulatedUsersPerInterval", "ObjectiveUnit", "ObjectiveValue", "Type"] @field_validator('max_pending_simulated_users') diff --git a/cyperf/models/selected_env.py b/cyperf/models/selected_env.py index c6fc348..5ef9db3 100644 --- a/cyperf/models/selected_env.py +++ b/cyperf/models/selected_env.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.interface import Interface -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "SessionID": obj.get("SessionID"), - "TestInterface": [Interface.from_dict(_item) for _item in obj["TestInterface"]] if obj.get("TestInterface") is not None else None, + "TestInterface": ( [Interface.from_dict(_item) for _item in obj.get("TestInterface", [])] if obj.get("TestInterface") is not None else None), "Token": obj.get("Token") , "links": obj.get("links") diff --git a/cyperf/models/session.py b/cyperf/models/session.py index cf10b1d..6632afc 100644 --- a/cyperf/models/session.py +++ b/cyperf/models/session.py @@ -24,7 +24,7 @@ from cyperf.models.appsec_config import AppsecConfig from cyperf.models.pair import Pair from cyperf.models.test_info import TestInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -147,8 +147,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "index": obj.get("index"), "lastVisited": obj.get("lastVisited"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "meta": [Pair.from_dict(_item) for _item in obj["meta"]] if obj.get("meta") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "meta": ( [Pair.from_dict(_item) for _item in obj.get("meta", [])] if obj.get("meta") is not None else None), "name": obj.get("name"), "owner": obj.get("owner"), "ownerID": obj.get("ownerID"), diff --git a/cyperf/models/set_aggregation_mode_operation.py b/cyperf/models/set_aggregation_mode_operation.py index b657002..ddf817a 100644 --- a/cyperf/models/set_aggregation_mode_operation.py +++ b/cyperf/models/set_aggregation_mode_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.nodes_by_controller import NodesByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "aggregated": obj.get("aggregated"), - "controllers": [NodesByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/set_app_operation.py b/cyperf/models/set_app_operation.py index bc1a977..134363b 100644 --- a/cyperf/models/set_app_operation.py +++ b/cyperf/models/set_app_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -87,7 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "appId": obj.get("appId"), - "controllers": obj.get("controllers"), + "controllers": obj.get("controllers") if obj.get("controllers") is not None else [], "force": obj.get("force") , "links": obj.get("links") diff --git a/cyperf/models/set_controller_app_operation.py b/cyperf/models/set_controller_app_operation.py new file mode 100644 index 0000000..c98904d --- /dev/null +++ b/cyperf/models/set_controller_app_operation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SetControllerAppOperation(BaseModel): + """ + SetControllerAppOperation + """ # noqa: E501 + app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the controllers.", alias="appId") + controllers: Optional[List[StrictStr]] = Field(default=None, description="The controller ids for which to activate the app.") + force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") + __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetControllerAppOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetControllerAppOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "appId": obj.get("appId"), + "controllers": obj.get("controllers") if obj.get("controllers") is not None else [], + "force": obj.get("force") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/set_dpdk_mode_operation_input.py b/cyperf/models/set_dpdk_mode_operation_input.py index 3ad8656..f823c87 100644 --- a/cyperf/models/set_dpdk_mode_operation_input.py +++ b/cyperf/models/set_dpdk_mode_operation_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentIds": obj.get("agentIds"), + "agentIds": obj.get("agentIds") if obj.get("agentIds") is not None else [], "enabled": obj.get("enabled") , "links": obj.get("links") diff --git a/cyperf/models/set_link_state_operation.py b/cyperf/models/set_link_state_operation.py index e989533..f5eaa24 100644 --- a/cyperf/models/set_link_state_operation.py +++ b/cyperf/models/set_link_state_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), "link": obj.get("link") , "links": obj.get("links") diff --git a/cyperf/models/set_nodes_app_operation.py b/cyperf/models/set_nodes_app_operation.py new file mode 100644 index 0000000..7975d63 --- /dev/null +++ b/cyperf/models/set_nodes_app_operation.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.nodes_by_controller import NodesByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SetNodesAppOperation(BaseModel): + """ + SetNodesAppOperation + """ # noqa: E501 + app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the compute nodes.", alias="appId") + controllers: Optional[List[NodesByController]] = Field(default=None, description="The controllers that the compute nodes are part of.") + force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") + __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetNodesAppOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetNodesAppOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "appId": obj.get("appId"), + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), + "force": obj.get("force") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/set_ntp_operation_input.py b/cyperf/models/set_ntp_operation_input.py index ad99574..093bd3e 100644 --- a/cyperf/models/set_ntp_operation_input.py +++ b/cyperf/models/set_ntp_operation_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -85,8 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentIds": obj.get("agentIds"), - "servers": obj.get("servers") + "agentIds": obj.get("agentIds") if obj.get("agentIds") is not None else [], + "servers": obj.get("servers") if obj.get("servers") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/simulated_id_p.py b/cyperf/models/simulated_id_p.py index ca05860..52f7ddf 100644 --- a/cyperf/models/simulated_id_p.py +++ b/cyperf/models/simulated_id_p.py @@ -24,7 +24,7 @@ from cyperf.models.cert_config import CertConfig from cyperf.models.id_p_signature_algo import IdPSignatureAlgo from cyperf.models.name_id_format import NameIdFormat -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -113,8 +113,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ResponseSignature": obj.get("ResponseSignature"), "SignatureAlgorithm": obj.get("SignatureAlgorithm"), "SingleSignOnURL": obj.get("SingleSignOnURL"), - "XMLMetadata": obj.get("XMLMetadata"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "XMLMetadata": obj.get("XMLMetadata") if obj.get("XMLMetadata") is not None else [], + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/snapshot.py b/cyperf/models/snapshot.py index 34a4c6f..7dfd64c 100644 --- a/cyperf/models/snapshot.py +++ b/cyperf/models/snapshot.py @@ -20,8 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class Snapshot(BaseModel): Snapshot """ # noqa: E501 timestamp: Optional[StrictInt] = Field(default=None, description="The Unix timestamp in milliseconds at which the snapshot was taken") - values: Optional[List[List[AttackMetadataKeywordsInner]]] = Field(default=None, description="The values of the snapshot. The order of the values corresponds to the order of columns in result.") + values: Optional[List[List[AppsecAppMetadataKeywordsInner]]] = Field(default=None, description="The values of the snapshot. The order of the values corresponds to the order of columns in result.") __properties: ClassVar[List[str]] = ["timestamp", "values"] model_config = ConfigDict( @@ -96,10 +96,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "timestamp": obj.get("timestamp"), - "values": [ - [AttackMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] - for _item in obj["values"] + "values": ( + [ + [AppsecAppMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] + for _item in obj.get("values", []) ] if obj.get("values") is not None else None + ) , "links": obj.get("links") }) diff --git a/cyperf/models/snowflake_exporter.py b/cyperf/models/snowflake_exporter.py new file mode 100644 index 0000000..f4b9cd8 --- /dev/null +++ b/cyperf/models/snowflake_exporter.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.params import Params +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SnowflakeExporter(BaseModel): + """ + SnowflakeExporter + """ # noqa: E501 + active: StrictBool = Field(description="Indicates whether the snowflake stats exporter is enabled or not.", alias="Active") + polling_interval: Optional[Annotated[int, Field(strict=True)]] = Field(default=None, description="Polling interval used for fetching and uploading data.", alias="PollingInterval") + profile: Optional[Params] = Field(default=None, description="The json snowflake profile.", alias="Profile") + server_url: StrictStr = Field(description="Snowflake endpoint used for uploading data.", alias="ServerURL") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Active", "PollingInterval", "Profile", "ServerURL", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SnowflakeExporter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of profile + if self.profile: + _dict['Profile'] = self.profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SnowflakeExporter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Active": obj.get("Active"), + "PollingInterval": obj.get("PollingInterval"), + "Profile": Params.from_dict(obj["Profile"]) if obj.get("Profile") is not None else None, + "ServerURL": obj.get("ServerURL"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/sort_body_field.py b/cyperf/models/sort_body_field.py index 56844a6..95918cd 100644 --- a/cyperf/models/sort_body_field.py +++ b/cyperf/models/sort_body_field.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/specific_objective.py b/cyperf/models/specific_objective.py index d9f246a..f4fcf17 100644 --- a/cyperf/models/specific_objective.py +++ b/cyperf/models/specific_objective.py @@ -25,7 +25,7 @@ from cyperf.models.objective_type import ObjectiveType from cyperf.models.objective_unit import ObjectiveUnit from cyperf.models.timeline_segment_union import TimelineSegmentUnion -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -36,7 +36,7 @@ class SpecificObjective(BaseModel): max_pending_simulated_users: Annotated[str, Field(strict=True)] = Field(description="Only applies if Type is SimulatedUsers. The maximum number or percentage of users that can be in the pending state (not yet connected and sending traffic) at any time. You can either specify a number or a percentage using the % sign.", alias="MaxPendingSimulatedUsers") max_simulated_users_per_interval: Optional[StrictInt] = Field(default=None, description="Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit)", alias="MaxSimulatedUsersPerInterval") timeline: Optional[List[TimelineSegmentUnion]] = Field(default=None, description="The timeline of this objective.", alias="Timeline") - type: ObjectiveType = Field(description="The objective's type (default: Throughput).", alias="Type") + type: ObjectiveType = Field(alias="Type") unit: ObjectiveUnit = Field(description="The objective's unit. Must be one of: bps or ''.", alias="Unit") id: StrictStr links: Optional[List[APILink]] = None @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "MaxPendingSimulatedUsers": obj.get("MaxPendingSimulatedUsers"), "MaxSimulatedUsersPerInterval": obj.get("MaxSimulatedUsersPerInterval"), - "Timeline": [TimelineSegmentUnion.from_dict(_item) for _item in obj["Timeline"]] if obj.get("Timeline") is not None else None, + "Timeline": ( [TimelineSegmentUnion.from_dict(_item) for _item in obj.get("Timeline", [])] if obj.get("Timeline") is not None else None), "Type": obj.get("Type"), "Unit": obj.get("Unit"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/start_agents_batch_delete_request_inner.py b/cyperf/models/start_agents_batch_delete_request_inner.py index 112c5b1..08bc785 100644 --- a/cyperf/models/start_agents_batch_delete_request_inner.py +++ b/cyperf/models/start_agents_batch_delete_request_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/stateless_stream.py b/cyperf/models/stateless_stream.py index 9fc4be7..c95337b 100644 --- a/cyperf/models/stateless_stream.py +++ b/cyperf/models/stateless_stream.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_profile import StreamProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Direction": obj.get("Direction"), "IsFloodStream": obj.get("IsFloodStream"), "ServerStreamProfile": StreamProfile.from_dict(obj["ServerStreamProfile"]) if obj.get("ServerStreamProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/static_arp_entry.py b/cyperf/models/static_arp_entry.py index 880abf0..eb05a13 100644 --- a/cyperf/models/static_arp_entry.py +++ b/cyperf/models/static_arp_entry.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -64,8 +64,8 @@ def remote_mac_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('remote_mac_incr') @@ -74,8 +74,8 @@ def remote_mac_incr_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('static_arp_entry_name') diff --git a/cyperf/models/stats_result.py b/cyperf/models/stats_result.py index 4afb232..28ceddf 100644 --- a/cyperf/models/stats_result.py +++ b/cyperf/models/stats_result.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.parameter import Parameter from cyperf.models.snapshot import Snapshot -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,10 +103,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "availableFilters": [Parameter.from_dict(_item) for _item in obj["availableFilters"]] if obj.get("availableFilters") is not None else None, - "columns": obj.get("columns"), + "availableFilters": ( [Parameter.from_dict(_item) for _item in obj.get("availableFilters", [])] if obj.get("availableFilters") is not None else None), + "columns": obj.get("columns") if obj.get("columns") is not None else [], "name": obj.get("name"), - "snapshots": [Snapshot.from_dict(_item) for _item in obj["snapshots"]] if obj.get("snapshots") is not None else None + "snapshots": ( [Snapshot.from_dict(_item) for _item in obj.get("snapshots", [])] if obj.get("snapshots") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/steady_segment.py b/cyperf/models/steady_segment.py index 93010f6..eefb510 100644 --- a/cyperf/models/steady_segment.py +++ b/cyperf/models/steady_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/step_segment.py b/cyperf/models/step_segment.py index 5146582..dc5203b 100644 --- a/cyperf/models/step_segment.py +++ b/cyperf/models/step_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/stream_payload_type.py b/cyperf/models/stream_payload_type.py index ff58c46..a25e924 100644 --- a/cyperf/models/stream_payload_type.py +++ b/cyperf/models/stream_payload_type.py @@ -29,7 +29,7 @@ class StreamPayloadType(str, Enum): """ RANDOM = 'RANDOM' PSEUDORANDOM = 'PSEUDORANDOM' - NULL = 'null' + NULL = 'NULL' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/stream_profile.py b/cyperf/models/stream_profile.py index 77b29e9..5c13d58 100644 --- a/cyperf/models/stream_profile.py +++ b/cyperf/models/stream_profile.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stream_payload_type import StreamPayloadType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/supported_group_tls13.py b/cyperf/models/supported_group_tls13.py index 7e6a8ed..6988337 100644 --- a/cyperf/models/supported_group_tls13.py +++ b/cyperf/models/supported_group_tls13.py @@ -30,23 +30,18 @@ class SupportedGroupTLS13(str, Enum): P_MINUS_256 = 'P-256' P_MINUS_384 = 'P-384' P_MINUS_521 = 'P-521' - X25519_KYBER768 = 'X25519_KYBER768' - X25519_KYBER512 = 'X25519_KYBER512' X25519_MLKEM512 = 'X25519_MLKEM512' X25519_MLKEM768 = 'X25519_MLKEM768' - KYBER768 = 'KYBER768' MLKEM768 = 'MLKEM768' - KYBER512 = 'KYBER512' MLKEM512 = 'MLKEM512' - KYBER1024 = 'KYBER1024' MLKEM1024 = 'MLKEM1024' - P384_KYBER768 = 'P384_KYBER768' - P256_KYBER512 = 'P256_KYBER512' - P384_MLKEM1024 = 'P384_MLKEM1024' + SECP384R1MLKEM1024 = 'SecP384r1MLKEM1024' X448_MLKEM768 = 'X448_MLKEM768' P384_MLKEM768 = 'P384_MLKEM768' - P256_MLKEM768 = 'P256_MLKEM768' + SECP256R1MLKEM768 = 'SecP256r1MLKEM768' P256_MLKEM512 = 'P256_MLKEM512' + X25519 = 'X25519' + P521_MLKEM1024 = 'P521_MLKEM1024' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/system_info.py b/cyperf/models/system_info.py index a1d31c5..fa85792 100644 --- a/cyperf/models/system_info.py +++ b/cyperf/models/system_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.chassis_info import ChassisInfo from cyperf.models.traffic_agent_info import TrafficAgentInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,12 +30,13 @@ class SystemInfo(BaseModel): """ SystemInfo """ # noqa: E501 + arch: Optional[StrictStr] = None chassis_info: Optional[ChassisInfo] = Field(default=None, alias="chassisInfo") kernel_version: Optional[StrictStr] = Field(default=None, alias="kernelVersion") os_name: Optional[StrictStr] = Field(default=None, alias="osName") port_manager_version: Optional[StrictStr] = Field(default=None, alias="portManagerVersion") traffic_agent_info: Optional[List[TrafficAgentInfo]] = Field(default=None, alias="trafficAgentInfo") - __properties: ClassVar[List[str]] = ["chassisInfo", "kernelVersion", "osName", "portManagerVersion", "trafficAgentInfo"] + __properties: ClassVar[List[str]] = ["arch", "chassisInfo", "kernelVersion", "osName", "portManagerVersion", "trafficAgentInfo"] model_config = ConfigDict( populate_by_name=True, @@ -71,8 +72,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "arch", "kernel_version", "os_name", "port_manager_version", @@ -108,11 +111,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "chassisInfo": ChassisInfo.from_dict(obj["chassisInfo"]) if obj.get("chassisInfo") is not None else None, + "arch": obj.get("arch"), + "chassisInfo": ChassisInfo.from_dict(obj["chassisInfo"]) if obj.get("chassisInfo") is not None else None, "kernelVersion": obj.get("kernelVersion"), "osName": obj.get("osName"), "portManagerVersion": obj.get("portManagerVersion"), - "trafficAgentInfo": [TrafficAgentInfo.from_dict(_item) for _item in obj["trafficAgentInfo"]] if obj.get("trafficAgentInfo") is not None else None + "trafficAgentInfo": ( [TrafficAgentInfo.from_dict(_item) for _item in obj.get("trafficAgentInfo", [])] if obj.get("trafficAgentInfo") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tcp_profile.py b/cyperf/models/tcp_profile.py index 7ae9833..b25d683 100644 --- a/cyperf/models/tcp_profile.py +++ b/cyperf/models/tcp_profile.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/test_info.py b/cyperf/models/test_info.py index da340ed..0a05bfd 100644 --- a/cyperf/models/test_info.py +++ b/cyperf/models/test_info.py @@ -21,7 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.dashboard import Dashboard -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.test_usage import TestUsage +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -40,7 +41,8 @@ class TestInfo(BaseModel): test_initialized: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the last test was initialized", alias="testInitialized") test_started: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was started", alias="testStarted") test_stopped: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was stopped. May be null if the test is still running.", alias="testStopped") - __properties: ClassVar[List[str]] = ["dashboards", "defaultDashboardIndex", "defaultPollingInterval", "status", "testDetails", "testDuration", "testElapsed", "testId", "testInitialized", "testStarted", "testStopped"] + test_usage: Optional[TestUsage] = Field(default=None, alias="testUsage") + __properties: ClassVar[List[str]] = ["dashboards", "defaultDashboardIndex", "defaultPollingInterval", "status", "testDetails", "testDuration", "testElapsed", "testId", "testInitialized", "testStarted", "testStopped", "testUsage"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['dashboards'] = _items + # override the default output from pydantic by calling `to_dict()` of test_usage + if self.test_usage: + _dict['testUsage'] = self.test_usage.to_dict() return _dict @classmethod @@ -104,7 +109,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "dashboards": [Dashboard.from_dict(_item) for _item in obj["dashboards"]] if obj.get("dashboards") is not None else None, + "dashboards": ( [Dashboard.from_dict(_item) for _item in obj.get("dashboards", [])] if obj.get("dashboards") is not None else None), "defaultDashboardIndex": obj.get("defaultDashboardIndex"), "defaultPollingInterval": obj.get("defaultPollingInterval"), "status": obj.get("status"), @@ -114,7 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "testId": obj.get("testId"), "testInitialized": obj.get("testInitialized"), "testStarted": obj.get("testStarted"), - "testStopped": obj.get("testStopped") + "testStopped": obj.get("testStopped"), + "testUsage": TestUsage.from_dict(obj["testUsage"]) if obj.get("testUsage") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/test_state_changed_operation.py b/cyperf/models/test_state_changed_operation.py index 2c683c8..a8a3cb6 100644 --- a/cyperf/models/test_state_changed_operation.py +++ b/cyperf/models/test_state_changed_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/test_usage.py b/cyperf/models/test_usage.py new file mode 100644 index 0000000..79a4446 --- /dev/null +++ b/cyperf/models/test_usage.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class TestUsage(BaseModel): + """ + TestUsage + """ # noqa: E501 + used_agents: Optional[List[StrictStr]] = Field(default=None, description="The agents used by the current test", alias="usedAgents") + used_licenses: Optional[Dict[str, StrictInt]] = Field(default=None, description="Feature types used by the current test and their respective counts", alias="usedLicenses") + __properties: ClassVar[List[str]] = ["usedAgents", "usedLicenses"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TestUsage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TestUsage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "usedAgents": obj.get("usedAgents") if obj.get("usedAgents") is not None else [], + "usedLicenses": obj.get("usedLicenses") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/time_value.py b/cyperf/models/time_value.py index deb09c8..a9ce3ed 100644 --- a/cyperf/models/time_value.py +++ b/cyperf/models/time_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timeline_segment.py b/cyperf/models/timeline_segment.py index eb11b37..5fec8ef 100644 --- a/cyperf/models/timeline_segment.py +++ b/cyperf/models/timeline_segment.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.objective_value_entry import ObjectiveValueEntry from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -135,8 +135,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ObjectiveValue": obj.get("ObjectiveValue"), "PrimaryObjectiveUnit": obj.get("PrimaryObjectiveUnit"), "PrimaryObjectiveValue": obj.get("PrimaryObjectiveValue"), - "SecondaryObjectiveValues": [ObjectiveValueEntry.from_dict(_item) for _item in obj["SecondaryObjectiveValues"]] if obj.get("SecondaryObjectiveValues") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "SecondaryObjectiveValues": ( [ObjectiveValueEntry.from_dict(_item) for _item in obj.get("SecondaryObjectiveValues", [])] if obj.get("SecondaryObjectiveValues") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/timeline_segment_base.py b/cyperf/models/timeline_segment_base.py index 060969c..5ab29b1 100644 --- a/cyperf/models/timeline_segment_base.py +++ b/cyperf/models/timeline_segment_base.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timeline_segment_union.py b/cyperf/models/timeline_segment_union.py index a5dd4ca..9783cd2 100644 --- a/cyperf/models/timeline_segment_union.py +++ b/cyperf/models/timeline_segment_union.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timers.py b/cyperf/models/timers.py index 9f34980..39f8da6 100644 --- a/cyperf/models/timers.py +++ b/cyperf/models/timers.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index e0db31a..7e16c99 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -25,11 +25,12 @@ from cyperf.models.cipher_tls12 import CipherTLS12 from cyperf.models.cipher_tls13 import CipherTLS13 from cyperf.models.conflict import Conflict +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.params import Params from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -46,6 +47,7 @@ class TLSProfile(BaseModel): dh_file: Optional[Params] = Field(default=None, alias="dhFile") get_tls_conflicts: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="get-tls-conflicts") _get_tls_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,GetTLSConflicts" }) + groups13: Optional[List[GroupTLS13]] = None immediate_close: Optional[StrictBool] = Field(default=None, description="The immediate FIN after close notify", alias="immediateClose") key_file: Optional[Params] = Field(default=None, description="The key file of the TLS profile.", alias="keyFile") key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS profile.", alias="keyFilePassword") @@ -66,7 +68,7 @@ class TLSProfile(BaseModel): tls13_enabled: Optional[StrictBool] = Field(default=None, alias="tls13Enabled") use_tls_profile: Optional[StrictBool] = Field(default=None, description="When disabled, the connection is not TLS secured (default: true).", alias="useTlsProfile") version: StrictStr = Field(description="The version of the TLS profile (default: NONE). Must be one of: NONE or TLSv1.2 or TLSv1.3.") - __properties: ClassVar[List[str]] = ["certificateFile", "cipher", "cipher12", "cipher13", "ciphers12", "ciphers13", "dhFile", "get-tls-conflicts", "immediateClose", "keyFile", "keyFilePassword", "links", "middleBoxEnabled", "profileId", "resolve-tls-conflicts", "sendCloseNotify", "sessionReuseCount", "sessionReuseMethod", "sessionReuseMethod12", "sessionReuseMethod13", "sniCertConfigs", "sniEnabled", "supportedGroups13", "tls12Enabled", "tls13Enabled", "useTlsProfile", "version"] + __properties: ClassVar[List[str]] = ["certificateFile", "cipher", "cipher12", "cipher13", "ciphers12", "ciphers13", "dhFile", "get-tls-conflicts", "groups13", "immediateClose", "keyFile", "keyFilePassword", "links", "middleBoxEnabled", "profileId", "resolve-tls-conflicts", "sendCloseNotify", "sessionReuseCount", "sessionReuseMethod", "sessionReuseMethod12", "sessionReuseMethod13", "sniCertConfigs", "sniEnabled", "supportedGroups13", "tls12Enabled", "tls13Enabled", "useTlsProfile", "version"] @field_validator('version') def version_validate_enum(cls, value): @@ -120,6 +122,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of dh_file if self.dh_file: _dict['dhFile'] = self.dh_file.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in groups13 (list) + _items = [] + if self.groups13: + for _item in self.groups13: + if _item: + _items.append(_item.to_dict()) + _dict['groups13'] = _items # override the default output from pydantic by calling `to_dict()` of key_file if self.key_file: _dict['keyFile'] = self.key_file.to_dict() @@ -165,20 +174,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ciphers12": obj.get("ciphers12"), "ciphers13": obj.get("ciphers13"), "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, - "get-tls-conflicts": obj.get("get-tls-conflicts"), + "get-tls-conflicts": obj.get("get-tls-conflicts") if obj.get("get-tls-conflicts") is not None else [], + "groups13": ( [GroupTLS13.from_dict(_item) for _item in obj.get("groups13", [])] if obj.get("groups13") is not None else None), "immediateClose": obj.get("immediateClose"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "middleBoxEnabled": obj.get("middleBoxEnabled"), "profileId": obj.get("profileId"), - "resolve-tls-conflicts": [Conflict.from_dict(_item) for _item in obj["resolve-tls-conflicts"]] if obj.get("resolve-tls-conflicts") is not None else None, + "resolve-tls-conflicts": ( [Conflict.from_dict(_item) for _item in obj.get("resolve-tls-conflicts", [])] if obj.get("resolve-tls-conflicts") is not None else None), "sendCloseNotify": obj.get("sendCloseNotify"), "sessionReuseCount": obj.get("sessionReuseCount"), "sessionReuseMethod": obj.get("sessionReuseMethod"), "sessionReuseMethod12": obj.get("sessionReuseMethod12"), "sessionReuseMethod13": obj.get("sessionReuseMethod13"), - "sniCertConfigs": [CertConfig.from_dict(_item) for _item in obj["sniCertConfigs"]] if obj.get("sniCertConfigs") is not None else None, + "sniCertConfigs": ( [CertConfig.from_dict(_item) for _item in obj.get("sniCertConfigs", [])] if obj.get("sniCertConfigs") is not None else None), "sniEnabled": obj.get("sniEnabled"), "supportedGroups13": obj.get("supportedGroups13"), "tls12Enabled": obj.get("tls12Enabled"), diff --git a/cyperf/models/track.py b/cyperf/models/track.py index 1bc61b6..e5d9573 100644 --- a/cyperf/models/track.py +++ b/cyperf/models/track.py @@ -23,7 +23,7 @@ from cyperf.models.action import Action from cyperf.models.api_link import APILink from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,10 +112,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [Action.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, - "add-actions": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["add-actions"]] if obj.get("add-actions") is not None else None, + "Actions": ( [Action.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), + "add-actions": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("add-actions", [])] if obj.get("add-actions") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/traffic_agent_info.py b/cyperf/models/traffic_agent_info.py index b2b774f..3f192dc 100644 --- a/cyperf/models/traffic_agent_info.py +++ b/cyperf/models/traffic_agent_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index d3a0ed7..e480756 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.traffic_settings import TrafficSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -32,9 +32,10 @@ class TrafficProfileBase(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] model_config = ConfigDict( populate_by_name=True, @@ -101,8 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/traffic_settings.py b/cyperf/models/traffic_settings.py index 4761640..20f6d66 100644 --- a/cyperf/models/traffic_settings.py +++ b/cyperf/models/traffic_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.transport_profile import TransportProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DefaultTransportProfile": TransportProfile.from_dict(obj["DefaultTransportProfile"]) if obj.get("DefaultTransportProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/transport_profile.py b/cyperf/models/transport_profile.py index 5b14cb0..e967b52 100644 --- a/cyperf/models/transport_profile.py +++ b/cyperf/models/transport_profile.py @@ -22,11 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.http_profile import HTTPProfile +from cyperf.models.quic_profile import QUICProfile from cyperf.models.rtp_profile import RTPProfile from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -35,18 +36,20 @@ class TransportProfile(BaseModel): TransportProfile """ # noqa: E501 client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") client_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ClientTcpProfile") ip_tos: Optional[StrictInt] = Field(default=None, alias="IpTos") rtp_profile: Optional[RTPProfile] = Field(default=None, alias="RTPProfile") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") server_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ServerTcpProfile") udp_profile: Optional[UdpProfile] = Field(default=None, alias="UdpProfile") vlan_prio: Optional[StrictInt] = Field(default=None, alias="VlanPrio") links: Optional[List[APILink]] = None l4_profile_name: StrictStr = Field(alias="L4ProfileName") - __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links", "L4ProfileName"] + __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links", "L4ProfileName"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +93,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of client_tls_profile if self.client_tls_profile: _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() @@ -102,6 +108,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of server_tls_profile if self.server_tls_profile: _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() @@ -133,16 +142,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "ClientTcpProfile": TcpProfile.from_dict(obj["ClientTcpProfile"]) if obj.get("ClientTcpProfile") is not None else None, "IpTos": obj.get("IpTos"), "RTPProfile": RTPProfile.from_dict(obj["RTPProfile"]) if obj.get("RTPProfile") is not None else None, "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, "VlanPrio": obj.get("VlanPrio"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "L4ProfileName": obj.get("L4ProfileName") , "links": obj.get("links") diff --git a/cyperf/models/transport_profile_base.py b/cyperf/models/transport_profile_base.py index 0a608e7..ab38b44 100644 --- a/cyperf/models/transport_profile_base.py +++ b/cyperf/models/transport_profile_base.py @@ -22,11 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.http_profile import HTTPProfile +from cyperf.models.quic_profile import QUICProfile from cyperf.models.rtp_profile import RTPProfile from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -35,17 +36,19 @@ class TransportProfileBase(BaseModel): TransportProfileBase """ # noqa: E501 client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") client_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ClientTcpProfile") ip_tos: Optional[StrictInt] = Field(default=None, alias="IpTos") rtp_profile: Optional[RTPProfile] = Field(default=None, alias="RTPProfile") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") server_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ServerTcpProfile") udp_profile: Optional[UdpProfile] = Field(default=None, alias="UdpProfile") vlan_prio: Optional[StrictInt] = Field(default=None, alias="VlanPrio") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links"] + __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of client_tls_profile if self.client_tls_profile: _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() @@ -101,6 +107,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of server_tls_profile if self.server_tls_profile: _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() @@ -132,16 +141,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "ClientTcpProfile": TcpProfile.from_dict(obj["ClientTcpProfile"]) if obj.get("ClientTcpProfile") is not None else None, "IpTos": obj.get("IpTos"), "RTPProfile": RTPProfile.from_dict(obj["RTPProfile"]) if obj.get("RTPProfile") is not None else None, "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, "VlanPrio": obj.get("VlanPrio"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_range.py b/cyperf/models/tunnel_range.py index 26360c1..f6374aa 100644 --- a/cyperf/models/tunnel_range.py +++ b/cyperf/models/tunnel_range.py @@ -26,7 +26,7 @@ from cyperf.models.f5_settings import F5Settings from cyperf.models.fortinet_settings import FortinetSettings from cyperf.models.pangp_settings import PANGPSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -50,8 +50,8 @@ class TunnelRange(BaseModel): @field_validator('vendor_type') def vendor_type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5']): - raise ValueError("must be one of enum values ('CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5')") + if value not in set(['CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5', 'PAN_PAA']): + raise ValueError("must be one of enum values ('CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5', 'PAN_PAA')") return value model_config = ConfigDict( @@ -139,7 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelCountPerOuterIP": obj.get("TunnelCountPerOuterIP"), "TunnelEstablishmentTimeout": obj.get("TunnelEstablishmentTimeout"), "VendorType": obj.get("VendorType"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_settings.py b/cyperf/models/tunnel_settings.py index 75bd551..2a57e35 100644 --- a/cyperf/models/tunnel_settings.py +++ b/cyperf/models/tunnel_settings.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.auth_settings import AuthSettings from cyperf.models.tcp_profile import TcpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_stack.py b/cyperf/models/tunnel_stack.py index e08391a..b6bd1fd 100644 --- a/cyperf/models/tunnel_stack.py +++ b/cyperf/models/tunnel_stack.py @@ -25,7 +25,7 @@ from cyperf.models.inner_ip_range import InnerIPRange from cyperf.models.ip_range import IPRange from cyperf.models.tunnel_range import TunnelRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -122,7 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelRange": TunnelRange.from_dict(obj["TunnelRange"]) if obj.get("TunnelRange") is not None else None, "TunnelStackName": obj.get("TunnelStackName"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/type_array_v2_metadata.py b/cyperf/models/type_array_v2_metadata.py index e3179aa..0260633 100644 --- a/cyperf/models/type_array_v2_metadata.py +++ b/cyperf/models/type_array_v2_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "elements": [ArrayV2ElementMetadata.from_dict(_item) for _item in obj["elements"]] if obj.get("elements") is not None else None + "elements": ( [ArrayV2ElementMetadata.from_dict(_item) for _item in obj.get("elements", [])] if obj.get("elements") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/type_info_metadata.py b/cyperf/models/type_info_metadata.py index 21e79ad..9b1c6d1 100644 --- a/cyperf/models/type_info_metadata.py +++ b/cyperf/models/type_info_metadata.py @@ -24,7 +24,7 @@ from cyperf.models.type_int_metadata import TypeIntMetadata from cyperf.models.type_media_metadata import TypeMediaMetadata from cyperf.models.type_string_metadata import TypeStringMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_int_metadata.py b/cyperf/models/type_int_metadata.py index 12a2709..aa003c9 100644 --- a/cyperf/models/type_int_metadata.py +++ b/cyperf/models/type_int_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_media_metadata.py b/cyperf/models/type_media_metadata.py index 1271999..dd7bbf2 100644 --- a/cyperf/models/type_media_metadata.py +++ b/cyperf/models/type_media_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_string_metadata.py b/cyperf/models/type_string_metadata.py index fa73de4..962d68b 100644 --- a/cyperf/models/type_string_metadata.py +++ b/cyperf/models/type_string_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/udp_profile.py b/cyperf/models/udp_profile.py index abd41fa..206fef3 100644 --- a/cyperf/models/udp_profile.py +++ b/cyperf/models/udp_profile.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/update_network_mapping.py b/cyperf/models/update_network_mapping.py index f1a03f6..12a8468 100644 --- a/cyperf/models/update_network_mapping.py +++ b/cyperf/models/update_network_mapping.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ClientNetworkTags": obj.get("ClientNetworkTags"), - "ExcludedDUTList": obj.get("ExcludedDUTList"), + "ClientNetworkTags": obj.get("ClientNetworkTags") if obj.get("ClientNetworkTags") is not None else [], + "ExcludedDUTList": obj.get("ExcludedDUTList") if obj.get("ExcludedDUTList") is not None else [], "SelectTags": obj.get("SelectTags"), - "ServerNetworkTags": obj.get("ServerNetworkTags") + "ServerNetworkTags": obj.get("ServerNetworkTags") if obj.get("ServerNetworkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/update_port_tags_operation.py b/cyperf/models/update_port_tags_operation.py new file mode 100644 index 0000000..6151cd5 --- /dev/null +++ b/cyperf/models/update_port_tags_operation.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.ports_by_controller import PortsByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class UpdatePortTagsOperation(BaseModel): + """ + UpdatePortTagsOperation + """ # noqa: E501 + controllers: Optional[List[PortsByController]] = Field(default=None, description="The controllers that the ports are part of.") + tags_to_add: Optional[List[StrictStr]] = Field(default=None, description="The list of tags to add to the port selection", alias="tagsToAdd") + tags_to_remove: Optional[List[StrictStr]] = Field(default=None, description="The list of tags to remove from the port selection", alias="tagsToRemove") + __properties: ClassVar[List[str]] = ["controllers", "tagsToAdd", "tagsToRemove"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdatePortTagsOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdatePortTagsOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), + "tagsToAdd": obj.get("tagsToAdd") if obj.get("tagsToAdd") is not None else [], + "tagsToRemove": obj.get("tagsToRemove") if obj.get("tagsToRemove") is not None else [] + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/validation_message.py b/cyperf/models/validation_message.py index 68f231d..a5475b5 100644 --- a/cyperf/models/validation_message.py +++ b/cyperf/models/validation_message.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/version.py b/cyperf/models/version.py index 9da2dd5..975d2a1 100644 --- a/cyperf/models/version.py +++ b/cyperf/models/version.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/vlan_range.py b/cyperf/models/vlan_range.py index 4cc4201..75897f6 100644 --- a/cyperf/models/vlan_range.py +++ b/cyperf/models/vlan_range.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.static_arp_entry import StaticARPEntry -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -124,13 +124,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CountPerAgent": obj.get("CountPerAgent"), "MaxCountPerAgent": obj.get("MaxCountPerAgent"), "Priority": obj.get("Priority"), - "StaticARPTable": [StaticARPEntry.from_dict(_item) for _item in obj["StaticARPTable"]] if obj.get("StaticARPTable") is not None else None, + "StaticARPTable": ( [StaticARPEntry.from_dict(_item) for _item in obj.get("StaticARPTable", [])] if obj.get("StaticARPTable") is not None else None), "TagProtocolId": obj.get("TagProtocolId"), "VlanAuto": obj.get("VlanAuto"), "VlanEnabled": obj.get("VlanEnabled"), "VlanId": obj.get("VlanId"), "VlanIncr": obj.get("VlanIncr"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/vx_lan_range.py b/cyperf/models/vx_lan_range.py new file mode 100644 index 0000000..4273611 --- /dev/null +++ b/cyperf/models/vx_lan_range.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.md2_tlv import Md2Tlv +from cyperf.models.vx_lanid import VxLANId +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANRange(BaseModel): + """ + The VxLAN IP Ranges assigned to the current test configuration + """ # noqa: E501 + hacked_inner_remote_ip_incr: Annotated[str, Field(strict=True)] = Field(alias="HackedInnerRemoteIpIncr") + hacked_inner_remote_ip_start: Annotated[str, Field(strict=True)] = Field(alias="HackedInnerRemoteIpStart") + md2_tlvs: Optional[List[Md2Tlv]] = Field(default=None, alias="Md2Tlvs") + remote_vtep_ip_local_count: StrictInt = Field(description="The number of remote VTEP IPs generated (default: 1).", alias="RemoteVtepIpLocalCount") + remote_vtep_ip_local_incr: Annotated[str, Field(strict=True)] = Field(description="The remote VTEP IP incrementation rule (default: 0.0.0.1).", alias="RemoteVtepIpLocalIncr") + remote_vtep_ip_range_incr: Annotated[str, Field(strict=True)] = Field(description="The remote VTEP IP range incrementation rule (default: 0.0.1.0).", alias="RemoteVtepIpRangeIncr") + remote_vtep_ip_start: Annotated[str, Field(strict=True)] = Field(description="The start IP for the remote VTEP (default: 10.0.0.10).", alias="RemoteVtepIpStart") + total_tunnel_count: StrictInt = Field(description="Outer IP Count * Remote VTEP IP Local Count * VxLAN ID per VTEP Pair Count", alias="TotalTunnelCount") + use_vx_lan_ids: StrictBool = Field(alias="UseVxLANIds") + vx_lanid_incr: StrictInt = Field(description="The VxLAN id incrementation rule (default: 1).", alias="VxLANIdIncr") + vx_lanid_per_vtep_pair_count: StrictInt = Field(alias="VxLANIdPerVtepPairCount") + vx_lanid_start: StrictInt = Field(description="The VxLAN start identifier (default: 1).", alias="VxLANIdStart") + vx_lan_ids: Optional[List[VxLANId]] = Field(default=None, alias="VxLANIds") + vx_lan_range_name: Annotated[str, Field(strict=True)] = Field(alias="VxLANRangeName") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["HackedInnerRemoteIpIncr", "HackedInnerRemoteIpStart", "Md2Tlvs", "RemoteVtepIpLocalCount", "RemoteVtepIpLocalIncr", "RemoteVtepIpRangeIncr", "RemoteVtepIpStart", "TotalTunnelCount", "UseVxLANIds", "VxLANIdIncr", "VxLANIdPerVtepPairCount", "VxLANIdStart", "VxLANIds", "VxLANRangeName", "id", "links"] + + @field_validator('hacked_inner_remote_ip_incr') + def hacked_inner_remote_ip_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('hacked_inner_remote_ip_start') + def hacked_inner_remote_ip_start_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_local_incr') + def remote_vtep_ip_local_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_range_incr') + def remote_vtep_ip_range_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_start') + def remote_vtep_ip_start_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('vx_lan_range_name') + def vx_lan_range_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANRange from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in md2_tlvs (list) + _items = [] + if self.md2_tlvs: + for _item in self.md2_tlvs: + if _item: + _items.append(_item.to_dict()) + _dict['Md2Tlvs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in vx_lan_ids (list) + _items = [] + if self.vx_lan_ids: + for _item in self.vx_lan_ids: + if _item: + _items.append(_item.to_dict()) + _dict['VxLANIds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANRange from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "HackedInnerRemoteIpIncr": obj.get("HackedInnerRemoteIpIncr"), + "HackedInnerRemoteIpStart": obj.get("HackedInnerRemoteIpStart"), + "Md2Tlvs": ( [Md2Tlv.from_dict(_item) for _item in obj.get("Md2Tlvs", [])] if obj.get("Md2Tlvs") is not None else None), + "RemoteVtepIpLocalCount": obj.get("RemoteVtepIpLocalCount"), + "RemoteVtepIpLocalIncr": obj.get("RemoteVtepIpLocalIncr"), + "RemoteVtepIpRangeIncr": obj.get("RemoteVtepIpRangeIncr"), + "RemoteVtepIpStart": obj.get("RemoteVtepIpStart"), + "TotalTunnelCount": obj.get("TotalTunnelCount"), + "UseVxLANIds": obj.get("UseVxLANIds"), + "VxLANIdIncr": obj.get("VxLANIdIncr"), + "VxLANIdPerVtepPairCount": obj.get("VxLANIdPerVtepPairCount"), + "VxLANIdStart": obj.get("VxLANIdStart"), + "VxLANIds": ( [VxLANId.from_dict(_item) for _item in obj.get("VxLANIds", [])] if obj.get("VxLANIds") is not None else None), + "VxLANRangeName": obj.get("VxLANRangeName"), + "id": obj.get("id"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/vx_lan_stack.py b/cyperf/models/vx_lan_stack.py new file mode 100644 index 0000000..d2b3676 --- /dev/null +++ b/cyperf/models/vx_lan_stack.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.ip_range import IPRange +from cyperf.models.vx_lan_range import VxLANRange +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANStack(BaseModel): + """ + The VxLAN stack assigned to the current test configuration + """ # noqa: E501 + inner_ip_range: Optional[IPRange] = Field(default=None, alias="InnerIPRange") + outer_ip_range: Optional[IPRange] = Field(default=None, alias="OuterIPRange") + vx_lan_range: Optional[VxLANRange] = Field(default=None, alias="VxLANRange") + vx_lan_stack_name: Annotated[str, Field(strict=True)] = Field(alias="VxLANStackName") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["InnerIPRange", "OuterIPRange", "VxLANRange", "VxLANStackName", "id", "links"] + + @field_validator('vx_lan_stack_name') + def vx_lan_stack_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANStack from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of inner_ip_range + if self.inner_ip_range: + _dict['InnerIPRange'] = self.inner_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of outer_ip_range + if self.outer_ip_range: + _dict['OuterIPRange'] = self.outer_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of vx_lan_range + if self.vx_lan_range: + _dict['VxLANRange'] = self.vx_lan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANStack from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "InnerIPRange": IPRange.from_dict(obj["InnerIPRange"]) if obj.get("InnerIPRange") is not None else None, + "OuterIPRange": IPRange.from_dict(obj["OuterIPRange"]) if obj.get("OuterIPRange") is not None else None, + "VxLANRange": VxLANRange.from_dict(obj["VxLANRange"]) if obj.get("VxLANRange") is not None else None, + "VxLANStackName": obj.get("VxLANStackName"), + "id": obj.get("id"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/vx_lanid.py b/cyperf/models/vx_lanid.py new file mode 100644 index 0000000..950fc07 --- /dev/null +++ b/cyperf/models/vx_lanid.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANId(BaseModel): + """ + VxLANId + """ # noqa: E501 + vx_lan_id: StrictInt = Field(alias="VxLanId") + id: StrictStr + __properties: ClassVar[List[str]] = ["VxLanId", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "VxLanId": obj.get("VxLanId"), + "id": obj.get("id") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/utils.py b/cyperf/utils.py index d2f3f0f..07e342e 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -176,12 +176,56 @@ def assign_agents(self, session, agent_map=None, augment=False, auto_assign=Fals ip_net.agent_assignments.by_id = agent_details ip_net.update() + def wait_until_agents_released(self, agents): + timeout = 180 + poll_interval = 3 + agent_api_instance = cyperf.AgentsApi(self.api_client) + start_time = time.time() + + while True: + running = False + for agent in agents: + current_agent = agent_api_instance.get_agent_by_id(agent.id) + if current_agent.status == "RUNNING": + running = True + break + + if not running: + return + + if time.time() - start_time > timeout: + raise TimeoutError("Timeout reached while waiting for agents to be released.") + + time.sleep(poll_interval) + def disable_automatic_network(self, session): for net_profile in session.config.config.network_profiles: for ip_net in net_profile.ip_network_segment: ip_net.ip_ranges[0].ip_auto = False ip_net.update() + def get_first_N_http_standalone_strikes(self, n): + application_api_instance = cyperf.ApplicationResourcesApi(self.api_client) + http_strikes = [] + skip = 0 + + while len(http_strikes) < n: + take = min(50, n - len(http_strikes)) + strike_batch = application_api_instance.get_resources_strikes(take=take, skip=skip).data + + for strike in strike_batch: + protocol = strike.metadata.protocol + supported_apps = strike.metadata.supported_apps + + if protocol.lower() == 'http' and (supported_apps == None or supported_apps == []): + http_strikes.append(strike) + if len(http_strikes) == n: + break + + skip += take + + return http_strikes + def add_apps(self, session, appNames): # Retrieve the app from precanned Apps resource_api = cyperf.ApplicationResourcesApi(self.api_client) @@ -306,7 +350,135 @@ def format_stats_dict_as_table(self, stats_dict={}): lines = ['|'.join([f'{val:^{col_width}}' for val, col_width in zip(item, col_widths)]) for item in zip(*stats_dict.values())] return [line_delim, header, line_delim] + lines + [line_delim] - + + def set_prisma_airs_params(self, session, pan_auth_token, airs_profile_name = None, airs_profile_id = None): + # Update Attacks + prisma_airs_attacks_found = False + try: + attack_profiles = session.config.config.attack_profiles + if not attack_profiles: + raise ValueError("No attack profiles found in the session configuration.") + for attack in attack_profiles[0].attacks: + if "Prisma AIRS" not in attack.name: + continue + for track in attack.tracks: + for action in track.actions: + for param in action.params: + if param.name == "PAN auth token": + prisma_airs_attacks_found = True + param.value = pan_auth_token + print(f"Updated PAN auth token for attack: {attack.name}") + elif param.name == "AIRS Profile Name" and airs_profile_name: + param.value = airs_profile_name + print(f"Updated AIRS Profile Name for attack: {attack.name}") + elif param.name == "AIRS Profile ID" and airs_profile_id: + param.value = airs_profile_id + print(f"Updated AIRS Profile ID for attack: {attack.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Prisma AIRS params: {e}") + except Exception as e: + print(f"Unexpected error while setting Prisma AIRS params: {e}") + if not prisma_airs_attacks_found: + print("No Prisma AIRS Attacks found in the provided session.") + + # Update Applications + prisma_airs_applications_found = False + try: + traffic_profiles = session.config.config.traffic_profiles + if not traffic_profiles: + raise ValueError("No application profiles found in the session configuration.") + for application in traffic_profiles[0].applications: + if "Prisma AIRS" not in application.name: + continue + for track in application.tracks: + for action in track.actions: + for param in action.params: + if param.name == "PAN Auth Token": + prisma_airs_applications_found = True + param.value = pan_auth_token + print(f"Updated PAN auth token for Application: {application.name}") + elif param.name == "AIRS Profile Name" and airs_profile_name: + param.value = airs_profile_name + print(f"Updated AIRS Profile Name for Application: {application.name}") + elif param.name == "AIRS Profile ID" and airs_profile_id: + param.value = airs_profile_id + print(f"Updated AIRS Profile ID for Application: {application.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Prisma AIRS params: {e}") + except Exception as e: + print(f"Unexpected error while setting Prisma AIRS params: {e}") + if not prisma_airs_applications_found: + print("No Prisma AIRS Applications found in the provided session.") + + def set_model_armor_params(self, session, template_id, location, project_id, access_token): + # Update Attacks + model_armor_attacks_found = False + try: + attack_profiles = session.config.config.attack_profiles + if not attack_profiles: + raise ValueError("No attack profiles found in the session configuration.") + for attack in attack_profiles[0].attacks: + if "Model Armor" not in attack.name: + continue + for track in attack.tracks: + for action in track.actions: + params = action.params + for param in params: + if param.name == "Template ID": + model_armor_attacks_found = True + param.value = template_id + print(f"Updated Template ID for attack: {attack.name}") + elif param.name == "Project ID": + param.value = project_id + print(f"Updated Project ID for attack: {attack.name}") + elif param.name == "Location": + param.value = location + print(f"Updated Location for attack: {attack.name}") + elif param.name == "Access Token": + param.value = access_token + print(f"Updated Access Token for attack: {attack.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Model Armor params: {e}") + except Exception as e: + print(f"Unexpected error while setting Model Armor params: {e}") + if not model_armor_attacks_found: + print("No Model Armor Attacks found in the provided session.") + + # Update Applications + model_armor_applications_found = False + try: + traffic_profiles = session.config.config.traffic_profiles + if not traffic_profiles: + raise ValueError("No application profiles found in the session configuration.") + for application in traffic_profiles[0].applications: + if "Model Armor" not in application.name: + continue + for track in application.tracks: + for action in track.actions: + for param in action.params: + if param.name == "Template ID": + model_armor_applications_found = True + param.value = template_id + print(f"Updated Template ID for Application: {application.name}") + elif param.name == "Project ID": + param.value = project_id + print(f"Updated Project ID for Application: {application.name}") + elif param.name == "Location": + param.value = location + print(f"Updated Location for Application: {application.name}") + elif param.name == "Access Token": + param.value = access_token + print(f"Updated Access Token for Application: {application.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Model Armor params: {e}") + except Exception as e: + print(f"Unexpected error while setting Model Armor params: {e}") + if not model_armor_applications_found: + print("No Model Armor Applications found in the provided session.") def parse_cli_options(extra_options=[]): """Can be used to get parameters from the CLI or env vars that are broadly useful for CLI tests""" diff --git a/docs/ActionInput.md b/docs/ActionInput.md index 76b49cd..a7971a5 100644 --- a/docs/ActionInput.md +++ b/docs/ActionInput.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **captures** | [**List[CaptureInput]**](CaptureInput.md) | | [optional] **name** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/ActionMetadata.md b/docs/ActionMetadata.md index c5d49a2..a4fb2d2 100644 --- a/docs/ActionMetadata.md +++ b/docs/ActionMetadata.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **flows** | [**List[AppFlow]**](AppFlow.md) | | [optional] **index** | **int** | | [optional] **name** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/AddInput.md b/docs/AddInput.md index 4158602..da45384 100644 --- a/docs/AddInput.md +++ b/docs/AddInput.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **captures** | [**List[CaptureInput]**](CaptureInput.md) | | [optional] **exchange_index_insert_at** | **int** | | [optional] **flow_index_insert_at** | **int** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] **type** | **str** | | [optional] ## Example diff --git a/docs/AgentAssignments.md b/docs/AgentAssignments.md index 8984062..2b0cca7 100644 --- a/docs/AgentAssignments.md +++ b/docs/AgentAssignments.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **by_id** | [**List[AgentAssignmentDetails]**](AgentAssignmentDetails.md) | The agents statically assigned to the current test configuration. | [optional] **by_port** | [**List[AgentAssignmentByPort]**](AgentAssignmentByPort.md) | The ports assigned to the current test configuration. | [optional] -**by_tag** | **List[str]** | The tags according to which the agents are dynamically assigned. | +**by_tag** | **List[str]** | The tags according to which the agents are dynamically assigned. | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] ## Example diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index a28507d..e0b7374 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -15,20 +15,6 @@ Method | HTTP request | Description [**get_controller_compute_nodes**](AgentsApi.md#get_controller_compute_nodes) | **GET** /api/v2/controllers/{controllerId}/compute-nodes | [**get_controllers**](AgentsApi.md#get_controllers) | **GET** /api/v2/controllers | [**patch_agent**](AgentsApi.md#patch_agent) | **PATCH** /api/v2/agents/{agentId} | -[**poll_agents_batch_delete**](AgentsApi.md#poll_agents_batch_delete) | **GET** /api/v2/agents/operations/batch-delete/{id} | -[**poll_agents_export_files**](AgentsApi.md#poll_agents_export_files) | **GET** /api/v2/agents/operations/exportFiles/{id} | -[**poll_agents_reboot**](AgentsApi.md#poll_agents_reboot) | **GET** /api/v2/agents/operations/reboot/{id} | -[**poll_agents_release**](AgentsApi.md#poll_agents_release) | **GET** /api/v2/agents/operations/release/{id} | -[**poll_agents_reserve**](AgentsApi.md#poll_agents_reserve) | **GET** /api/v2/agents/operations/reserve/{id} | -[**poll_agents_set_dpdk_mode**](AgentsApi.md#poll_agents_set_dpdk_mode) | **GET** /api/v2/agents/operations/set-dpdk-mode/{id} | -[**poll_agents_set_ntp**](AgentsApi.md#poll_agents_set_ntp) | **GET** /api/v2/agents/operations/set-ntp/{id} | -[**poll_agents_update**](AgentsApi.md#poll_agents_update) | **GET** /api/v2/agents/operations/update/{id} | -[**poll_controllers_clear_port_ownership**](AgentsApi.md#poll_controllers_clear_port_ownership) | **GET** /api/v2/controllers/operations/clear-port-ownership/{id} | -[**poll_controllers_power_cycle_nodes**](AgentsApi.md#poll_controllers_power_cycle_nodes) | **GET** /api/v2/controllers/operations/power-cycle-nodes/{id} | -[**poll_controllers_reboot_port**](AgentsApi.md#poll_controllers_reboot_port) | **GET** /api/v2/controllers/operations/reboot-port/{id} | -[**poll_controllers_set_app**](AgentsApi.md#poll_controllers_set_app) | **GET** /api/v2/controllers/operations/set-app/{id} | -[**poll_controllers_set_node_aggregation**](AgentsApi.md#poll_controllers_set_node_aggregation) | **GET** /api/v2/controllers/operations/set-node-aggregation/{id} | -[**poll_controllers_set_port_link_state**](AgentsApi.md#poll_controllers_set_port_link_state) | **GET** /api/v2/controllers/operations/set-port-link-state/{id} | [**start_agents_batch_delete**](AgentsApi.md#start_agents_batch_delete) | **POST** /api/v2/agents/operations/batch-delete | [**start_agents_export_files**](AgentsApi.md#start_agents_export_files) | **POST** /api/v2/agents/operations/exportFiles | [**start_agents_reboot**](AgentsApi.md#start_agents_reboot) | **POST** /api/v2/agents/operations/reboot | @@ -42,7 +28,9 @@ Method | HTTP request | Description [**start_controllers_reboot_port**](AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | [**start_controllers_set_app**](AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | [**start_controllers_set_node_aggregation**](AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | +[**start_controllers_set_node_app**](AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | [**start_controllers_set_port_link_state**](AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | +[**start_controllers_update_port_tags**](AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | # **delete_agent** @@ -771,7 +759,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_controllers** -> GetControllers200Response get_controllers(take=take, skip=skip) +> GetControllers200Response get_controllers(take=take, skip=skip, include=include) @@ -809,9 +797,10 @@ with cyperf.ApiClient(configuration) as api_client: api_instance = cyperf.AgentsApi(api_client) take = 56 # int | The number of search results to return (optional) skip = 56 # int | The number of search results to skip (optional) + include = 'include_example' # str | Specifies if the sub-fields that are objects should be included. (optional) try: - api_response = api_instance.get_controllers(take=take, skip=skip) + api_response = api_instance.get_controllers(take=take, skip=skip, include=include) print("The response of AgentsApi->get_controllers:\n") pprint(api_response) except Exception as e: @@ -827,6 +816,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **take** | **int**| The number of search results to return | [optional] **skip** | **int**| The number of search results to skip | [optional] + **include** | **str**| Specifies if the sub-fields that are objects should be included. | [optional] ### Return type @@ -929,948 +919,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) -# **poll_agents_batch_delete** -> AsyncContext poll_agents_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_batch_delete(id) - print("The response of AgentsApi->poll_agents_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_export_files** -> AsyncContext poll_agents_export_files(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_export_files(id) - print("The response of AgentsApi->poll_agents_export_files:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_export_files: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_reboot** -> AsyncContext poll_agents_reboot(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_reboot(id) - print("The response of AgentsApi->poll_agents_reboot:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_reboot: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_release** -> AsyncContext poll_agents_release(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_release(id) - print("The response of AgentsApi->poll_agents_release:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_release: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_reserve** -> AsyncContext poll_agents_reserve(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_reserve(id) - print("The response of AgentsApi->poll_agents_reserve:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_reserve: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_set_dpdk_mode** -> AsyncContext poll_agents_set_dpdk_mode(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_set_dpdk_mode(id) - print("The response of AgentsApi->poll_agents_set_dpdk_mode:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_set_dpdk_mode: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_set_ntp** -> AsyncContext poll_agents_set_ntp(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_set_ntp(id) - print("The response of AgentsApi->poll_agents_set_ntp:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_set_ntp: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_update** -> AsyncContext poll_agents_update(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_update(id) - print("The response of AgentsApi->poll_agents_update:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_update: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_clear_port_ownership** -> AsyncContext poll_controllers_clear_port_ownership(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_clear_port_ownership(id) - print("The response of AgentsApi->poll_controllers_clear_port_ownership:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_clear_port_ownership: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_power_cycle_nodes** -> AsyncContext poll_controllers_power_cycle_nodes(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_power_cycle_nodes(id) - print("The response of AgentsApi->poll_controllers_power_cycle_nodes:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_power_cycle_nodes: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_reboot_port** -> AsyncContext poll_controllers_reboot_port(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_reboot_port(id) - print("The response of AgentsApi->poll_controllers_reboot_port:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_reboot_port: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_set_app** -> AsyncContext poll_controllers_set_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_set_app(id) - print("The response of AgentsApi->poll_controllers_set_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_set_node_aggregation** -> AsyncContext poll_controllers_set_node_aggregation(id) +# **start_agents_batch_delete** +> AsyncContext start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) -Get the state of an ongoing operation. +Remove multiple agents. ### Example @@ -1880,6 +934,7 @@ Get the state of an ongoing operation. ```python import cyperf from cyperf.models.async_context import AsyncContext +from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner from cyperf.rest import ApiException from pprint import pprint @@ -1902,14 +957,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. + start_agents_batch_delete_request_inner = [cyperf.StartAgentsBatchDeleteRequestInner()] # List[StartAgentsBatchDeleteRequestInner] | (optional) try: - api_response = api_instance.poll_controllers_set_node_aggregation(id) - print("The response of AgentsApi->poll_controllers_set_node_aggregation:\n") + api_response = api_instance.start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) + print("The response of AgentsApi->start_agents_batch_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_node_aggregation: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_batch_delete: %s\n" % e) ``` @@ -1919,7 +974,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **start_agents_batch_delete_request_inner** | [**List[StartAgentsBatchDeleteRequestInner]**](StartAgentsBatchDeleteRequestInner.md)| | [optional] ### Return type @@ -1931,24 +986,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**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) -# **poll_controllers_set_port_link_state** -> AsyncContext poll_controllers_set_port_link_state(id) +# **start_agents_export_files** +> AsyncContext start_agents_export_files(export_files_operation_input=export_files_operation_input) -Get the state of an ongoing operation. +Sends export files requests to a list of agents. ### Example @@ -1958,6 +1012,7 @@ Get the state of an ongoing operation. ```python import cyperf from cyperf.models.async_context import AsyncContext +from cyperf.models.export_files_operation_input import ExportFilesOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -1980,14 +1035,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. + export_files_operation_input = cyperf.ExportFilesOperationInput() # ExportFilesOperationInput | (optional) try: - api_response = api_instance.poll_controllers_set_port_link_state(id) - print("The response of AgentsApi->poll_controllers_set_port_link_state:\n") + api_response = api_instance.start_agents_export_files(export_files_operation_input=export_files_operation_input) + print("The response of AgentsApi->start_agents_export_files:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_port_link_state: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_export_files: %s\n" % e) ``` @@ -1997,7 +1052,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **export_files_operation_input** | [**ExportFilesOperationInput**](ExportFilesOperationInput.md)| | [optional] ### Return type @@ -2009,24 +1064,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**202** | Details about the operation that just started | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_batch_delete** -> AsyncContext start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) +# **start_agents_reboot** +> AsyncContext start_agents_reboot(reboot_operation_input=reboot_operation_input) -Remove multiple agents. +Reboot the agents specified in the request. ### Example @@ -2036,7 +1090,7 @@ Remove multiple agents. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner +from cyperf.models.reboot_operation_input import RebootOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -2059,14 +1113,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - start_agents_batch_delete_request_inner = [cyperf.StartAgentsBatchDeleteRequestInner()] # List[StartAgentsBatchDeleteRequestInner] | (optional) + reboot_operation_input = cyperf.RebootOperationInput() # RebootOperationInput | (optional) try: - api_response = api_instance.start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) - print("The response of AgentsApi->start_agents_batch_delete:\n") + api_response = api_instance.start_agents_reboot(reboot_operation_input=reboot_operation_input) + print("The response of AgentsApi->start_agents_reboot:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_batch_delete: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_reboot: %s\n" % e) ``` @@ -2076,7 +1130,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_agents_batch_delete_request_inner** | [**List[StartAgentsBatchDeleteRequestInner]**](StartAgentsBatchDeleteRequestInner.md)| | [optional] + **reboot_operation_input** | [**RebootOperationInput**](RebootOperationInput.md)| | [optional] ### Return type @@ -2099,12 +1153,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_export_files** -> AsyncContext start_agents_export_files(export_files_operation_input=export_files_operation_input) +# **start_agents_release** +> AsyncContext start_agents_release(release_operation_input=release_operation_input) -Sends export files requests to a list of agents. +Releases all the agents from the given session. ### Example @@ -2114,7 +1168,7 @@ Sends export files requests to a list of agents. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.export_files_operation_input import ExportFilesOperationInput +from cyperf.models.release_operation_input import ReleaseOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -2137,14 +1191,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - export_files_operation_input = cyperf.ExportFilesOperationInput() # ExportFilesOperationInput | (optional) + release_operation_input = cyperf.ReleaseOperationInput() # ReleaseOperationInput | (optional) try: - api_response = api_instance.start_agents_export_files(export_files_operation_input=export_files_operation_input) - print("The response of AgentsApi->start_agents_export_files:\n") + api_response = api_instance.start_agents_release(release_operation_input=release_operation_input) + print("The response of AgentsApi->start_agents_release:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_export_files: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_release: %s\n" % e) ``` @@ -2154,7 +1208,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **export_files_operation_input** | [**ExportFilesOperationInput**](ExportFilesOperationInput.md)| | [optional] + **release_operation_input** | [**ReleaseOperationInput**](ReleaseOperationInput.md)| | [optional] ### Return type @@ -2177,12 +1231,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_reboot** -> AsyncContext start_agents_reboot(reboot_operation_input=reboot_operation_input) +# **start_agents_reserve** +> AsyncContext start_agents_reserve(reserve_operation_input=reserve_operation_input) -Reboot the agents specified in the request. +Reserves all the agents from the given session. ### Example @@ -2192,7 +1246,7 @@ Reboot the agents specified in the request. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.reboot_operation_input import RebootOperationInput +from cyperf.models.reserve_operation_input import ReserveOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -2215,14 +1269,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - reboot_operation_input = cyperf.RebootOperationInput() # RebootOperationInput | (optional) + reserve_operation_input = cyperf.ReserveOperationInput() # ReserveOperationInput | (optional) try: - api_response = api_instance.start_agents_reboot(reboot_operation_input=reboot_operation_input) - print("The response of AgentsApi->start_agents_reboot:\n") + api_response = api_instance.start_agents_reserve(reserve_operation_input=reserve_operation_input) + print("The response of AgentsApi->start_agents_reserve:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_reboot: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_reserve: %s\n" % e) ``` @@ -2232,7 +1286,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reboot_operation_input** | [**RebootOperationInput**](RebootOperationInput.md)| | [optional] + **reserve_operation_input** | [**ReserveOperationInput**](ReserveOperationInput.md)| | [optional] ### Return type @@ -2255,12 +1309,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_release** -> AsyncContext start_agents_release(release_operation_input=release_operation_input) +# **start_agents_set_dpdk_mode** +> AsyncContext start_agents_set_dpdk_mode(set_dpdk_mode_operation_input=set_dpdk_mode_operation_input) -Releases all the agents from the given session. +Enable/disable DPDK for a list of agents. ### Example @@ -2270,7 +1324,7 @@ Releases all the agents from the given session. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.release_operation_input import ReleaseOperationInput +from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -2293,14 +1347,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - release_operation_input = cyperf.ReleaseOperationInput() # ReleaseOperationInput | (optional) + set_dpdk_mode_operation_input = cyperf.SetDpdkModeOperationInput() # SetDpdkModeOperationInput | (optional) try: - api_response = api_instance.start_agents_release(release_operation_input=release_operation_input) - print("The response of AgentsApi->start_agents_release:\n") + api_response = api_instance.start_agents_set_dpdk_mode(set_dpdk_mode_operation_input=set_dpdk_mode_operation_input) + print("The response of AgentsApi->start_agents_set_dpdk_mode:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_release: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_set_dpdk_mode: %s\n" % e) ``` @@ -2310,7 +1364,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **release_operation_input** | [**ReleaseOperationInput**](ReleaseOperationInput.md)| | [optional] + **set_dpdk_mode_operation_input** | [**SetDpdkModeOperationInput**](SetDpdkModeOperationInput.md)| | [optional] ### Return type @@ -2333,12 +1387,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_reserve** -> AsyncContext start_agents_reserve(reserve_operation_input=reserve_operation_input) +# **start_agents_set_ntp** +> AsyncContext start_agents_set_ntp(set_ntp_operation_input=set_ntp_operation_input) -Reserves all the agents from the given session. +Set the NTP servers for a list of agents. ### Example @@ -2348,7 +1402,7 @@ Reserves all the agents from the given session. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.reserve_operation_input import ReserveOperationInput +from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -2371,14 +1425,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - reserve_operation_input = cyperf.ReserveOperationInput() # ReserveOperationInput | (optional) + set_ntp_operation_input = cyperf.SetNtpOperationInput() # SetNtpOperationInput | (optional) try: - api_response = api_instance.start_agents_reserve(reserve_operation_input=reserve_operation_input) - print("The response of AgentsApi->start_agents_reserve:\n") + api_response = api_instance.start_agents_set_ntp(set_ntp_operation_input=set_ntp_operation_input) + print("The response of AgentsApi->start_agents_set_ntp:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_reserve: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_set_ntp: %s\n" % e) ``` @@ -2388,7 +1442,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reserve_operation_input** | [**ReserveOperationInput**](ReserveOperationInput.md)| | [optional] + **set_ntp_operation_input** | [**SetNtpOperationInput**](SetNtpOperationInput.md)| | [optional] ### Return type @@ -2411,12 +1465,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_set_dpdk_mode** -> AsyncContext start_agents_set_dpdk_mode(set_dpdk_mode_operation_input=set_dpdk_mode_operation_input) +# **start_agents_update** +> AsyncContext start_agents_update() -Enable/disable DPDK for a list of agents. +Update agents to the recommended version. ### Example @@ -2426,7 +1480,6 @@ Enable/disable DPDK for a list of agents. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -2449,24 +1502,20 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_dpdk_mode_operation_input = cyperf.SetDpdkModeOperationInput() # SetDpdkModeOperationInput | (optional) try: - api_response = api_instance.start_agents_set_dpdk_mode(set_dpdk_mode_operation_input=set_dpdk_mode_operation_input) - print("The response of AgentsApi->start_agents_set_dpdk_mode:\n") + api_response = api_instance.start_agents_update() + print("The response of AgentsApi->start_agents_update:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_set_dpdk_mode: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_update: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **set_dpdk_mode_operation_input** | [**SetDpdkModeOperationInput**](SetDpdkModeOperationInput.md)| | [optional] +This endpoint does not need any parameter. ### Return type @@ -2478,7 +1527,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -2489,12 +1538,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_set_ntp** -> AsyncContext start_agents_set_ntp(set_ntp_operation_input=set_ntp_operation_input) +# **start_controllers_clear_port_ownership** +> AsyncContext start_controllers_clear_port_ownership(clear_ports_ownership_operation=clear_ports_ownership_operation) -Set the NTP servers for a list of agents. +Clear the ownership of the ports. ### Example @@ -2504,7 +1553,7 @@ Set the NTP servers for a list of agents. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_ntp_operation_input import SetNtpOperationInput +from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.rest import ApiException from pprint import pprint @@ -2527,14 +1576,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_ntp_operation_input = cyperf.SetNtpOperationInput() # SetNtpOperationInput | (optional) + clear_ports_ownership_operation = cyperf.ClearPortsOwnershipOperation() # ClearPortsOwnershipOperation | (optional) try: - api_response = api_instance.start_agents_set_ntp(set_ntp_operation_input=set_ntp_operation_input) - print("The response of AgentsApi->start_agents_set_ntp:\n") + api_response = api_instance.start_controllers_clear_port_ownership(clear_ports_ownership_operation=clear_ports_ownership_operation) + print("The response of AgentsApi->start_controllers_clear_port_ownership:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_set_ntp: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_clear_port_ownership: %s\n" % e) ``` @@ -2544,7 +1593,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_ntp_operation_input** | [**SetNtpOperationInput**](SetNtpOperationInput.md)| | [optional] + **clear_ports_ownership_operation** | [**ClearPortsOwnershipOperation**](ClearPortsOwnershipOperation.md)| | [optional] ### Return type @@ -2567,12 +1616,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_update** -> AsyncContext start_agents_update() +# **start_controllers_power_cycle_nodes** +> AsyncContext start_controllers_power_cycle_nodes(nodes_power_cycle_operation=nodes_power_cycle_operation) -Update agents to the recommended version. +Power cycle the compute nodes. ### Example @@ -2582,6 +1631,7 @@ Update agents to the recommended version. ```python import cyperf from cyperf.models.async_context import AsyncContext +from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation from cyperf.rest import ApiException from pprint import pprint @@ -2604,20 +1654,24 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) + nodes_power_cycle_operation = cyperf.NodesPowerCycleOperation() # NodesPowerCycleOperation | (optional) try: - api_response = api_instance.start_agents_update() - print("The response of AgentsApi->start_agents_update:\n") + api_response = api_instance.start_controllers_power_cycle_nodes(nodes_power_cycle_operation=nodes_power_cycle_operation) + print("The response of AgentsApi->start_controllers_power_cycle_nodes:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_update: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_power_cycle_nodes: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nodes_power_cycle_operation** | [**NodesPowerCycleOperation**](NodesPowerCycleOperation.md)| | [optional] ### Return type @@ -2629,7 +1683,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -2640,12 +1694,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_clear_port_ownership** -> AsyncContext start_controllers_clear_port_ownership(clear_ports_ownership_operation=clear_ports_ownership_operation) +# **start_controllers_reboot_port** +> AsyncContext start_controllers_reboot_port(reboot_ports_operation=reboot_ports_operation) -Clear the ownership of the ports. +Reboot ports. ### Example @@ -2655,7 +1709,7 @@ Clear the ownership of the ports. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation +from cyperf.models.reboot_ports_operation import RebootPortsOperation from cyperf.rest import ApiException from pprint import pprint @@ -2678,14 +1732,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - clear_ports_ownership_operation = cyperf.ClearPortsOwnershipOperation() # ClearPortsOwnershipOperation | (optional) + reboot_ports_operation = cyperf.RebootPortsOperation() # RebootPortsOperation | (optional) try: - api_response = api_instance.start_controllers_clear_port_ownership(clear_ports_ownership_operation=clear_ports_ownership_operation) - print("The response of AgentsApi->start_controllers_clear_port_ownership:\n") + api_response = api_instance.start_controllers_reboot_port(reboot_ports_operation=reboot_ports_operation) + print("The response of AgentsApi->start_controllers_reboot_port:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_clear_port_ownership: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_reboot_port: %s\n" % e) ``` @@ -2695,7 +1749,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clear_ports_ownership_operation** | [**ClearPortsOwnershipOperation**](ClearPortsOwnershipOperation.md)| | [optional] + **reboot_ports_operation** | [**RebootPortsOperation**](RebootPortsOperation.md)| | [optional] ### Return type @@ -2718,12 +1772,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_power_cycle_nodes** -> AsyncContext start_controllers_power_cycle_nodes(nodes_power_cycle_operation=nodes_power_cycle_operation) +# **start_controllers_set_app** +> AsyncContext start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) -Power cycle the compute nodes. +Set the active app of the controllers. ### Example @@ -2733,7 +1787,7 @@ Power cycle the compute nodes. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.rest import ApiException from pprint import pprint @@ -2756,14 +1810,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - nodes_power_cycle_operation = cyperf.NodesPowerCycleOperation() # NodesPowerCycleOperation | (optional) + set_controller_app_operation = cyperf.SetControllerAppOperation() # SetControllerAppOperation | (optional) try: - api_response = api_instance.start_controllers_power_cycle_nodes(nodes_power_cycle_operation=nodes_power_cycle_operation) - print("The response of AgentsApi->start_controllers_power_cycle_nodes:\n") + api_response = api_instance.start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) + print("The response of AgentsApi->start_controllers_set_app:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_power_cycle_nodes: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_set_app: %s\n" % e) ``` @@ -2773,7 +1827,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **nodes_power_cycle_operation** | [**NodesPowerCycleOperation**](NodesPowerCycleOperation.md)| | [optional] + **set_controller_app_operation** | [**SetControllerAppOperation**](SetControllerAppOperation.md)| | [optional] ### Return type @@ -2796,12 +1850,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_reboot_port** -> AsyncContext start_controllers_reboot_port(reboot_ports_operation=reboot_ports_operation) +# **start_controllers_set_node_aggregation** +> AsyncContext start_controllers_set_node_aggregation(set_aggregation_mode_operation=set_aggregation_mode_operation) -Reboot ports. +Set the aggregation mode of the compute nodes. ### Example @@ -2811,7 +1865,7 @@ Reboot ports. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.reboot_ports_operation import RebootPortsOperation +from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation from cyperf.rest import ApiException from pprint import pprint @@ -2834,14 +1888,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - reboot_ports_operation = cyperf.RebootPortsOperation() # RebootPortsOperation | (optional) + set_aggregation_mode_operation = cyperf.SetAggregationModeOperation() # SetAggregationModeOperation | (optional) try: - api_response = api_instance.start_controllers_reboot_port(reboot_ports_operation=reboot_ports_operation) - print("The response of AgentsApi->start_controllers_reboot_port:\n") + api_response = api_instance.start_controllers_set_node_aggregation(set_aggregation_mode_operation=set_aggregation_mode_operation) + print("The response of AgentsApi->start_controllers_set_node_aggregation:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_reboot_port: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_set_node_aggregation: %s\n" % e) ``` @@ -2851,7 +1905,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reboot_ports_operation** | [**RebootPortsOperation**](RebootPortsOperation.md)| | [optional] + **set_aggregation_mode_operation** | [**SetAggregationModeOperation**](SetAggregationModeOperation.md)| | [optional] ### Return type @@ -2874,12 +1928,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_set_app** -> AsyncContext start_controllers_set_app(set_app_operation=set_app_operation) +# **start_controllers_set_node_app** +> AsyncContext start_controllers_set_node_app(set_nodes_app_operation=set_nodes_app_operation) -Set the active app of the controllers. +Set the active app of the compute nodes. ### Example @@ -2889,7 +1943,7 @@ Set the active app of the controllers. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.rest import ApiException from pprint import pprint @@ -2912,14 +1966,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_app_operation = cyperf.SetAppOperation() # SetAppOperation | (optional) + set_nodes_app_operation = cyperf.SetNodesAppOperation() # SetNodesAppOperation | (optional) try: - api_response = api_instance.start_controllers_set_app(set_app_operation=set_app_operation) - print("The response of AgentsApi->start_controllers_set_app:\n") + api_response = api_instance.start_controllers_set_node_app(set_nodes_app_operation=set_nodes_app_operation) + print("The response of AgentsApi->start_controllers_set_node_app:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_set_app: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_set_node_app: %s\n" % e) ``` @@ -2929,7 +1983,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_app_operation** | [**SetAppOperation**](SetAppOperation.md)| | [optional] + **set_nodes_app_operation** | [**SetNodesAppOperation**](SetNodesAppOperation.md)| | [optional] ### Return type @@ -2952,12 +2006,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_set_node_aggregation** -> AsyncContext start_controllers_set_node_aggregation(set_aggregation_mode_operation=set_aggregation_mode_operation) +# **start_controllers_set_port_link_state** +> AsyncContext start_controllers_set_port_link_state(set_link_state_operation=set_link_state_operation) -Set the aggregation mode of the compute nodes. +Set the link state of the ports. ### Example @@ -2967,7 +2021,7 @@ Set the aggregation mode of the compute nodes. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation +from cyperf.models.set_link_state_operation import SetLinkStateOperation from cyperf.rest import ApiException from pprint import pprint @@ -2990,14 +2044,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_aggregation_mode_operation = cyperf.SetAggregationModeOperation() # SetAggregationModeOperation | (optional) + set_link_state_operation = cyperf.SetLinkStateOperation() # SetLinkStateOperation | (optional) try: - api_response = api_instance.start_controllers_set_node_aggregation(set_aggregation_mode_operation=set_aggregation_mode_operation) - print("The response of AgentsApi->start_controllers_set_node_aggregation:\n") + api_response = api_instance.start_controllers_set_port_link_state(set_link_state_operation=set_link_state_operation) + print("The response of AgentsApi->start_controllers_set_port_link_state:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_set_node_aggregation: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_set_port_link_state: %s\n" % e) ``` @@ -3007,7 +2061,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_aggregation_mode_operation** | [**SetAggregationModeOperation**](SetAggregationModeOperation.md)| | [optional] + **set_link_state_operation** | [**SetLinkStateOperation**](SetLinkStateOperation.md)| | [optional] ### Return type @@ -3030,12 +2084,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_set_port_link_state** -> AsyncContext start_controllers_set_port_link_state(set_link_state_operation=set_link_state_operation) +# **start_controllers_update_port_tags** +> AsyncContext start_controllers_update_port_tags(update_port_tags_operation=update_port_tags_operation) -Set the link state of the ports. +Update port tags. ### Example @@ -3045,7 +2099,7 @@ Set the link state of the ports. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.rest import ApiException from pprint import pprint @@ -3068,14 +2122,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_link_state_operation = cyperf.SetLinkStateOperation() # SetLinkStateOperation | (optional) + update_port_tags_operation = cyperf.UpdatePortTagsOperation() # UpdatePortTagsOperation | (optional) try: - api_response = api_instance.start_controllers_set_port_link_state(set_link_state_operation=set_link_state_operation) - print("The response of AgentsApi->start_controllers_set_port_link_state:\n") + api_response = api_instance.start_controllers_update_port_tags(update_port_tags_operation=update_port_tags_operation) + print("The response of AgentsApi->start_controllers_update_port_tags:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_set_port_link_state: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_update_port_tags: %s\n" % e) ``` @@ -3085,7 +2139,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_link_state_operation** | [**SetLinkStateOperation**](SetLinkStateOperation.md)| | [optional] + **update_port_tags_operation** | [**UpdatePortTagsOperation**](UpdatePortTagsOperation.md)| | [optional] ### Return type diff --git a/docs/AppFlow.md b/docs/AppFlow.md index d137b61..6b71bd5 100644 --- a/docs/AppFlow.md +++ b/docs/AppFlow.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **dst_address** | **bytearray** | | [optional] **dst_port** | **int** | | [optional] **exchanges** | [**List[AppExchange]**](AppExchange.md) | The list of exchanges | [optional] +**http_host** | **str** | | [optional] **id** | **str** | | [optional] [readonly] **links** | [**List[APILink]**](APILink.md) | | [optional] **src_address** | **bytearray** | | [optional] diff --git a/docs/AppFlowDesc.md b/docs/AppFlowDesc.md index f21db9a..285d515 100644 --- a/docs/AppFlowDesc.md +++ b/docs/AppFlowDesc.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dst_address** | **bytearray** | | [optional] **dst_port** | **int** | | [optional] +**http_host** | **str** | | [optional] **src_address** | **bytearray** | | [optional] **src_port** | **int** | | [optional] diff --git a/docs/Application.md b/docs/Application.md index 589625c..64b0257 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] @@ -38,6 +41,7 @@ Name | Type | Description | Notes **data_types** | [**List[DataType]**](DataType.md) | | [optional] **inherit_tls** | **bool** | | [optional] **is_stateless_stream** | **bool** | | [optional] +**is_streaming** | **bool** | | [optional] **objective_weight** | **int** | The objective weight of the application. | **protocol_found** | **bool** | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] @@ -45,6 +49,7 @@ Name | Type | Description | Notes **static** | **bool** | | [optional] **supported_apps** | **List[str]** | | [optional] **supports_calibration** | **bool** | | [optional] +**supports_multi_flow** | **bool** | | [optional] **supports_strikes** | **bool** | | [optional] **supports_tls** | **bool** | | [optional] **tracks** | [**List[Track]**](Track.md) | | [optional] diff --git a/docs/ApplicationProfile.md b/docs/ApplicationProfile.md index 70d5ae1..6cde695 100644 --- a/docs/ApplicationProfile.md +++ b/docs/ApplicationProfile.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **applications** | [**List[Application]**](Application.md) | | [optional] diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index c49b33f..1baa391 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -22,9 +22,11 @@ Method | HTTP request | Description [**delete_resources_tls_dh**](ApplicationResourcesApi.md#delete_resources_tls_dh) | **DELETE** /api/v2/resources/tls-dhs/{tlsDhId} | [**delete_resources_tls_key**](ApplicationResourcesApi.md#delete_resources_tls_key) | **DELETE** /api/v2/resources/tls-keys/{tlsKeyId} | [**delete_resources_user_defined_app**](ApplicationResourcesApi.md#delete_resources_user_defined_app) | **DELETE** /api/v2/resources/user-defined-apps/{userDefinedAppId} | +[**delete_resources_voice_custom_flow**](ApplicationResourcesApi.md#delete_resources_voice_custom_flow) | **DELETE** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | [**get_capture_flows**](ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | [**get_flow_exchanges**](ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | [**get_resources_app_by_id**](ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | +[**get_resources_app_categories**](ApplicationResourcesApi.md#get_resources_app_categories) | **GET** /api/v2/resources/app-categories | [**get_resources_application_type_by_id**](ApplicationResourcesApi.md#get_resources_application_type_by_id) | **GET** /api/v2/resources/application-types/{applicationTypeId} | [**get_resources_application_types**](ApplicationResourcesApi.md#get_resources_application_types) | **GET** /api/v2/resources/application-types | [**get_resources_apps**](ApplicationResourcesApi.md#get_resources_apps) | **GET** /api/v2/resources/apps | @@ -35,6 +37,7 @@ Method | HTTP request | Description [**get_resources_auth_profiles**](ApplicationResourcesApi.md#get_resources_auth_profiles) | **GET** /api/v2/resources/auth-profiles | [**get_resources_capture_by_id**](ApplicationResourcesApi.md#get_resources_capture_by_id) | **GET** /api/v2/resources/captures/{captureId} | [**get_resources_captures**](ApplicationResourcesApi.md#get_resources_captures) | **GET** /api/v2/resources/captures | +[**get_resources_captures_encrypted_upload_file_result**](ApplicationResourcesApi.md#get_resources_captures_encrypted_upload_file_result) | **GET** /api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result | [**get_resources_captures_upload_file_result**](ApplicationResourcesApi.md#get_resources_captures_upload_file_result) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result | [**get_resources_certificate_by_id**](ApplicationResourcesApi.md#get_resources_certificate_by_id) | **GET** /api/v2/resources/certificates/{certificateId} | [**get_resources_certificate_content_file**](ApplicationResourcesApi.md#get_resources_certificate_content_file) | **GET** /api/v2/resources/certificates/{certificateId}/contentFile | @@ -108,37 +111,13 @@ Method | HTTP request | Description [**get_resources_tls_keys_upload_file_result**](ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | [**get_resources_user_defined_apps**](ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | [**get_resources_user_defined_apps_upload_file_result**](ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | -[**poll_resources_apps_export_all**](ApplicationResourcesApi.md#poll_resources_apps_export_all) | **GET** /api/v2/resources/apps/operations/export-all/{id} | -[**poll_resources_captures_batch_delete**](ApplicationResourcesApi.md#poll_resources_captures_batch_delete) | **GET** /api/v2/resources/captures/operations/batch-delete/{id} | -[**poll_resources_captures_upload_file**](ApplicationResourcesApi.md#poll_resources_captures_upload_file) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId} | -[**poll_resources_certificates_upload_file**](ApplicationResourcesApi.md#poll_resources_certificates_upload_file) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} | -[**poll_resources_config_export_user_defined_apps**](ApplicationResourcesApi.md#poll_resources_config_export_user_defined_apps) | **GET** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id} | -[**poll_resources_create_app**](ApplicationResourcesApi.md#poll_resources_create_app) | **GET** /api/v2/resources/operations/create-app/{id} | -[**poll_resources_custom_fuzzing_scripts_upload_file**](ApplicationResourcesApi.md#poll_resources_custom_fuzzing_scripts_upload_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId} | -[**poll_resources_edit_app**](ApplicationResourcesApi.md#poll_resources_edit_app) | **GET** /api/v2/resources/operations/edit-app/{id} | -[**poll_resources_find_param_matches**](ApplicationResourcesApi.md#poll_resources_find_param_matches) | **GET** /api/v2/resources/operations/find-param-matches/{id} | -[**poll_resources_flow_library_upload_file**](ApplicationResourcesApi.md#poll_resources_flow_library_upload_file) | **GET** /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_get_attack_categories**](ApplicationResourcesApi.md#poll_resources_get_attack_categories) | **GET** /api/v2/resources/operations/get-attack-categories/{id} | -[**poll_resources_get_attacks**](ApplicationResourcesApi.md#poll_resources_get_attacks) | **GET** /api/v2/resources/operations/get-attacks/{id} | -[**poll_resources_get_strike_categories**](ApplicationResourcesApi.md#poll_resources_get_strike_categories) | **GET** /api/v2/resources/operations/get-strike-categories/{id} | -[**poll_resources_get_strikes**](ApplicationResourcesApi.md#poll_resources_get_strikes) | **GET** /api/v2/resources/operations/get-strikes/{id} | -[**poll_resources_global_playlists_upload_file**](ApplicationResourcesApi.md#poll_resources_global_playlists_upload_file) | **GET** /api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId} | -[**poll_resources_http_library_upload_file**](ApplicationResourcesApi.md#poll_resources_http_library_upload_file) | **GET** /api/v2/resources/http-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_media_files_upload_file**](ApplicationResourcesApi.md#poll_resources_media_files_upload_file) | **GET** /api/v2/resources/media-files/operations/uploadFile/{uploadFileId} | -[**poll_resources_media_library_upload_file**](ApplicationResourcesApi.md#poll_resources_media_library_upload_file) | **GET** /api/v2/resources/media-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_other_library_upload_file**](ApplicationResourcesApi.md#poll_resources_other_library_upload_file) | **GET** /api/v2/resources/other-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_payloads_upload_file**](ApplicationResourcesApi.md#poll_resources_payloads_upload_file) | **GET** /api/v2/resources/payloads/operations/uploadFile/{uploadFileId} | -[**poll_resources_pcaps_upload_file**](ApplicationResourcesApi.md#poll_resources_pcaps_upload_file) | **GET** /api/v2/resources/pcaps/operations/uploadFile/{uploadFileId} | -[**poll_resources_playlists_upload_file**](ApplicationResourcesApi.md#poll_resources_playlists_upload_file) | **GET** /api/v2/resources/playlists/operations/uploadFile/{uploadFileId} | -[**poll_resources_sip_library_upload_file**](ApplicationResourcesApi.md#poll_resources_sip_library_upload_file) | **GET** /api/v2/resources/sip-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_stats_profile_upload_file**](ApplicationResourcesApi.md#poll_resources_stats_profile_upload_file) | **GET** /api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_certificates_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_certificates_upload_file) | **GET** /api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_dhs_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_dhs_upload_file) | **GET** /api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_keys_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_keys_upload_file) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId} | -[**poll_resources_user_defined_apps_export_all**](ApplicationResourcesApi.md#poll_resources_user_defined_apps_export_all) | **GET** /api/v2/resources/user-defined-apps/operations/export-all/{id} | -[**poll_resources_user_defined_apps_upload_file**](ApplicationResourcesApi.md#poll_resources_user_defined_apps_upload_file) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId} | +[**get_resources_voice_custom_flow_by_id**](ApplicationResourcesApi.md#get_resources_voice_custom_flow_by_id) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | +[**get_resources_voice_custom_flow_content_file**](ApplicationResourcesApi.md#get_resources_voice_custom_flow_content_file) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId}/contentFile | +[**get_resources_voice_custom_flows**](ApplicationResourcesApi.md#get_resources_voice_custom_flows) | **GET** /api/v2/resources/voice-custom-flows | +[**get_resources_voice_custom_flows_upload_file_result**](ApplicationResourcesApi.md#get_resources_voice_custom_flows_upload_file_result) | **GET** /api/v2/resources/voice-custom-flows/operations/uploadFile/{uploadFileId}/result | [**start_resources_apps_export_all**](ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | [**start_resources_captures_batch_delete**](ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | +[**start_resources_captures_encrypted_upload_file**](ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | [**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 | @@ -147,6 +126,8 @@ Method | HTTP request | Description [**start_resources_edit_app**](ApplicationResourcesApi.md#start_resources_edit_app) | **POST** /api/v2/resources/operations/edit-app | [**start_resources_find_param_matches**](ApplicationResourcesApi.md#start_resources_find_param_matches) | **POST** /api/v2/resources/operations/find-param-matches | [**start_resources_flow_library_upload_file**](ApplicationResourcesApi.md#start_resources_flow_library_upload_file) | **POST** /api/v2/resources/flow-library/operations/uploadFile | +[**start_resources_get_app_categories**](ApplicationResourcesApi.md#start_resources_get_app_categories) | **POST** /api/v2/resources/operations/get-app-categories | +[**start_resources_get_apps**](ApplicationResourcesApi.md#start_resources_get_apps) | **POST** /api/v2/resources/operations/get-apps | [**start_resources_get_attack_categories**](ApplicationResourcesApi.md#start_resources_get_attack_categories) | **POST** /api/v2/resources/operations/get-attack-categories | [**start_resources_get_attacks**](ApplicationResourcesApi.md#start_resources_get_attacks) | **POST** /api/v2/resources/operations/get-attacks | [**start_resources_get_strike_categories**](ApplicationResourcesApi.md#start_resources_get_strike_categories) | **POST** /api/v2/resources/operations/get-strike-categories | @@ -166,6 +147,7 @@ Method | HTTP request | Description [**start_resources_tls_keys_upload_file**](ApplicationResourcesApi.md#start_resources_tls_keys_upload_file) | **POST** /api/v2/resources/tls-keys/operations/uploadFile | [**start_resources_user_defined_apps_export_all**](ApplicationResourcesApi.md#start_resources_user_defined_apps_export_all) | **POST** /api/v2/resources/user-defined-apps/operations/export-all | [**start_resources_user_defined_apps_upload_file**](ApplicationResourcesApi.md#start_resources_user_defined_apps_upload_file) | **POST** /api/v2/resources/user-defined-apps/operations/uploadFile | +[**start_resources_voice_custom_flows_upload_file**](ApplicationResourcesApi.md#start_resources_voice_custom_flows_upload_file) | **POST** /api/v2/resources/voice-custom-flows/operations/uploadFile | # **delete_resources_capture** @@ -1535,6 +1517,82 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_resources_voice_custom_flow** +> delete_resources_voice_custom_flow(voice_custom_flow_id) + + + +Delete a particular voice custom flow. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + voice_custom_flow_id = 'voice_custom_flow_id_example' # str | The ID of the voice custom flow. + + try: + api_instance.delete_resources_voice_custom_flow(voice_custom_flow_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->delete_resources_voice_custom_flow: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voice_custom_flow_id** | **str**| The ID of the voice custom flow. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The voice custom flow was successfully deleted. | - | +**401** | Authorization information is missing or invalid. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_capture_flows** > List[AppFlow] get_capture_flows(capture_id, take=take, skip=skip) @@ -1777,6 +1835,84 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_resources_app_categories** +> List[Category] get_resources_app_categories(take=take, skip=skip) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.category import Category +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_resources_app_categories(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_app_categories:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_app_categories: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**List[Category]**](Category.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_resources_application_type_by_id** > ApplicationType get_resources_application_type_by_id(application_type_id) @@ -1936,7 +2072,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_resources_apps** -> GetResourcesApps200Response get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) +> GetResourcesApps200Response get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort, categories=categories) @@ -1978,9 +2114,10 @@ with cyperf.ApiClient(configuration) as api_client: search_val = 'search_val_example' # str | The keywords used to filter the items (optional) filter_mode = 'filter_mode_example' # str | The operator applied to the supplied values (optional) sort = 'sort_example' # str | A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc (optional) + categories = 'categories_example' # str | A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... (optional) try: - api_response = api_instance.get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) + api_response = api_instance.get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort, categories=categories) print("The response of ApplicationResourcesApi->get_resources_apps:\n") pprint(api_response) except Exception as e: @@ -2000,6 +2137,7 @@ Name | Type | Description | Notes **search_val** | **str**| The keywords used to filter the items | [optional] **filter_mode** | **str**| The operator applied to the supplied values | [optional] **sort** | **str**| A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc | [optional] + **categories** | **str**| A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... | [optional] ### Return type @@ -2019,6 +2157,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The list of CyPerf applications | - | +**400** | Bad request | - | **401** | Authorization information is missing or invalid. | - | **500** | Unexpected error | - | @@ -2591,6 +2730,82 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_resources_captures_encrypted_upload_file_result** +> get_resources_captures_encrypted_upload_file_result(upload_file_id) + + + +Get the result of the upload file operation. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + + try: + api_instance.get_resources_captures_encrypted_upload_file_result(upload_file_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_captures_encrypted_upload_file_result: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **upload_file_id** | **str**| The ID of the uploadfile. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The payload file that was added | - | +**400** | Bad request | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_resources_captures_upload_file_result** > get_resources_captures_upload_file_result(upload_file_id) @@ -8331,12 +8546,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) -# **poll_resources_apps_export_all** -> AsyncContext poll_resources_apps_export_all(id) +# **get_resources_voice_custom_flow_by_id** +> GenericFile get_resources_voice_custom_flow_by_id(voice_custom_flow_id) -Get the state of an ongoing operation. +Get a particular voice custom flow. ### Example @@ -8345,7 +8560,7 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_context import AsyncContext +from cyperf.models.generic_file import GenericFile from cyperf.rest import ApiException from pprint import pprint @@ -8368,14 +8583,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. + voice_custom_flow_id = 'voice_custom_flow_id_example' # str | The ID of the voice custom flow. 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.get_resources_voice_custom_flow_by_id(voice_custom_flow_id) + print("The response of ApplicationResourcesApi->get_resources_voice_custom_flow_by_id:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_apps_export_all: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flow_by_id: %s\n" % e) ``` @@ -8385,11 +8600,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **voice_custom_flow_id** | **str**| The ID of the voice custom flow. | ### Return type -[**AsyncContext**](AsyncContext.md) +[**GenericFile**](GenericFile.md) ### Authorization @@ -8404,17 +8619,19 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**200** | The requested voice custom flow | - | +**401** | Authorization information is missing or invalid. | - | +**404** | A voice custom flow with the specified ID was not found. | - | +**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_captures_batch_delete** -> AsyncContext poll_resources_captures_batch_delete(id) +# **get_resources_voice_custom_flow_content_file** +> bytearray get_resources_voice_custom_flow_content_file(voice_custom_flow_id) -Get the state of an ongoing operation. +Get the content of a particular voice custom flow file. ### Example @@ -8423,7 +8640,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 @@ -8446,14 +8662,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. + voice_custom_flow_id = 'voice_custom_flow_id_example' # str | The ID of the voice custom flow. try: - api_response = api_instance.poll_resources_captures_batch_delete(id) - print("The response of ApplicationResourcesApi->poll_resources_captures_batch_delete:\n") + api_response = api_instance.get_resources_voice_custom_flow_content_file(voice_custom_flow_id) + print("The response of ApplicationResourcesApi->get_resources_voice_custom_flow_content_file:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_captures_batch_delete: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flow_content_file: %s\n" % e) ``` @@ -8463,11 +8679,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **voice_custom_flow_id** | **str**| The ID of the voice custom flow. | ### Return type -[**AsyncContext**](AsyncContext.md) +**bytearray** ### Authorization @@ -8476,23 +8692,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** | Details about the ongoing operation | - | -**400** | Bad request | - | +**200** | The content of the voice custom flow file | - | +**404** | A voice custom flow file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_captures_upload_file** -> AsyncContext poll_resources_captures_upload_file(upload_file_id) +# **get_resources_voice_custom_flows** +> GetResourcesCertificates200Response get_resources_voice_custom_flows(take=take, skip=skip) -Get the state of an ongoing operation. +Get all the available voice custom flows. ### Example @@ -8501,7 +8717,7 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_context import AsyncContext +from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response from cyperf.rest import ApiException from pprint import pprint @@ -8524,14 +8740,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. + 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.poll_resources_captures_upload_file(upload_file_id) - print("The response of ApplicationResourcesApi->poll_resources_captures_upload_file:\n") + api_response = api_instance.get_resources_voice_custom_flows(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_voice_custom_flows:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_captures_upload_file: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flows: %s\n" % e) ``` @@ -8541,11 +8758,12 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] ### Return type -[**AsyncContext**](AsyncContext.md) +[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) ### Authorization @@ -8560,18 +8778,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**200** | The list of voice custom flows | - | +**401** | Authorization information is missing or invalid. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_certificates_upload_file** -> poll_resources_certificates_upload_file(upload_file_id) +# **get_resources_voice_custom_flows_upload_file_result** +> get_resources_voice_custom_flows_upload_file_result(upload_file_id) -Get the state of an ongoing operation. +Get the result of the upload file operation. ### Example @@ -8605,9 +8823,9 @@ with cyperf.ApiClient(configuration) as api_client: upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. try: - api_instance.poll_resources_certificates_upload_file(upload_file_id) + api_instance.get_resources_voice_custom_flows_upload_file_result(upload_file_id) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_certificates_upload_file: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flows_upload_file_result: %s\n" % e) ``` @@ -8636,18 +8854,18 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | +**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_config_export_user_defined_apps** -> AsyncContext poll_resources_config_export_user_defined_apps(config_id, id) +# **start_resources_apps_export_all** +> AsyncContext start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) -Get the state of an ongoing operation. +Export all apps created by the user. Optionally, provide a list of app IDs to export. ### Example @@ -8657,6 +8875,7 @@ Get the state of an ongoing operation. ```python import cyperf from cyperf.models.async_context import AsyncContext +from cyperf.models.export_apps_operation_input import ExportAppsOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -8679,15 +8898,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) - config_id = 'config_id_example' # str | The ID of the config. - id = 56 # int | The ID of the async operation. + export_apps_operation_input = cyperf.ExportAppsOperationInput() # ExportAppsOperationInput | (optional) try: - api_response = api_instance.poll_resources_config_export_user_defined_apps(config_id, id) - print("The response of ApplicationResourcesApi->poll_resources_config_export_user_defined_apps:\n") + api_response = api_instance.start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) + print("The response of ApplicationResourcesApi->start_resources_apps_export_all:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_config_export_user_defined_apps: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->start_resources_apps_export_all: %s\n" % e) ``` @@ -8697,8 +8915,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **config_id** | **str**| The ID of the config. | - **id** | **int**| The ID of the async operation. | + **export_apps_operation_input** | [**ExportAppsOperationInput**](ExportAppsOperationInput.md)| | [optional] ### Return type @@ -8710,1864 +8927,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**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) -# **poll_resources_create_app** -> AsyncContext poll_resources_create_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_create_app(id) - print("The response of ApplicationResourcesApi->poll_resources_create_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_create_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_custom_fuzzing_scripts_upload_file** -> poll_resources_custom_fuzzing_scripts_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_custom_fuzzing_scripts_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_custom_fuzzing_scripts_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_edit_app** -> AsyncContext poll_resources_edit_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_edit_app(id) - print("The response of ApplicationResourcesApi->poll_resources_edit_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_edit_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_find_param_matches** -> AsyncContext poll_resources_find_param_matches(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_find_param_matches(id) - print("The response of ApplicationResourcesApi->poll_resources_find_param_matches:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_find_param_matches: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_flow_library_upload_file** -> poll_resources_flow_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_flow_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_flow_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_attack_categories** -> AsyncContext poll_resources_get_attack_categories(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_attack_categories(id) - print("The response of ApplicationResourcesApi->poll_resources_get_attack_categories:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_attack_categories: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_attacks** -> AsyncContext poll_resources_get_attacks(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_attacks(id) - print("The response of ApplicationResourcesApi->poll_resources_get_attacks:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_attacks: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_strike_categories** -> AsyncContext poll_resources_get_strike_categories(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_strike_categories(id) - print("The response of ApplicationResourcesApi->poll_resources_get_strike_categories:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_strike_categories: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_strikes** -> AsyncContext poll_resources_get_strikes(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_strikes(id) - print("The response of ApplicationResourcesApi->poll_resources_get_strikes:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_strikes: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_global_playlists_upload_file** -> poll_resources_global_playlists_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_global_playlists_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_global_playlists_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_http_library_upload_file** -> poll_resources_http_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_http_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_http_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_media_files_upload_file** -> poll_resources_media_files_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_media_files_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_media_files_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_media_library_upload_file** -> poll_resources_media_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_media_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_media_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_other_library_upload_file** -> poll_resources_other_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_other_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_other_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_payloads_upload_file** -> poll_resources_payloads_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_payloads_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_payloads_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_pcaps_upload_file** -> poll_resources_pcaps_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_pcaps_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_pcaps_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_playlists_upload_file** -> poll_resources_playlists_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_playlists_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_playlists_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_sip_library_upload_file** -> poll_resources_sip_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_sip_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_sip_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_stats_profile_upload_file** -> poll_resources_stats_profile_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_stats_profile_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_stats_profile_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_certificates_upload_file** -> poll_resources_tls_certificates_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_certificates_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_certificates_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_dhs_upload_file** -> poll_resources_tls_dhs_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_dhs_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_dhs_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_keys_upload_file** -> poll_resources_tls_keys_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_keys_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_keys_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_user_defined_apps_export_all** -> AsyncContext poll_resources_user_defined_apps_export_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_user_defined_apps_export_all(id) - print("The response of ApplicationResourcesApi->poll_resources_user_defined_apps_export_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_user_defined_apps_export_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_user_defined_apps_upload_file** -> poll_resources_user_defined_apps_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_user_defined_apps_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_user_defined_apps_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **start_resources_apps_export_all** -> AsyncContext start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) +# **start_resources_captures_batch_delete** +> AsyncContext start_resources_captures_batch_delete() -Export all apps created by the user. Optionally, provide a list of app IDs to export. +Delete one or more captures ### Example @@ -10577,7 +8953,6 @@ Export all apps created by the user. Optionally, provide a list of app IDs to ex ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.export_apps_operation_input import ExportAppsOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -10600,24 +8975,20 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - export_apps_operation_input = cyperf.ExportAppsOperationInput() # ExportAppsOperationInput | (optional) try: - api_response = api_instance.start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) - print("The response of ApplicationResourcesApi->start_resources_apps_export_all:\n") + api_response = api_instance.start_resources_captures_batch_delete() + print("The response of ApplicationResourcesApi->start_resources_captures_batch_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->start_resources_apps_export_all: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->start_resources_captures_batch_delete: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **export_apps_operation_input** | [**ExportAppsOperationInput**](ExportAppsOperationInput.md)| | [optional] +This endpoint does not need any parameter. ### Return type @@ -10629,7 +9000,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -10640,12 +9011,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_resources_captures_batch_delete** -> AsyncContext start_resources_captures_batch_delete() +# **start_resources_captures_encrypted_upload_file** +> start_resources_captures_encrypted_upload_file(file=file) -Delete one or more captures +Upload a file. ### Example @@ -10654,7 +9025,6 @@ Delete one or more captures ```python import cyperf -from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -10677,24 +9047,26 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) + file = None # bytearray | (optional) try: - api_response = api_instance.start_resources_captures_batch_delete() - print("The response of ApplicationResourcesApi->start_resources_captures_batch_delete:\n") - pprint(api_response) + api_instance.start_resources_captures_encrypted_upload_file(file=file) except Exception as e: - print("Exception when calling ApplicationResourcesApi->start_resources_captures_batch_delete: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->start_resources_captures_encrypted_upload_file: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | [optional] ### Return type -[**AsyncContext**](AsyncContext.md) +void (empty response body) ### Authorization @@ -10702,14 +9074,15 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: multipart/form-data - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Details about the operation that just started | - | +**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) @@ -11327,6 +9700,162 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_resources_get_app_categories** +> AsyncContext start_resources_get_app_categories(get_categories_operation=get_categories_operation) + + + +Get the list of app categories + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + get_categories_operation = cyperf.GetCategoriesOperation() # GetCategoriesOperation | (optional) + + try: + api_response = api_instance.start_resources_get_app_categories(get_categories_operation=get_categories_operation) + print("The response of ApplicationResourcesApi->start_resources_get_app_categories:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_get_app_categories: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **get_categories_operation** | [**GetCategoriesOperation**](GetCategoriesOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_resources_get_apps** +> AsyncContext start_resources_get_apps(get_apps_operation=get_apps_operation) + + + +Get the list of applications + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.get_apps_operation import GetAppsOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + get_apps_operation = cyperf.GetAppsOperation() # GetAppsOperation | (optional) + + try: + api_response = api_instance.start_resources_get_apps(get_apps_operation=get_apps_operation) + print("The response of ApplicationResourcesApi->start_resources_get_apps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_get_apps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **get_apps_operation** | [**GetAppsOperation**](GetAppsOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_resources_get_attack_categories** > AsyncContext start_resources_get_attack_categories(get_categories_operation=get_categories_operation) @@ -12738,6 +11267,81 @@ with cyperf.ApiClient(configuration) as api_client: +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_resources_voice_custom_flows_upload_file** +> start_resources_voice_custom_flows_upload_file(file=file) + + + +Upload a file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + file = None # bytearray | (optional) + + try: + api_instance.start_resources_voice_custom_flows_upload_file(file=file) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_voice_custom_flows_upload_file: %s\n" % e) +``` + + + ### Parameters diff --git a/docs/AppsecAppMetadata.md b/docs/AppsecAppMetadata.md index 744f25a..ea4e8e8 100644 --- a/docs/AppsecAppMetadata.md +++ b/docs/AppsecAppMetadata.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions_metadata** | [**List[ActionMetadata]**](ActionMetadata.md) | | [optional] -**app_parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**app_parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The aggregated keywords of the application | [optional] ## Example diff --git a/docs/AppsecAppMetadataKeywordsInner.md b/docs/AppsecAppMetadataKeywordsInner.md new file mode 100644 index 0000000..32f6df5 --- /dev/null +++ b/docs/AppsecAppMetadataKeywordsInner.md @@ -0,0 +1,28 @@ +# AppsecAppMetadataKeywordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of AppsecAppMetadataKeywordsInner from a JSON string +appsec_app_metadata_keywords_inner_instance = AppsecAppMetadataKeywordsInner.from_json(json) +# print the JSON string representation of the object +print(AppsecAppMetadataKeywordsInner.to_json()) + +# convert the object into a dict +appsec_app_metadata_keywords_inner_dict = appsec_app_metadata_keywords_inner_instance.to_dict() +# create an instance of AppsecAppMetadataKeywordsInner from a dict +appsec_app_metadata_keywords_inner_from_dict = AppsecAppMetadataKeywordsInner.from_dict(appsec_app_metadata_keywords_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AsyncOperationResponse.md b/docs/AsyncOperationResponse.md deleted file mode 100644 index d563d94..0000000 --- a/docs/AsyncOperationResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# AsyncOperationResponse - -The POST response for an async operation. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | The subresource id of the status. | -**message** | **str** | A message from the operation (optional). | -**progress** | **int** | The progress of the operation (percent). | -**result_url** | **str** | The URL where the archive is available. | -**state** | **str** | The state of the operation. | -**type** | **str** | The name of the operation. | -**url** | **str** | The status URI of the operation. | - -## Example - -```python -from cyperf.models.async_operation_response import AsyncOperationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AsyncOperationResponse from a JSON string -async_operation_response_instance = AsyncOperationResponse.from_json(json) -# print the JSON string representation of the object -print(AsyncOperationResponse.to_json()) - -# convert the object into a dict -async_operation_response_dict = async_operation_response_instance.to_dict() -# create an instance of AsyncOperationResponse from a dict -async_operation_response_from_dict = AsyncOperationResponse.from_dict(async_operation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Attack.md b/docs/Attack.md index 7fe5d99..25e0e0d 100644 --- a/docs/Attack.md +++ b/docs/Attack.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] diff --git a/docs/AttackMetadata.md b/docs/AttackMetadata.md index e80a700..e142e7a 100644 --- a/docs/AttackMetadata.md +++ b/docs/AttackMetadata.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cve_count** | **int** | The number of CVE references associated with the attack | [optional] **direction** | **str** | The aggregated direction of the strike included in the attack | [optional] -**keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The aggregated keywords of the attack | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The aggregated keywords of the attack | [optional] **legacy_names** | **List[str]** | | [optional] **references** | [**List[Reference]**](Reference.md) | The aggregated references of the attack | [optional] **severity** | **str** | The aggregated severity of the strike included in the attack | [optional] diff --git a/docs/AttackProfile.md b/docs/AttackProfile.md index 923e8bc..4d64831 100644 --- a/docs/AttackProfile.md +++ b/docs/AttackProfile.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **attacks** | [**List[Attack]**](Attack.md) | | [optional] diff --git a/docs/AuthMethodType.md b/docs/AuthMethodType.md index 64b49f2..847bec4 100644 --- a/docs/AuthMethodType.md +++ b/docs/AuthMethodType.md @@ -10,6 +10,8 @@ The authentication method for TLS VPN tunnels. * `CERTIFICATE` (value: `'CERTIFICATE'`) +* `SAML` (value: `'SAML'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AuthSettings.md b/docs/AuthSettings.md index 0400128..0427965 100644 --- a/docs/AuthSettings.md +++ b/docs/AuthSettings.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **key_file_password** | **str** | The key file password of the TLS VPN authentication. | [optional] **passwords** | **List[str]** | | [optional] **passwords_param** | [**Params**](Params.md) | | [optional] +**simulated_id_p** | [**SimulatedIdP**](SimulatedIdP.md) | | [optional] **usernames** | **List[str]** | | [optional] **usernames_param** | [**Params**](Params.md) | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/ChassisInfo.md b/docs/ChassisInfo.md index bfc265c..5cc85f3 100644 --- a/docs/ChassisInfo.md +++ b/docs/ChassisInfo.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **checkout_id** | **int** | The id of the compute node used for checkout licenses | [optional] [readonly] **compute_node_id** | **str** | The id of the compute node where the agent is running | [optional] [readonly] +**hw_platform** | **str** | | [optional] +**hw_revision** | **str** | | [optional] **port_id** | **str** | The id of the corresponding port | [optional] [readonly] ## Example diff --git a/docs/Command.md b/docs/Command.md index d573731..f0c318b 100644 --- a/docs/Command.md +++ b/docs/Command.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **description** | **str** | The description of the command | [optional] **exchanges** | [**List[Exchange]**](Exchange.md) | The exchanges of the command | [optional] **is_strike** | **bool** | Indicates if the command is a strike | [optional] [readonly] -**metadata** | [**Metadata**](Metadata.md) | | [optional] +**metadata** | [**CommandMetadata**](CommandMetadata.md) | | [optional] **name** | **str** | The name of the command | [optional] [readonly] **parameters** | [**List[Parameter]**](Parameter.md) | The parameters of the command | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md new file mode 100644 index 0000000..0b09e72 --- /dev/null +++ b/docs/CommandMetadata.md @@ -0,0 +1,45 @@ +# CommandMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**direction** | **str** | The direction of the strike | [optional] +**is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] +**is_for_app_traffic_only** | **bool** | Indicates that this is a command that can only be used in application traffic and cannot be mixed with attack traffic | [optional] +**is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The keywords of the strike | [optional] +**legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] +**no_multi_flow_support** | **bool** | If true, only a single application with this protocol id can be present in the configuration | [optional] +**protocol** | **str** | The protocol of the strike | [optional] +**rtp_profile_meta** | [**RTPProfileMeta**](RTPProfileMeta.md) | | [optional] +**references** | [**List[Reference]**](Reference.md) | The references of the strike | [optional] +**requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands | [optional] +**severity** | **str** | The severity of the strike | [optional] +**skip_attack_generation** | **bool** | If true, don't generate an attack for this strike | [optional] +**sort_severity** | **str** | The field by which the severity is sorted | [optional] +**static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] +**supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**year** | **str** | The year of the strike | [optional] + +## Example + +```python +from cyperf.models.command_metadata import CommandMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of CommandMetadata from a JSON string +command_metadata_instance = CommandMetadata.from_json(json) +# print the JSON string representation of the object +print(CommandMetadata.to_json()) + +# convert the object into a dict +command_metadata_dict = command_metadata_instance.to_dict() +# create an instance of CommandMetadata from a dict +command_metadata_from_dict = CommandMetadata.from_dict(command_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Config.md b/docs/Config.md index 23bcdb5..ce84a08 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -11,9 +11,10 @@ Name | Type | Description | Notes **custom_dashboards** | [**CustomDashboards**](CustomDashboards.md) | | [optional] **expected_disk_space** | [**List[ExpectedDiskSpace]**](ExpectedDiskSpace.md) | | [optional] **network_profiles** | [**List[NetworkProfile]**](NetworkProfile.md) | | [optional] +**snowflake_exporter** | [**SnowflakeExporter**](SnowflakeExporter.md) | | [optional] **traffic_profiles** | [**List[ApplicationProfile]**](ApplicationProfile.md) | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] -**validate** | **List[bytearray]** | | [optional] +**validate_session_config** | **List[bytearray]** | | [optional] ## Example diff --git a/docs/ConfigCategory.md b/docs/ConfigCategory.md index 0831a62..86be0d6 100644 --- a/docs/ConfigCategory.md +++ b/docs/ConfigCategory.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **display_name** | **str** | The user-visible name of the configuration category | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] +**subcategories** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | List of subcategory names | [optional] ## Example diff --git a/docs/ConfigMetadata.md b/docs/ConfigMetadata.md index 274c345..d413560 100644 --- a/docs/ConfigMetadata.md +++ b/docs/ConfigMetadata.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **application** | **str** | | [optional] -**config_data** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The actual configuration object | [optional] +**config_data** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The actual configuration object | [optional] **config_url** | **str** | The backend URL of the saved config data | [optional] **created_on** | **int** | A Unix timestamp that indicates when config was created | [optional] [readonly] **display_name** | **str** | The user-visible name of the configuration | [optional] diff --git a/docs/ConfigSubCategory.md b/docs/ConfigSubCategory.md new file mode 100644 index 0000000..edb5995 --- /dev/null +++ b/docs/ConfigSubCategory.md @@ -0,0 +1,29 @@ +# ConfigSubCategory + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **str** | The user-visible name of the configuration subcategory | [optional] + +## Example + +```python +from cyperf.models.config_sub_category import ConfigSubCategory + +# TODO update the JSON string below +json = "{}" +# create an instance of ConfigSubCategory from a JSON string +config_sub_category_instance = ConfigSubCategory.from_json(json) +# print the JSON string representation of the object +print(ConfigSubCategory.to_json()) + +# convert the object into a dict +config_sub_category_dict = config_sub_category_instance.to_dict() +# create an instance of ConfigSubCategory from a dict +config_sub_category_from_dict = ConfigSubCategory.from_dict(config_sub_category_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConfigurationsApi.md b/docs/ConfigurationsApi.md index da5887d..0e902b5 100644 --- a/docs/ConfigurationsApi.md +++ b/docs/ConfigurationsApi.md @@ -7,14 +7,12 @@ Method | HTTP request | Description [**create_configs**](ConfigurationsApi.md#create_configs) | **POST** /api/v2/configs | [**delete_config**](ConfigurationsApi.md#delete_config) | **DELETE** /api/v2/configs/{configId} | [**get_config_by_id**](ConfigurationsApi.md#get_config_by_id) | **GET** /api/v2/configs/{configId} | +[**get_config_categorie_by_id**](ConfigurationsApi.md#get_config_categorie_by_id) | **GET** /api/v2/config-categories/{configCategorieId} | +[**get_config_categorie_subcategories**](ConfigurationsApi.md#get_config_categorie_subcategories) | **GET** /api/v2/config-categories/{configCategorieId}/subcategories | [**get_config_categories**](ConfigurationsApi.md#get_config_categories) | **GET** /api/v2/config-categories | [**get_configs**](ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | [**get_resources_custom_import_operations**](ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | [**patch_config**](ConfigurationsApi.md#patch_config) | **PATCH** /api/v2/configs/{configId} | -[**poll_configs_batch_delete**](ConfigurationsApi.md#poll_configs_batch_delete) | **GET** /api/v2/configs/operations/batch-delete/{id} | -[**poll_configs_export_all**](ConfigurationsApi.md#poll_configs_export_all) | **GET** /api/v2/configs/operations/exportAll/{id} | -[**poll_configs_import**](ConfigurationsApi.md#poll_configs_import) | **GET** /api/v2/configs/operations/import/{id} | -[**poll_configs_import_all**](ConfigurationsApi.md#poll_configs_import_all) | **GET** /api/v2/configs/operations/importAll/{id} | [**start_configs_batch_delete**](ConfigurationsApi.md#start_configs_batch_delete) | **POST** /api/v2/configs/operations/batch-delete | [**start_configs_export_all**](ConfigurationsApi.md#start_configs_export_all) | **POST** /api/v2/configs/operations/exportAll | [**start_configs_import**](ConfigurationsApi.md#start_configs_import) | **POST** /api/v2/configs/operations/import | @@ -261,12 +259,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_config_categories** -> GetConfigCategories200Response get_config_categories(take=take, skip=skip) +# **get_config_categorie_by_id** +> ConfigCategory get_config_categorie_by_id(config_categorie_id) -Get the list of available configuration categories. +returns a single configuration category with its subcategories. ### Example @@ -275,7 +273,7 @@ Get the list of available configuration categories. ```python import cyperf -from cyperf.models.get_config_categories200_response import GetConfigCategories200Response +from cyperf.models.config_category import ConfigCategory from cyperf.rest import ApiException from pprint import pprint @@ -298,15 +296,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.ConfigurationsApi(api_client) - take = 56 # int | The number of search results to return (optional) - skip = 56 # int | The number of search results to skip (optional) + config_categorie_id = 'config_categorie_id_example' # str | The ID of the config categorie. try: - api_response = api_instance.get_config_categories(take=take, skip=skip) - print("The response of ConfigurationsApi->get_config_categories:\n") + api_response = api_instance.get_config_categorie_by_id(config_categorie_id) + print("The response of ConfigurationsApi->get_config_categorie_by_id:\n") pprint(api_response) except Exception as e: - print("Exception when calling ConfigurationsApi->get_config_categories: %s\n" % e) + print("Exception when calling ConfigurationsApi->get_config_categorie_by_id: %s\n" % e) ``` @@ -316,12 +313,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] + **config_categorie_id** | **str**| The ID of the config categorie. | ### Return type -[**GetConfigCategories200Response**](GetConfigCategories200Response.md) +[**ConfigCategory**](ConfigCategory.md) ### Authorization @@ -336,18 +332,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of configuration categories | - | -**500** | Unexpected error | - | +**200** | The filtered configuration category with subcategories | - | +**500** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_configs** -> GetConfigs200Response get_configs(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) +# **get_config_categorie_subcategories** +> GetConfigCategorieSubcategories200Response get_config_categorie_subcategories(config_categorie_id, take=take, skip=skip) -Get all the configurations available to the current user. - ### Example * OAuth Authentication (OAuth2): @@ -355,7 +349,7 @@ Get all the configurations available to the current user. ```python import cyperf -from cyperf.models.get_configs200_response import GetConfigs200Response +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response from cyperf.rest import ApiException from pprint import pprint @@ -378,19 +372,16 @@ 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_categorie_id = 'config_categorie_id_example' # str | The ID of the config categorie. take = 56 # int | The number of search results to return (optional) skip = 56 # int | The number of search results to skip (optional) - search_col = 'search_col_example' # str | A list of comma-separated columns used to search for the supplied values (optional) - search_val = 'search_val_example' # str | The keywords used to filter the items (optional) - filter_mode = 'filter_mode_example' # str | The operator applied to the supplied values (optional) - sort = 'sort_example' # str | A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc (optional) try: - api_response = api_instance.get_configs(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) - print("The response of ConfigurationsApi->get_configs:\n") + api_response = api_instance.get_config_categorie_subcategories(config_categorie_id, take=take, skip=skip) + print("The response of ConfigurationsApi->get_config_categorie_subcategories:\n") pprint(api_response) except Exception as e: - print("Exception when calling ConfigurationsApi->get_configs: %s\n" % e) + print("Exception when calling ConfigurationsApi->get_config_categorie_subcategories: %s\n" % e) ``` @@ -400,16 +391,13 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **config_categorie_id** | **str**| The ID of the config categorie. | **take** | **int**| The number of search results to return | [optional] **skip** | **int**| The number of search results to skip | [optional] - **search_col** | **str**| A list of comma-separated columns used to search for the supplied values | [optional] - **search_val** | **str**| The keywords used to filter the items | [optional] - **filter_mode** | **str**| The operator applied to the supplied values | [optional] - **sort** | **str**| A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc | [optional] ### Return type -[**GetConfigs200Response**](GetConfigs200Response.md) +[**GetConfigCategorieSubcategories200Response**](GetConfigCategorieSubcategories200Response.md) ### Authorization @@ -424,17 +412,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of configurations | - | -**500** | Unexpected error | - | +**200** | The list of subcategories for the specified category | - | +**400** | Missing or invalid category parameter | - | +**500** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_custom_import_operations** -> GetResourcesCustomImportOperations200Response get_resources_custom_import_operations(take=take, skip=skip) +# **get_config_categories** +> GetConfigCategories200Response get_config_categories(take=take, skip=skip) -Get all the custom import config operations. +Get the list of available configuration categories. ### Example @@ -443,7 +432,7 @@ Get all the custom import config operations. ```python import cyperf -from cyperf.models.get_resources_custom_import_operations200_response import GetResourcesCustomImportOperations200Response +from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.rest import ApiException from pprint import pprint @@ -470,11 +459,11 @@ with cyperf.ApiClient(configuration) as api_client: skip = 56 # int | The number of search results to skip (optional) try: - api_response = api_instance.get_resources_custom_import_operations(take=take, skip=skip) - print("The response of ConfigurationsApi->get_resources_custom_import_operations:\n") + api_response = api_instance.get_config_categories(take=take, skip=skip) + print("The response of ConfigurationsApi->get_config_categories:\n") pprint(api_response) except Exception as e: - print("Exception when calling ConfigurationsApi->get_resources_custom_import_operations: %s\n" % e) + print("Exception when calling ConfigurationsApi->get_config_categories: %s\n" % e) ``` @@ -489,7 +478,7 @@ Name | Type | Description | Notes ### Return type -[**GetResourcesCustomImportOperations200Response**](GetResourcesCustomImportOperations200Response.md) +[**GetConfigCategories200Response**](GetConfigCategories200Response.md) ### Authorization @@ -504,174 +493,17 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of custom import config operations | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_config** -> patch_config(config_id, config_metadata=config_metadata) - - - -Update a particular configuration. Only non-null fields are updated. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.config_metadata import ConfigMetadata -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - config_id = 'config_id_example' # str | The ID of the config. - config_metadata = cyperf.ConfigMetadata() # ConfigMetadata | (optional) - - try: - api_instance.patch_config(config_id, config_metadata=config_metadata) - except Exception as e: - print("Exception when calling ConfigurationsApi->patch_config: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **config_id** | **str**| The ID of the config. | - **config_metadata** | [**ConfigMetadata**](ConfigMetadata.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**204** | The configuration was successfully updated. | - | -**404** | A configuration with the specified ID was not found. | - | +**200** | The list of configuration categories | - | **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_configs_batch_delete** -> AsyncContext poll_configs_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_batch_delete(id) - print("The response of ConfigurationsApi->poll_configs_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_configs_export_all** -> AsyncContext poll_configs_export_all(id) +# **get_configs** +> GetConfigs200Response get_configs(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) -Get the state of an ongoing operation. +Get all the configurations available to the current user. ### Example @@ -680,7 +512,7 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_context import AsyncContext +from cyperf.models.get_configs200_response import GetConfigs200Response from cyperf.rest import ApiException from pprint import pprint @@ -703,14 +535,19 @@ 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) - id = 56 # int | The ID of the async operation. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + search_col = 'search_col_example' # str | A list of comma-separated columns used to search for the supplied values (optional) + search_val = 'search_val_example' # str | The keywords used to filter the items (optional) + filter_mode = 'filter_mode_example' # str | The operator applied to the supplied values (optional) + sort = 'sort_example' # str | A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc (optional) try: - api_response = api_instance.poll_configs_export_all(id) - print("The response of ConfigurationsApi->poll_configs_export_all:\n") + api_response = api_instance.get_configs(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) + print("The response of ConfigurationsApi->get_configs:\n") pprint(api_response) except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_export_all: %s\n" % e) + print("Exception when calling ConfigurationsApi->get_configs: %s\n" % e) ``` @@ -720,11 +557,16 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + **search_col** | **str**| A list of comma-separated columns used to search for the supplied values | [optional] + **search_val** | **str**| The keywords used to filter the items | [optional] + **filter_mode** | **str**| The operator applied to the supplied values | [optional] + **sort** | **str**| A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc | [optional] ### Return type -[**AsyncContext**](AsyncContext.md) +[**GetConfigs200Response**](GetConfigs200Response.md) ### Authorization @@ -739,17 +581,17 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**200** | The list of configurations | - | +**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_configs_import** -> AsyncContext poll_configs_import(id) +# **get_resources_custom_import_operations** +> GetResourcesCustomImportOperations200Response get_resources_custom_import_operations(take=take, skip=skip) -Get the state of an ongoing operation. +Get all the custom import config operations. ### Example @@ -758,7 +600,7 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_context import AsyncContext +from cyperf.models.get_resources_custom_import_operations200_response import GetResourcesCustomImportOperations200Response from cyperf.rest import ApiException from pprint import pprint @@ -781,14 +623,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.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. + 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.poll_configs_import(id) - print("The response of ConfigurationsApi->poll_configs_import:\n") + api_response = api_instance.get_resources_custom_import_operations(take=take, skip=skip) + print("The response of ConfigurationsApi->get_resources_custom_import_operations:\n") pprint(api_response) except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_import: %s\n" % e) + print("Exception when calling ConfigurationsApi->get_resources_custom_import_operations: %s\n" % e) ``` @@ -798,11 +641,12 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] ### Return type -[**AsyncContext**](AsyncContext.md) +[**GetResourcesCustomImportOperations200Response**](GetResourcesCustomImportOperations200Response.md) ### Authorization @@ -817,17 +661,17 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**200** | The list of custom import config operations | - | +**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_configs_import_all** -> AsyncContext poll_configs_import_all(id) +# **patch_config** +> patch_config(config_id, config_metadata=config_metadata) -Get the state of an ongoing operation. +Update a particular configuration. Only non-null fields are updated. ### Example @@ -836,7 +680,7 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_context import AsyncContext +from cyperf.models.config_metadata import ConfigMetadata from cyperf.rest import ApiException from pprint import pprint @@ -859,14 +703,13 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. + config_id = 'config_id_example' # str | The ID of the config. + config_metadata = cyperf.ConfigMetadata() # ConfigMetadata | (optional) try: - api_response = api_instance.poll_configs_import_all(id) - print("The response of ConfigurationsApi->poll_configs_import_all:\n") - pprint(api_response) + api_instance.patch_config(config_id, config_metadata=config_metadata) except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_import_all: %s\n" % e) + print("Exception when calling ConfigurationsApi->patch_config: %s\n" % e) ``` @@ -876,11 +719,12 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **config_id** | **str**| The ID of the config. | + **config_metadata** | [**ConfigMetadata**](ConfigMetadata.md)| | [optional] ### Return type -[**AsyncContext**](AsyncContext.md) +void (empty response body) ### Authorization @@ -888,15 +732,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**204** | The configuration was successfully updated. | - | +**404** | A configuration 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) diff --git a/docs/CreateAppOperation.md b/docs/CreateAppOperation.md index ddbdac5..f4f0b30 100644 --- a/docs/CreateAppOperation.md +++ b/docs/CreateAppOperation.md @@ -8,7 +8,8 @@ Name | Type | Description | Notes **actions** | [**List[ActionInput]**](ActionInput.md) | | [optional] **app_name** | **str** | | [optional] **app_type** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**description** | **str** | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/CustomStat.md b/docs/CustomStat.md index 198b1ba..f573954 100644 --- a/docs/CustomStat.md +++ b/docs/CustomStat.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function** | **str** | The function of the custom statistic | [optional] +**is_rate** | **bool** | Indicates whether this statistic supports rate computation | [optional] **path** | **str** | The path of the custom statistic | [optional] ## Example diff --git a/docs/DataMigrationApi.md b/docs/DataMigrationApi.md index e2a0b64..cb37771 100644 --- a/docs/DataMigrationApi.md +++ b/docs/DataMigrationApi.md @@ -4,168 +4,10 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**poll_controller_migration_export**](DataMigrationApi.md#poll_controller_migration_export) | **GET** /api/v2/controller-migration/operations/export/{id} | -[**poll_controller_migration_import**](DataMigrationApi.md#poll_controller_migration_import) | **GET** /api/v2/controller-migration/operations/import/{id} | [**start_controller_migration_export**](DataMigrationApi.md#start_controller_migration_export) | **POST** /api/v2/controller-migration/operations/export | [**start_controller_migration_import**](DataMigrationApi.md#start_controller_migration_import) | **POST** /api/v2/controller-migration/operations/import | -# **poll_controller_migration_export** -> AsyncContext poll_controller_migration_export(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.DataMigrationApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controller_migration_export(id) - print("The response of DataMigrationApi->poll_controller_migration_export:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DataMigrationApi->poll_controller_migration_export: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controller_migration_import** -> AsyncContext poll_controller_migration_import(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.DataMigrationApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controller_migration_import(id) - print("The response of DataMigrationApi->poll_controller_migration_import:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DataMigrationApi->poll_controller_migration_import: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_controller_migration_export** > AsyncContext start_controller_migration_export(export_package_operation=export_package_operation) diff --git a/docs/DiagnosticsApi.md b/docs/DiagnosticsApi.md index 879c205..7c591fd 100644 --- a/docs/DiagnosticsApi.md +++ b/docs/DiagnosticsApi.md @@ -306,7 +306,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_v2_diagnostics_operations_export_id_get** -> AsyncOperationResponse api_v2_diagnostics_operations_export_id_get(id) +> AsyncContext api_v2_diagnostics_operations_export_id_get(id) @@ -319,7 +319,7 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -363,7 +363,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -461,7 +461,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_v2_diagnostics_operations_export_post** -> AsyncOperationResponse api_v2_diagnostics_operations_export_post(diagnostic_component_context=diagnostic_component_context) +> AsyncContext api_v2_diagnostics_operations_export_post(diagnostic_component_context=diagnostic_component_context) @@ -474,7 +474,7 @@ Start the diagnostic export operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.diagnostic_component_context import DiagnosticComponentContext from cyperf.rest import ApiException from pprint import pprint @@ -519,7 +519,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization diff --git a/docs/EditActionInput.md b/docs/EditActionInput.md index d9139ea..45cefc8 100644 --- a/docs/EditActionInput.md +++ b/docs/EditActionInput.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action_index** | **int** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/EditAppOperation.md b/docs/EditAppOperation.md index c556303..4f57f8c 100644 --- a/docs/EditAppOperation.md +++ b/docs/EditAppOperation.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **add_inputs** | [**List[AddInput]**](AddInput.md) | | [optional] +**app_description** | **str** | | [optional] **app_id** | **str** | | [optional] **app_name** | **str** | | [optional] -**app_parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**app_parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] **delete_inputs** | [**List[DeleteInput]**](DeleteInput.md) | | [optional] **edit_action_inputs** | [**List[EditActionInput]**](EditActionInput.md) | | [optional] **rename_inputs** | [**List[RenameInput]**](RenameInput.md) | | [optional] diff --git a/docs/EulaDetails.md b/docs/EulaDetails.md index d5a9ab9..ede2e91 100644 --- a/docs/EulaDetails.md +++ b/docs/EulaDetails.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] **accepted** | **bool** | | [default to False] -**text** | **str** | | [optional] +**id** | **str** | | [optional] **html** | **str** | | [optional] +**text** | **str** | | [optional] ## Example diff --git a/docs/EulaSummary.md b/docs/EulaSummary.md index f9f76d7..e4aff1d 100644 --- a/docs/EulaSummary.md +++ b/docs/EulaSummary.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] **accepted** | **bool** | | [default to False] +**id** | **str** | | [optional] ## Example diff --git a/docs/FileValue.md b/docs/FileValue.md index b98581b..7284b39 100644 --- a/docs/FileValue.md +++ b/docs/FileValue.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | The name of the file. | [optional] +**md5_sum** | **str** | The MD5 sum of the file | [optional] **payload** | **List[bytearray]** | The payload value of the file. | [optional] **resource_url** | **str** | The resource URL of the file. | [optional] **value** | **str** | Selected column name of the file (playlist type). | [optional] diff --git a/docs/GenericFile.md b/docs/GenericFile.md index 640336a..818600d 100644 --- a/docs/GenericFile.md +++ b/docs/GenericFile.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **md5** | **str** | The md5 value of the file | [optional] **metadata** | [**FileMetadata**](FileMetadata.md) | | [optional] **name** | **str** | The name of the file | [optional] -**options** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The characteristics of the file | [optional] +**options** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The characteristics of the file | [optional] **owner** | **str** | The user-visible name of the file's owner | [optional] [readonly] **owner_id** | **str** | The unique identifier of the file's owner | [optional] [readonly] **reference_links** | **Dict[str, int]** | | [optional] diff --git a/docs/GetAppsOperation.md b/docs/GetAppsOperation.md new file mode 100644 index 0000000..8c8163f --- /dev/null +++ b/docs/GetAppsOperation.md @@ -0,0 +1,35 @@ +# GetAppsOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**List[CategoryFilter]**](CategoryFilter.md) | | [optional] +**filter_mode** | **str** | | [optional] +**search_col** | **List[str]** | | [optional] +**search_val** | **List[str]** | | [optional] +**skip** | **str** | | [optional] +**sort** | [**List[SortBodyField]**](SortBodyField.md) | | [optional] +**take** | **str** | | [optional] + +## Example + +```python +from cyperf.models.get_apps_operation import GetAppsOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppsOperation from a JSON string +get_apps_operation_instance = GetAppsOperation.from_json(json) +# print the JSON string representation of the object +print(GetAppsOperation.to_json()) + +# convert the object into a dict +get_apps_operation_dict = get_apps_operation_instance.to_dict() +# create an instance of GetAppsOperation from a dict +get_apps_operation_from_dict = GetAppsOperation.from_dict(get_apps_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetConfigCategorieSubcategories200Response.md b/docs/GetConfigCategorieSubcategories200Response.md new file mode 100644 index 0000000..c03e8e0 --- /dev/null +++ b/docs/GetConfigCategorieSubcategories200Response.md @@ -0,0 +1,30 @@ +# GetConfigCategorieSubcategories200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetConfigCategorieSubcategories200Response from a JSON string +get_config_categorie_subcategories200_response_instance = GetConfigCategorieSubcategories200Response.from_json(json) +# print the JSON string representation of the object +print(GetConfigCategorieSubcategories200Response.to_json()) + +# convert the object into a dict +get_config_categorie_subcategories200_response_dict = get_config_categorie_subcategories200_response_instance.to_dict() +# create an instance of GetConfigCategorieSubcategories200Response from a dict +get_config_categorie_subcategories200_response_from_dict = GetConfigCategorieSubcategories200Response.from_dict(get_config_categorie_subcategories200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetConfigCategorieSubcategories200ResponseOneOf.md b/docs/GetConfigCategorieSubcategories200ResponseOneOf.md new file mode 100644 index 0000000..ef04046 --- /dev/null +++ b/docs/GetConfigCategorieSubcategories200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetConfigCategorieSubcategories200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a JSON string +get_config_categorie_subcategories200_response_one_of_instance = GetConfigCategorieSubcategories200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetConfigCategorieSubcategories200ResponseOneOf.to_json()) + +# convert the object into a dict +get_config_categorie_subcategories200_response_one_of_dict = get_config_categorie_subcategories200_response_one_of_instance.to_dict() +# create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a dict +get_config_categorie_subcategories200_response_one_of_from_dict = GetConfigCategorieSubcategories200ResponseOneOf.from_dict(get_config_categorie_subcategories200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupTLS13.md b/docs/GroupTLS13.md new file mode 100644 index 0000000..e4c37ad --- /dev/null +++ b/docs/GroupTLS13.md @@ -0,0 +1,31 @@ +# GroupTLS13 + +A TLSv1.3 group with deprecation status. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_deprecated** | **bool** | | +**name** | [**SupportedGroupTLS13**](SupportedGroupTLS13.md) | | + +## Example + +```python +from cyperf.models.group_tls13 import GroupTLS13 + +# TODO update the JSON string below +json = "{}" +# create an instance of GroupTLS13 from a JSON string +group_tls13_instance = GroupTLS13.from_json(json) +# print the JSON string representation of the object +print(GroupTLS13.to_json()) + +# convert the object into a dict +group_tls13_dict = group_tls13_instance.to_dict() +# create an instance of GroupTLS13 from a dict +group_tls13_from_dict = GroupTLS13.from_dict(group_tls13_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPNetwork.md b/docs/IPNetwork.md index dc57edb..dc15acf 100644 --- a/docs/IPNetwork.md +++ b/docs/IPNetwork.md @@ -12,16 +12,19 @@ Name | Type | Description | Notes **dns_resolver** | [**DNSResolver**](DNSResolver.md) | | [optional] **dns_server** | [**DNSServer**](DNSServer.md) | The DNS Server configuration for Network Segment | [optional] **dut_connections** | **List[str]** | The connected DUT network segments. | [optional] -**emulated_router** | **object** | | [optional] -**eth_range** | **object** | | [optional] +**emulated_router** | [**EmulatedRouter**](EmulatedRouter.md) | | [optional] +**eth_range** | [**EthRange**](EthRange.md) | | [optional] **ip_ranges** | [**List[IPRange]**](IPRange.md) | | [optional] **ip_sec_stacks** | [**List[IPSecStack]**](IPSecStack.md) | | [optional] **mac_dtls_stacks** | [**List[MacDtlsStack]**](MacDtlsStack.md) | | [optional] **tunnel_stacks** | [**List[TunnelStack]**](TunnelStack.md) | | [optional] +**vx_lan_stacks** | [**List[VxLANStack]**](VxLANStack.md) | | [optional] **active** | **bool** | A flag indicating if the network segment is active.(default: true) | [optional] **agent_assignments** | [**AgentAssignments**](AgentAssignments.md) | | [optional] +**inherit_streaming_cpu_allocation** | **bool** | A flag indicating if the CPU percentage used by agents assigned to this network segment for streaming purposes will be inherited from the objective settings (default: true). | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **min_agents** | **int** | The minimum number of agents that should be assigned to this network segment in a valid test (default: 1). | [optional] +**streaming_cpu_allocation** | **int** | The CPU percentage used by agents assigned to this network segment for streaming purposes (default: 25). | [optional] ## Example diff --git a/docs/LicensingApi.md b/docs/LicensingApi.md index 306c35e..fbdb093 100644 --- a/docs/LicensingApi.md +++ b/docs/LicensingApi.md @@ -26,7 +26,7 @@ Method | HTTP request | Description # **activate_licenses** -> AsyncOperationResponse activate_licenses(fulfillment_request=fulfillment_request) +> AsyncContext activate_licenses(fulfillment_request=fulfillment_request) Performs an online request to KSM and activates the requested licenses. @@ -37,7 +37,7 @@ Performs an online request to KSM and activates the requested licenses. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.rest import ApiException from pprint import pprint @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -98,13 +98,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deactivate_licenses** -> AsyncOperationResponse deactivate_licenses(fulfillment_request=fulfillment_request) +> AsyncContext deactivate_licenses(fulfillment_request=fulfillment_request) Performs an online request to KSM to deactivate the requested licenses. @@ -115,7 +115,7 @@ Performs an online request to KSM to deactivate the requested licenses. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.rest import ApiException from pprint import pprint @@ -161,7 +161,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -176,7 +176,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -254,7 +254,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_activation_code_info** -> AsyncOperationResponse get_activation_code_info(activation_code_request=activation_code_request) +> AsyncContext get_activation_code_info(activation_code_request=activation_code_request) Retrieves the activation code info from KSM. @@ -266,7 +266,7 @@ Retrieves the activation code info from KSM. ```python import cyperf from cyperf.models.activation_code_request import ActivationCodeRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -311,7 +311,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -326,13 +326,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_activation_code_info_list** -> AsyncOperationResponse get_activation_code_info_list(activation_code_list_request=activation_code_list_request) +> AsyncContext get_activation_code_info_list(activation_code_list_request=activation_code_list_request) Retrieves the activation code info list from KSM. @@ -344,7 +344,7 @@ Retrieves the activation code info list from KSM. ```python import cyperf from cyperf.models.activation_code_list_request import ActivationCodeListRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -389,7 +389,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -404,7 +404,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -489,7 +489,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_async_operation_status** -> AsyncOperationResponse get_async_operation_status(operation_type, id) +> AsyncContext get_async_operation_status(operation_type, id) Returns the status of an ongoing async operation. @@ -500,7 +500,7 @@ Returns the status of an ongoing async operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -547,7 +547,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -568,7 +568,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_counted_feature_stats** -> AsyncOperationResponse get_counted_feature_stats() +> AsyncContext get_counted_feature_stats() Retrieves the counted feature stats. @@ -579,7 +579,7 @@ Retrieves the counted feature stats. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -620,7 +620,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -635,13 +635,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_entitlement_code_info** -> AsyncOperationResponse get_entitlement_code_info(entitlement_code_request=entitlement_code_request) +> AsyncContext get_entitlement_code_info(entitlement_code_request=entitlement_code_request) Retrieves the activations codes of the supplied entitlement code from KSM. @@ -652,7 +652,7 @@ Retrieves the activations codes of the supplied entitlement code from KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.entitlement_code_request import EntitlementCodeRequest from cyperf.rest import ApiException from pprint import pprint @@ -698,7 +698,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -713,7 +713,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1023,7 +1023,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_license_async_operation_status** -> AsyncOperationResponse get_license_async_operation_status(license_id, operation_type, id) +> AsyncContext get_license_async_operation_status(license_id, operation_type, id) Returns the status of an ongoing async operation. @@ -1034,7 +1034,7 @@ Returns the status of an ongoing async operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1083,7 +1083,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1181,7 +1181,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **remove_reservation** -> AsyncOperationResponse remove_reservation(license_id, request_body=request_body) +> AsyncContext remove_reservation(license_id, request_body=request_body) Remove previously reserved features, thus making them available for checkout by other users. @@ -1192,7 +1192,7 @@ Remove previously reserved features, thus making them available for checkout by ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1239,7 +1239,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1254,13 +1254,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occurred. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **sync_licenses** -> AsyncOperationResponse sync_licenses() +> AsyncContext sync_licenses() Synchronize local licenses with KSM. @@ -1271,7 +1271,7 @@ Synchronize local licenses with KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1312,7 +1312,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1327,13 +1327,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test_backend_connectivity** -> AsyncOperationResponse test_backend_connectivity() +> AsyncContext test_backend_connectivity() Tests connection of the license server with KSM. @@ -1344,7 +1344,7 @@ Tests connection of the license server with KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1385,7 +1385,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1400,13 +1400,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_reservation** -> AsyncOperationResponse update_reservation(license_id, feature_reservation_reserve=feature_reservation_reserve) +> AsyncContext update_reservation(license_id, feature_reservation_reserve=feature_reservation_reserve) Retain over a period of time specific counts of installed features, that can be consumed only by current user. @@ -1417,7 +1417,7 @@ Retain over a period of time specific counts of installed features, that can be ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.feature_reservation_reserve import FeatureReservationReserve from cyperf.rest import ApiException from pprint import pprint @@ -1465,7 +1465,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1480,7 +1480,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occurred. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/Md2Tlv.md b/docs/Md2Tlv.md new file mode 100644 index 0000000..6a72839 --- /dev/null +++ b/docs/Md2Tlv.md @@ -0,0 +1,32 @@ +# Md2Tlv + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**md2_class** | **int** | | +**md2_type** | **int** | | +**md2_value** | **int** | | +**id** | **str** | | + +## Example + +```python +from cyperf.models.md2_tlv import Md2Tlv + +# TODO update the JSON string below +json = "{}" +# create an instance of Md2Tlv from a JSON string +md2_tlv_instance = Md2Tlv.from_json(json) +# print the JSON string representation of the object +print(Md2Tlv.to_json()) + +# convert the object into a dict +md2_tlv_dict = md2_tlv_instance.to_dict() +# create an instance of Md2Tlv from a dict +md2_tlv_from_dict = Md2Tlv.from_dict(md2_tlv_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Metadata.md b/docs/Metadata.md index 5c57877..d7fca70 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -7,8 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **direction** | **str** | The direction of the strike | [optional] **is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] -**keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The keywords of the strike | [optional] +**is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The keywords of the strike | [optional] **legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] +**no_multi_flow_support** | **bool** | If true, only a single application with this protocol id can be present in the configuration | [optional] **protocol** | **str** | The protocol of the strike | [optional] **rtp_profile_meta** | [**RTPProfileMeta**](RTPProfileMeta.md) | | [optional] **references** | [**List[Reference]**](Reference.md) | The references of the strike | [optional] diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index d9bb141..ef41a55 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -8,8 +8,6 @@ Method | HTTP request | Description [**get_notification_by_id**](NotificationsApi.md#get_notification_by_id) | **GET** /api/v2/notifications/{notificationId} | [**get_notification_counts**](NotificationsApi.md#get_notification_counts) | **GET** /api/v2/notification-counts | [**get_notifications**](NotificationsApi.md#get_notifications) | **GET** /api/v2/notifications | -[**poll_notifications_cleanup**](NotificationsApi.md#poll_notifications_cleanup) | **GET** /api/v2/notifications/operations/cleanup/{id} | -[**poll_notifications_dismiss**](NotificationsApi.md#poll_notifications_dismiss) | **GET** /api/v2/notifications/operations/dismiss/{id} | [**start_notifications_cleanup**](NotificationsApi.md#start_notifications_cleanup) | **POST** /api/v2/notifications/operations/cleanup | [**start_notifications_dismiss**](NotificationsApi.md#start_notifications_dismiss) | **POST** /api/v2/notifications/operations/dismiss | @@ -378,162 +376,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_notifications_cleanup** -> AsyncContext poll_notifications_cleanup(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.NotificationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_notifications_cleanup(id) - print("The response of NotificationsApi->poll_notifications_cleanup:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling NotificationsApi->poll_notifications_cleanup: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_notifications_dismiss** -> AsyncContext poll_notifications_dismiss(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.NotificationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_notifications_dismiss(id) - print("The response of NotificationsApi->poll_notifications_dismiss:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling NotificationsApi->poll_notifications_dismiss: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_notifications_cleanup** > AsyncContext start_notifications_cleanup() diff --git a/docs/ObjectiveType.md b/docs/ObjectiveType.md index 02ba538..6ed880e 100644 --- a/docs/ObjectiveType.md +++ b/docs/ObjectiveType.md @@ -13,6 +13,8 @@ * `CONCURRENT_CONNECTIONS` (value: `'Concurrent connections'`) +* `PROMPTS_PER_SECOND` (value: `'Prompts per second'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OpenAPIDefinitions.md b/docs/OpenAPIDefinitions.md index a95a4c4..2db53a2 100644 --- a/docs/OpenAPIDefinitions.md +++ b/docs/OpenAPIDefinitions.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**open_api_definitions** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The OpenAPI definitions for CyPerf data model | [optional] +**open_api_definitions** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The OpenAPI definitions for CyPerf data model | [optional] ## Example diff --git a/docs/ParamType.md b/docs/ParamType.md index 95c6556..6b2051d 100644 --- a/docs/ParamType.md +++ b/docs/ParamType.md @@ -25,6 +25,8 @@ * `INT` (value: `'int'`) +* `STATS_MINUS_PROFILE` (value: `'stats-profile'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ParameterMeta.md b/docs/ParameterMeta.md new file mode 100644 index 0000000..cbb043c --- /dev/null +++ b/docs/ParameterMeta.md @@ -0,0 +1,30 @@ +# ParameterMeta + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matches** | [**List[ParameterMatch]**](ParameterMatch.md) | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from cyperf.models.parameter_meta import ParameterMeta + +# TODO update the JSON string below +json = "{}" +# create an instance of ParameterMeta from a JSON string +parameter_meta_instance = ParameterMeta.from_json(json) +# print the JSON string representation of the object +print(ParameterMeta.to_json()) + +# convert the object into a dict +parameter_meta_dict = parameter_meta_instance.to_dict() +# create an instance of ParameterMeta from a dict +parameter_meta_from_dict = ParameterMeta.from_dict(parameter_meta_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ParameterMetadata.md b/docs/ParameterMetadata.md index 361506e..9a2c157 100644 --- a/docs/ParameterMetadata.md +++ b/docs/ParameterMetadata.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **legacy_names** | **List[str]** | The names of the equivalent parameters | [optional] **mandatory** | **bool** | The mandatory status of the parameter | [optional] **payload** | [**PayloadMetadata**](PayloadMetadata.md) | | [optional] +**playlist** | [**PlaylistMetadata**](PlaylistMetadata.md) | | [optional] **readonly** | **bool** | The read-only status of the parameter | [optional] **shared** | **bool** | The shared status of the parameter | [optional] **type** | **str** | The type of the parameter | [optional] diff --git a/docs/PlaylistMetadata.md b/docs/PlaylistMetadata.md new file mode 100644 index 0000000..140157c --- /dev/null +++ b/docs/PlaylistMetadata.md @@ -0,0 +1,30 @@ +# PlaylistMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**column** | **str** | The selected column | [optional] +**file_name** | **str** | The path of the file | [optional] + +## Example + +```python +from cyperf.models.playlist_metadata import PlaylistMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of PlaylistMetadata from a JSON string +playlist_metadata_instance = PlaylistMetadata.from_json(json) +# print the JSON string representation of the object +print(PlaylistMetadata.to_json()) + +# convert the object into a dict +playlist_metadata_dict = playlist_metadata_instance.to_dict() +# create an instance of PlaylistMetadata from a dict +playlist_metadata_from_dict = PlaylistMetadata.from_dict(playlist_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PluginStats.md b/docs/PluginStats.md index 628c84b..8faf9d6 100644 --- a/docs/PluginStats.md +++ b/docs/PluginStats.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **plugin** | **str** | The name of the plugin | [optional] -**stats** | **List[Dict[str, AttackMetadataKeywordsInner]]** | The statistics to be ingested | [optional] +**stats** | **List[Dict[str, AppsecAppMetadataKeywordsInner]]** | The statistics to be ingested | [optional] **version** | **str** | The version of the plugin | [optional] ## Example diff --git a/docs/Port.md b/docs/Port.md index bb8a495..9fa8994 100644 --- a/docs/Port.md +++ b/docs/Port.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **reserved_by** | **str** | The owner of the port | [optional] **speed** | **str** | The port's speed | [optional] **status** | **str** | The current status of the port: ready or not ready | [optional] +**tags** | **List[str]** | A list of tags | [optional] **traffic_status** | **str** | The traffic status of the port | [optional] ## Example diff --git a/docs/QUICProfile.md b/docs/QUICProfile.md new file mode 100644 index 0000000..9473738 --- /dev/null +++ b/docs/QUICProfile.md @@ -0,0 +1,35 @@ +# QUICProfile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] +**min_rto** | **int** | | [optional] +**name** | **str** | The name of the QUIC profile. | [optional] +**quic_version** | [**QUICVersion**](QUICVersion.md) | | [optional] +**rx_buffer** | **int** | | [optional] +**server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.quic_profile import QUICProfile + +# TODO update the JSON string below +json = "{}" +# create an instance of QUICProfile from a JSON string +quic_profile_instance = QUICProfile.from_json(json) +# print the JSON string representation of the object +print(QUICProfile.to_json()) + +# convert the object into a dict +quic_profile_dict = quic_profile_instance.to_dict() +# create an instance of QUICProfile from a dict +quic_profile_from_dict = QUICProfile.from_dict(quic_profile_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QUICVersion.md b/docs/QUICVersion.md new file mode 100644 index 0000000..e4d44eb --- /dev/null +++ b/docs/QUICVersion.md @@ -0,0 +1,10 @@ +# QUICVersion + + +## Enum + +* `Q043` (value: `'Q043'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md index 19e9a35..58775af 100644 --- a/docs/ReportsApi.md +++ b/docs/ReportsApi.md @@ -6,8 +6,6 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**download_pdf**](ReportsApi.md#download_pdf) | **GET** /api/v2/results/{resultId}/download-pdf/{pdfId} | [**get_result_download_csv_by_id**](ReportsApi.md#get_result_download_csv_by_id) | **GET** /api/v2/results/{resultId}/download-csv/{downloadCsvId} | -[**poll_result_generate_csv**](ReportsApi.md#poll_result_generate_csv) | **GET** /api/v2/results/{resultId}/operations/generate-csv/{id} | -[**poll_result_generate_pdf**](ReportsApi.md#poll_result_generate_pdf) | **GET** /api/v2/results/{resultId}/operations/generate-pdf/{id} | [**start_result_generate_csv**](ReportsApi.md#start_result_generate_csv) | **POST** /api/v2/results/{resultId}/operations/generate-csv | [**start_result_generate_pdf**](ReportsApi.md#start_result_generate_pdf) | **POST** /api/v2/results/{resultId}/operations/generate-pdf | @@ -169,166 +167,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_result_generate_csv** -> AsyncContext poll_result_generate_csv(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ReportsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_csv(result_id, id) - print("The response of ReportsApi->poll_result_generate_csv:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportsApi->poll_result_generate_csv: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_result_generate_pdf** -> AsyncContext poll_result_generate_pdf(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ReportsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_pdf(result_id, id) - print("The response of ReportsApi->poll_result_generate_pdf:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportsApi->poll_result_generate_pdf: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_result_generate_csv** > AsyncContext start_result_generate_csv(result_id, generate_csv_reports_operation=generate_csv_reports_operation) diff --git a/docs/ResultMetadata.md b/docs/ResultMetadata.md index 6a2300b..cf57077 100644 --- a/docs/ResultMetadata.md +++ b/docs/ResultMetadata.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **owner_id** | **str** | The unique identifier of the user who owns the result | [optional] [readonly] **pdf_url** | **str** | The URL of the cached pdf report | [optional] **pinned** | **bool** | A flag that indicates if the result's configuration is pinned | [optional] +**report_types** | **List[str]** | The report types supported for the result | [optional] [readonly] **reporting_links** | [**List[APILink]**](APILink.md) | A list of links to result reporting resources | [optional] **result_url** | **str** | The URL of the result | [optional] [readonly] **start_time** | **int** | A Unix timestamp that indicates when the test was started | [optional] [readonly] diff --git a/docs/Scenario.md b/docs/Scenario.md index 700d401..f019ab1 100644 --- a/docs/Scenario.md +++ b/docs/Scenario.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] diff --git a/docs/SecondaryObjective.md b/docs/SecondaryObjective.md index d4a1535..3dad129 100644 --- a/docs/SecondaryObjective.md +++ b/docs/SecondaryObjective.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **max_simulated_users_per_interval** | **int** | Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit) | [optional] **objective_unit** | **str** | The objective's unit. | **objective_value** | **float** | The value of the secondary objective. This value will be used for the whole duration of the test. | -**type** | [**ObjectiveType**](ObjectiveType.md) | The objective's type (default: SimulatedUsers). | +**type** | [**ObjectiveType**](ObjectiveType.md) | | ## Example diff --git a/docs/SessionsApi.md b/docs/SessionsApi.md index 2a95787..f34d6a3 100644 --- a/docs/SessionsApi.md +++ b/docs/SessionsApi.md @@ -20,15 +20,6 @@ Method | HTTP request | Description [**patch_session**](SessionsApi.md#patch_session) | **PATCH** /api/v2/sessions/{sessionId} | [**patch_session_meta**](SessionsApi.md#patch_session_meta) | **PATCH** /api/v2/sessions/{sessionId}/meta/{metaId} | [**patch_session_test**](SessionsApi.md#patch_session_test) | **PATCH** /api/v2/sessions/{sessionId}/test | -[**poll_config_add_applications**](SessionsApi.md#poll_config_add_applications) | **GET** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id} | -[**poll_session_config_granular_stats_default_dashboards**](SessionsApi.md#poll_session_config_granular_stats_default_dashboards) | **GET** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} | -[**poll_session_config_save**](SessionsApi.md#poll_session_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | -[**poll_session_load_config**](SessionsApi.md#poll_session_load_config) | **GET** /api/v2/sessions/{sessionId}/operations/loadConfig/{id} | -[**poll_session_prepare_test**](SessionsApi.md#poll_session_prepare_test) | **GET** /api/v2/sessions/{sessionId}/operations/prepareTest/{id} | -[**poll_session_test_end**](SessionsApi.md#poll_session_test_end) | **GET** /api/v2/sessions/{sessionId}/operations/testEnd/{id} | -[**poll_session_test_init**](SessionsApi.md#poll_session_test_init) | **GET** /api/v2/sessions/{sessionId}/operations/testInit/{id} | -[**poll_session_touch**](SessionsApi.md#poll_session_touch) | **GET** /api/v2/sessions/{sessionId}/operations/touch/{id} | -[**poll_sessions_batch_delete**](SessionsApi.md#poll_sessions_batch_delete) | **GET** /api/v2/sessions/operations/batch-delete/{id} | [**start_config_add_applications**](SessionsApi.md#start_config_add_applications) | **POST** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications | [**start_session_config_granular_stats_default_dashboards**](SessionsApi.md#start_session_config_granular_stats_default_dashboards) | **POST** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards | [**start_session_config_save**](SessionsApi.md#start_session_config_save) | **POST** /api/v2/sessions/{sessionId}/config/operations/save | @@ -1315,725 +1306,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_config_add_applications** -> AsyncContext poll_config_add_applications(session_id, traffic_profile_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - traffic_profile_id = 'traffic_profile_id_example' # str | The ID of the traffic profile. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_config_add_applications(session_id, traffic_profile_id, id) - print("The response of SessionsApi->poll_config_add_applications:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_config_add_applications: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **traffic_profile_id** | **str**| The ID of the traffic profile. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_config_granular_stats_default_dashboards** -> AsyncContext poll_session_config_granular_stats_default_dashboards(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_config_granular_stats_default_dashboards(session_id, id) - print("The response of SessionsApi->poll_session_config_granular_stats_default_dashboards:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_config_granular_stats_default_dashboards: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_config_save** -> AsyncContext poll_session_config_save(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_config_save(session_id, id) - print("The response of SessionsApi->poll_session_config_save:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_config_save: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_load_config** -> AsyncContext poll_session_load_config(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_load_config(session_id, id) - print("The response of SessionsApi->poll_session_load_config:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_load_config: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_prepare_test** -> AsyncContext poll_session_prepare_test(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_prepare_test(session_id, id) - print("The response of SessionsApi->poll_session_prepare_test:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_prepare_test: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_test_end** -> AsyncContext poll_session_test_end(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_test_end(session_id, id) - print("The response of SessionsApi->poll_session_test_end:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_test_end: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_test_init** -> AsyncContext poll_session_test_init(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_test_init(session_id, id) - print("The response of SessionsApi->poll_session_test_init:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_test_init: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_touch** -> AsyncContext poll_session_touch(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_touch(session_id, id) - print("The response of SessionsApi->poll_session_touch:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_touch: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_sessions_batch_delete** -> AsyncContext poll_sessions_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_sessions_batch_delete(id) - print("The response of SessionsApi->poll_sessions_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_sessions_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_config_add_applications** > AsyncContext start_config_add_applications(session_id, traffic_profile_id, external_resource_info=external_resource_info) diff --git a/docs/SetControllerAppOperation.md b/docs/SetControllerAppOperation.md new file mode 100644 index 0000000..a30cc4e --- /dev/null +++ b/docs/SetControllerAppOperation.md @@ -0,0 +1,31 @@ +# SetControllerAppOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_id** | **str** | The id of the app to activate on the controllers. | [optional] +**controllers** | **List[str]** | The controller ids for which to activate the app. | [optional] +**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] + +## Example + +```python +from cyperf.models.set_controller_app_operation import SetControllerAppOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of SetControllerAppOperation from a JSON string +set_controller_app_operation_instance = SetControllerAppOperation.from_json(json) +# print the JSON string representation of the object +print(SetControllerAppOperation.to_json()) + +# convert the object into a dict +set_controller_app_operation_dict = set_controller_app_operation_instance.to_dict() +# create an instance of SetControllerAppOperation from a dict +set_controller_app_operation_from_dict = SetControllerAppOperation.from_dict(set_controller_app_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetNodesAppOperation.md b/docs/SetNodesAppOperation.md new file mode 100644 index 0000000..21446da --- /dev/null +++ b/docs/SetNodesAppOperation.md @@ -0,0 +1,31 @@ +# SetNodesAppOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_id** | **str** | The id of the app to activate on the compute nodes. | [optional] +**controllers** | [**List[NodesByController]**](NodesByController.md) | The controllers that the compute nodes are part of. | [optional] +**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] + +## Example + +```python +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of SetNodesAppOperation from a JSON string +set_nodes_app_operation_instance = SetNodesAppOperation.from_json(json) +# print the JSON string representation of the object +print(SetNodesAppOperation.to_json()) + +# convert the object into a dict +set_nodes_app_operation_dict = set_nodes_app_operation_instance.to_dict() +# create an instance of SetNodesAppOperation from a dict +set_nodes_app_operation_from_dict = SetNodesAppOperation.from_dict(set_nodes_app_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Snapshot.md b/docs/Snapshot.md index e0fd70e..f4342e7 100644 --- a/docs/Snapshot.md +++ b/docs/Snapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **timestamp** | **int** | The Unix timestamp in milliseconds at which the snapshot was taken | [optional] -**values** | **List[List[AttackMetadataKeywordsInner]]** | The values of the snapshot. The order of the values corresponds to the order of columns in result. | [optional] +**values** | **List[List[AppsecAppMetadataKeywordsInner]]** | The values of the snapshot. The order of the values corresponds to the order of columns in result. | [optional] ## Example diff --git a/docs/SnowflakeExporter.md b/docs/SnowflakeExporter.md new file mode 100644 index 0000000..f035ab7 --- /dev/null +++ b/docs/SnowflakeExporter.md @@ -0,0 +1,33 @@ +# SnowflakeExporter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | Indicates whether the snowflake stats exporter is enabled or not. | +**polling_interval** | **int** | Polling interval used for fetching and uploading data. | [optional] +**profile** | [**Params**](Params.md) | The json snowflake profile. | [optional] +**server_url** | **str** | Snowflake endpoint used for uploading data. | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.snowflake_exporter import SnowflakeExporter + +# TODO update the JSON string below +json = "{}" +# create an instance of SnowflakeExporter from a JSON string +snowflake_exporter_instance = SnowflakeExporter.from_json(json) +# print the JSON string representation of the object +print(SnowflakeExporter.to_json()) + +# convert the object into a dict +snowflake_exporter_dict = snowflake_exporter_instance.to_dict() +# create an instance of SnowflakeExporter from a dict +snowflake_exporter_from_dict = SnowflakeExporter.from_dict(snowflake_exporter_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpecificObjective.md b/docs/SpecificObjective.md index 858c0a7..132edc6 100644 --- a/docs/SpecificObjective.md +++ b/docs/SpecificObjective.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **max_pending_simulated_users** | **str** | Only applies if Type is SimulatedUsers. The maximum number or percentage of users that can be in the pending state (not yet connected and sending traffic) at any time. You can either specify a number or a percentage using the % sign. | **max_simulated_users_per_interval** | **int** | Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit) | [optional] **timeline** | [**List[TimelineSegmentUnion]**](TimelineSegmentUnion.md) | The timeline of this objective. | [optional] -**type** | [**ObjectiveType**](ObjectiveType.md) | The objective's type (default: Throughput). | +**type** | [**ObjectiveType**](ObjectiveType.md) | | **unit** | [**ObjectiveUnit**](ObjectiveUnit.md) | The objective's unit. Must be one of: bps or ''. | **id** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index 33fb993..e4b4b0b 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -9,7 +9,6 @@ Method | HTTP request | Description [**get_result_stat_by_id**](StatisticsApi.md#get_result_stat_by_id) | **GET** /api/v2/results/{resultId}/stats/{statId} | [**get_result_stats**](StatisticsApi.md#get_result_stats) | **GET** /api/v2/results/{resultId}/stats | [**get_stats_plugins**](StatisticsApi.md#get_stats_plugins) | **GET** /api/v2/stats/plugins | -[**poll_stats_plugins_ingest**](StatisticsApi.md#poll_stats_plugins_ingest) | **GET** /api/v2/stats/plugins/operations/ingest/{id} | [**start_stats_plugins_ingest**](StatisticsApi.md#start_stats_plugins_ingest) | **POST** /api/v2/stats/plugins/operations/ingest | @@ -421,84 +420,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_stats_plugins_ingest** -> AsyncContext poll_stats_plugins_ingest(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.StatisticsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_stats_plugins_ingest(id) - print("The response of StatisticsApi->poll_stats_plugins_ingest:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StatisticsApi->poll_stats_plugins_ingest: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_stats_plugins_ingest** > AsyncContext start_stats_plugins_ingest(ingest_operation=ingest_operation) diff --git a/docs/StreamPayloadType.md b/docs/StreamPayloadType.md index 2aa633b..7564319 100644 --- a/docs/StreamPayloadType.md +++ b/docs/StreamPayloadType.md @@ -7,7 +7,7 @@ * `PSEUDORANDOM` (value: `'PSEUDORANDOM'`) -* `NULL` (value: `'null'`) +* `NULL` (value: `'NULL'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SupportedGroupTLS13.md b/docs/SupportedGroupTLS13.md index 69e1439..2bbaca1 100644 --- a/docs/SupportedGroupTLS13.md +++ b/docs/SupportedGroupTLS13.md @@ -10,40 +10,30 @@ The TLSv1.3 supported groups (default: P-256). * `P_MINUS_521` (value: `'P-521'`) -* `X25519_KYBER768` (value: `'X25519_KYBER768'`) - -* `X25519_KYBER512` (value: `'X25519_KYBER512'`) - * `X25519_MLKEM512` (value: `'X25519_MLKEM512'`) * `X25519_MLKEM768` (value: `'X25519_MLKEM768'`) -* `KYBER768` (value: `'KYBER768'`) - * `MLKEM768` (value: `'MLKEM768'`) -* `KYBER512` (value: `'KYBER512'`) - * `MLKEM512` (value: `'MLKEM512'`) -* `KYBER1024` (value: `'KYBER1024'`) - * `MLKEM1024` (value: `'MLKEM1024'`) -* `P384_KYBER768` (value: `'P384_KYBER768'`) - -* `P256_KYBER512` (value: `'P256_KYBER512'`) - -* `P384_MLKEM1024` (value: `'P384_MLKEM1024'`) +* `SECP384R1MLKEM1024` (value: `'SecP384r1MLKEM1024'`) * `X448_MLKEM768` (value: `'X448_MLKEM768'`) * `P384_MLKEM768` (value: `'P384_MLKEM768'`) -* `P256_MLKEM768` (value: `'P256_MLKEM768'`) +* `SECP256R1MLKEM768` (value: `'SecP256r1MLKEM768'`) * `P256_MLKEM512` (value: `'P256_MLKEM512'`) +* `X25519` (value: `'X25519'`) + +* `P521_MLKEM1024` (value: `'P521_MLKEM1024'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SystemInfo.md b/docs/SystemInfo.md index 06b74bc..c97c1c5 100644 --- a/docs/SystemInfo.md +++ b/docs/SystemInfo.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**arch** | **str** | | [optional] [readonly] **chassis_info** | [**ChassisInfo**](ChassisInfo.md) | | [optional] **kernel_version** | **str** | | [optional] [readonly] **os_name** | **str** | | [optional] [readonly] diff --git a/docs/TLSProfile.md b/docs/TLSProfile.md index 4299987..10f7701 100644 --- a/docs/TLSProfile.md +++ b/docs/TLSProfile.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **ciphers13** | [**List[CipherTLS13]**](CipherTLS13.md) | | [optional] **dh_file** | [**Params**](Params.md) | | [optional] **get_tls_conflicts** | **List[bytearray]** | | [optional] +**groups13** | [**List[GroupTLS13]**](GroupTLS13.md) | | [optional] **immediate_close** | **bool** | The immediate FIN after close notify | [optional] **key_file** | [**Params**](Params.md) | The key file of the TLS profile. | [optional] **key_file_password** | **str** | The key file password of the TLS profile. | [optional] diff --git a/docs/TestInfo.md b/docs/TestInfo.md index 2cc3e3a..55b5c0e 100644 --- a/docs/TestInfo.md +++ b/docs/TestInfo.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **test_initialized** | **int** | A Unix timestamp that indicates when the last test was initialized | [optional] **test_started** | **int** | A Unix timestamp that indicates when the test was started | [optional] **test_stopped** | **int** | A Unix timestamp that indicates when the test was stopped. May be null if the test is still running. | [optional] +**test_usage** | [**TestUsage**](TestUsage.md) | | [optional] ## Example diff --git a/docs/TestOperationsApi.md b/docs/TestOperationsApi.md index 2dd0003..f72b493 100644 --- a/docs/TestOperationsApi.md +++ b/docs/TestOperationsApi.md @@ -4,11 +4,6 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**poll_test_calibrate_start**](TestOperationsApi.md#poll_test_calibrate_start) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id} | -[**poll_test_calibrate_stop**](TestOperationsApi.md#poll_test_calibrate_stop) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id} | -[**poll_test_run_abort**](TestOperationsApi.md#poll_test_run_abort) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/abort/{id} | -[**poll_test_run_start**](TestOperationsApi.md#poll_test_run_start) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/start/{id} | -[**poll_test_run_stop**](TestOperationsApi.md#poll_test_run_stop) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/stop/{id} | [**start_test_calibrate_start**](TestOperationsApi.md#start_test_calibrate_start) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/start | [**start_test_calibrate_stop**](TestOperationsApi.md#start_test_calibrate_stop) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop | [**start_test_run_abort**](TestOperationsApi.md#start_test_run_abort) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/abort | @@ -16,406 +11,6 @@ Method | HTTP request | Description [**start_test_run_stop**](TestOperationsApi.md#start_test_run_stop) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/stop | -# **poll_test_calibrate_start** -> AsyncContext poll_test_calibrate_start(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_calibrate_start(session_id, id) - print("The response of TestOperationsApi->poll_test_calibrate_start:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_calibrate_start: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_calibrate_stop** -> AsyncContext poll_test_calibrate_stop(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_calibrate_stop(session_id, id) - print("The response of TestOperationsApi->poll_test_calibrate_stop:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_calibrate_stop: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_abort** -> AsyncContext poll_test_run_abort(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_abort(session_id, id) - print("The response of TestOperationsApi->poll_test_run_abort:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_abort: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_start** -> AsyncContext poll_test_run_start(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_start(session_id, id) - print("The response of TestOperationsApi->poll_test_run_start:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_start: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_stop** -> AsyncContext poll_test_run_stop(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_stop(session_id, id) - print("The response of TestOperationsApi->poll_test_run_stop:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_stop: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_test_calibrate_start** > AsyncContext start_test_calibrate_start(session_id) diff --git a/docs/TestResultsApi.md b/docs/TestResultsApi.md index 6de66cb..e9463f9 100644 --- a/docs/TestResultsApi.md +++ b/docs/TestResultsApi.md @@ -14,10 +14,7 @@ Method | HTTP request | Description [**get_result_files**](TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | [**get_results**](TestResultsApi.md#get_results) | **GET** /api/v2/results | [**get_results_tags**](TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | -[**poll_result_generate_all**](TestResultsApi.md#poll_result_generate_all) | **GET** /api/v2/results/{resultId}/operations/generate-all/{id} | -[**poll_result_generate_results**](TestResultsApi.md#poll_result_generate_results) | **GET** /api/v2/results/{resultId}/operations/generate-results/{id} | -[**poll_result_load**](TestResultsApi.md#poll_result_load) | **GET** /api/v2/results/{resultId}/operations/load/{id} | -[**poll_results_batch_delete**](TestResultsApi.md#poll_results_batch_delete) | **GET** /api/v2/results/operations/batch-delete/{id} | +[**start_result_export_events**](TestResultsApi.md#start_result_export_events) | **POST** /api/v2/results/{resultId}/operations/export-events | [**start_result_generate_all**](TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | [**start_result_generate_results**](TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | [**start_result_load**](TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -821,12 +818,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_result_generate_all** -> AsyncContext poll_result_generate_all(result_id, id) +# **start_result_export_events** +> AsyncContext start_result_export_events(result_id) -Get the state of an ongoing operation. +Export events file. ### Example @@ -859,14 +856,13 @@ with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.TestResultsApi(api_client) result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. try: - api_response = api_instance.poll_result_generate_all(result_id, id) - print("The response of TestResultsApi->poll_result_generate_all:\n") + api_response = api_instance.start_result_export_events(result_id) + print("The response of TestResultsApi->start_result_export_events:\n") pprint(api_response) except Exception as e: - print("Exception when calling TestResultsApi->poll_result_generate_all: %s\n" % e) + print("Exception when calling TestResultsApi->start_result_export_events: %s\n" % e) ``` @@ -877,7 +873,6 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | ### Return type @@ -896,246 +891,7 @@ 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_result_generate_results** -> AsyncContext poll_result_generate_results(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_results(result_id, id) - print("The response of TestResultsApi->poll_result_generate_results:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_result_generate_results: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_result_load** -> AsyncContext poll_result_load(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_load(result_id, id) - print("The response of TestResultsApi->poll_result_load:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_result_load: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_results_batch_delete** -> AsyncContext poll_results_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_results_batch_delete(id) - print("The response of TestResultsApi->poll_results_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_results_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | +**202** | Details about the operation that just started | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TestUsage.md b/docs/TestUsage.md new file mode 100644 index 0000000..332271a --- /dev/null +++ b/docs/TestUsage.md @@ -0,0 +1,30 @@ +# TestUsage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**used_agents** | **List[str]** | The agents used by the current test | [optional] +**used_licenses** | **Dict[str, int]** | Feature types used by the current test and their respective counts | [optional] + +## Example + +```python +from cyperf.models.test_usage import TestUsage + +# TODO update the JSON string below +json = "{}" +# create an instance of TestUsage from a JSON string +test_usage_instance = TestUsage.from_json(json) +# print the JSON string representation of the object +print(TestUsage.to_json()) + +# convert the object into a dict +test_usage_dict = test_usage_instance.to_dict() +# create an instance of TestUsage from a dict +test_usage_from_dict = TestUsage.from_dict(test_usage_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TrafficProfileBase.md b/docs/TrafficProfileBase.md index 96f745f..31f48b9 100644 --- a/docs/TrafficProfileBase.md +++ b/docs/TrafficProfileBase.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/TransportProfile.md b/docs/TransportProfile.md index 6341000..c774900 100644 --- a/docs/TransportProfile.md +++ b/docs/TransportProfile.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **client_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **ip_tos** | **int** | | [optional] **rtp_profile** | [**RTPProfile**](RTPProfile.md) | | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **server_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **udp_profile** | [**UdpProfile**](UdpProfile.md) | | [optional] diff --git a/docs/TransportProfileBase.md b/docs/TransportProfileBase.md index 9d21b20..7f9a509 100644 --- a/docs/TransportProfileBase.md +++ b/docs/TransportProfileBase.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **client_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **ip_tos** | **int** | | [optional] **rtp_profile** | [**RTPProfile**](RTPProfile.md) | | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **server_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **udp_profile** | [**UdpProfile**](UdpProfile.md) | | [optional] diff --git a/docs/UpdatePortTagsOperation.md b/docs/UpdatePortTagsOperation.md new file mode 100644 index 0000000..ecdf4a6 --- /dev/null +++ b/docs/UpdatePortTagsOperation.md @@ -0,0 +1,31 @@ +# UpdatePortTagsOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**List[PortsByController]**](PortsByController.md) | The controllers that the ports are part of. | [optional] +**tags_to_add** | **List[str]** | The list of tags to add to the port selection | [optional] +**tags_to_remove** | **List[str]** | The list of tags to remove from the port selection | [optional] + +## Example + +```python +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdatePortTagsOperation from a JSON string +update_port_tags_operation_instance = UpdatePortTagsOperation.from_json(json) +# print the JSON string representation of the object +print(UpdatePortTagsOperation.to_json()) + +# convert the object into a dict +update_port_tags_operation_dict = update_port_tags_operation_instance.to_dict() +# create an instance of UpdatePortTagsOperation from a dict +update_port_tags_operation_from_dict = UpdatePortTagsOperation.from_dict(update_port_tags_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UtilsApi.md b/docs/UtilsApi.md index 3f6844d..22033a9 100644 --- a/docs/UtilsApi.md +++ b/docs/UtilsApi.md @@ -16,13 +16,6 @@ Method | HTTP request | Description [**get_log_config**](UtilsApi.md#get_log_config) | **GET** /api/v2/log-config | [**get_time**](UtilsApi.md#get_time) | **GET** /api/v2/time | [**list_eulas**](UtilsApi.md#list_eulas) | **GET** /eula/v1/eula | list of EULAs -[**poll_cert_manager_generate**](UtilsApi.md#poll_cert_manager_generate) | **GET** /api/v2/cert-manager/operations/generate/{id} | -[**poll_cert_manager_upload**](UtilsApi.md#poll_cert_manager_upload) | **GET** /api/v2/cert-manager/operations/upload/{id} | -[**poll_disk_usage_cleanup_diagnostics**](UtilsApi.md#poll_disk_usage_cleanup_diagnostics) | **GET** /api/v2/disk-usage/operations/cleanup-diagnostics/{id} | -[**poll_disk_usage_cleanup_logs**](UtilsApi.md#poll_disk_usage_cleanup_logs) | **GET** /api/v2/disk-usage/operations/cleanup-logs/{id} | -[**poll_disk_usage_cleanup_migration**](UtilsApi.md#poll_disk_usage_cleanup_migration) | **GET** /api/v2/disk-usage/operations/cleanup-migration/{id} | -[**poll_disk_usage_cleanup_notifications**](UtilsApi.md#poll_disk_usage_cleanup_notifications) | **GET** /api/v2/disk-usage/operations/cleanup-notifications/{id} | -[**poll_disk_usage_cleanup_results**](UtilsApi.md#poll_disk_usage_cleanup_results) | **GET** /api/v2/disk-usage/operations/cleanup-results/{id} | [**post_eula**](UtilsApi.md#post_eula) | **POST** /eula/v1/eula/CyPerf | Update properties an EULA [**start_cert_manager_generate**](UtilsApi.md#start_cert_manager_generate) | **POST** /api/v2/cert-manager/operations/generate | [**start_cert_manager_upload**](UtilsApi.md#start_cert_manager_upload) | **POST** /api/v2/cert-manager/operations/upload | @@ -922,552 +915,6 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_cert_manager_generate** -> AsyncContext poll_cert_manager_generate(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_cert_manager_generate(id) - print("The response of UtilsApi->poll_cert_manager_generate:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_cert_manager_generate: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_cert_manager_upload** -> AsyncContext poll_cert_manager_upload(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_cert_manager_upload(id) - print("The response of UtilsApi->poll_cert_manager_upload:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_cert_manager_upload: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_diagnostics** -> AsyncContext poll_disk_usage_cleanup_diagnostics(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_diagnostics(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_diagnostics:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_diagnostics: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_logs** -> AsyncContext poll_disk_usage_cleanup_logs(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_logs(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_logs:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_logs: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_migration** -> AsyncContext poll_disk_usage_cleanup_migration(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_migration(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_migration:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_migration: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_notifications** -> AsyncContext poll_disk_usage_cleanup_notifications(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_notifications(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_notifications:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_notifications: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_results** -> AsyncContext poll_disk_usage_cleanup_results(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_results(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_results:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_results: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_eula** > str post_eula(eula_summary=eula_summary) diff --git a/docs/VxLANId.md b/docs/VxLANId.md new file mode 100644 index 0000000..58d2b24 --- /dev/null +++ b/docs/VxLANId.md @@ -0,0 +1,30 @@ +# VxLANId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vx_lan_id** | **int** | | +**id** | **str** | | + +## Example + +```python +from cyperf.models.vx_lanid import VxLANId + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANId from a JSON string +vx_lanid_instance = VxLANId.from_json(json) +# print the JSON string representation of the object +print(VxLANId.to_json()) + +# convert the object into a dict +vx_lanid_dict = vx_lanid_instance.to_dict() +# create an instance of VxLANId from a dict +vx_lanid_from_dict = VxLANId.from_dict(vx_lanid_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VxLANRange.md b/docs/VxLANRange.md new file mode 100644 index 0000000..0c3a9c8 --- /dev/null +++ b/docs/VxLANRange.md @@ -0,0 +1,45 @@ +# VxLANRange + +The VxLAN IP Ranges assigned to the current test configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hacked_inner_remote_ip_incr** | **str** | | +**hacked_inner_remote_ip_start** | **str** | | +**md2_tlvs** | [**List[Md2Tlv]**](Md2Tlv.md) | | [optional] +**remote_vtep_ip_local_count** | **int** | The number of remote VTEP IPs generated (default: 1). | +**remote_vtep_ip_local_incr** | **str** | The remote VTEP IP incrementation rule (default: 0.0.0.1). | +**remote_vtep_ip_range_incr** | **str** | The remote VTEP IP range incrementation rule (default: 0.0.1.0). | +**remote_vtep_ip_start** | **str** | The start IP for the remote VTEP (default: 10.0.0.10). | +**total_tunnel_count** | **int** | Outer IP Count * Remote VTEP IP Local Count * VxLAN ID per VTEP Pair Count | +**use_vx_lan_ids** | **bool** | | +**vx_lanid_incr** | **int** | The VxLAN id incrementation rule (default: 1). | +**vx_lanid_per_vtep_pair_count** | **int** | | +**vx_lanid_start** | **int** | The VxLAN start identifier (default: 1). | +**vx_lan_ids** | [**List[VxLANId]**](VxLANId.md) | | [optional] +**vx_lan_range_name** | **str** | | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.vx_lan_range import VxLANRange + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANRange from a JSON string +vx_lan_range_instance = VxLANRange.from_json(json) +# print the JSON string representation of the object +print(VxLANRange.to_json()) + +# convert the object into a dict +vx_lan_range_dict = vx_lan_range_instance.to_dict() +# create an instance of VxLANRange from a dict +vx_lan_range_from_dict = VxLANRange.from_dict(vx_lan_range_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VxLANStack.md b/docs/VxLANStack.md new file mode 100644 index 0000000..571b277 --- /dev/null +++ b/docs/VxLANStack.md @@ -0,0 +1,35 @@ +# VxLANStack + +The VxLAN stack assigned to the current test configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inner_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**outer_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**vx_lan_range** | [**VxLANRange**](VxLANRange.md) | | [optional] +**vx_lan_stack_name** | **str** | | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.vx_lan_stack import VxLANStack + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANStack from a JSON string +vx_lan_stack_instance = VxLANStack.from_json(json) +# print the JSON string representation of the object +print(VxLANStack.to_json()) + +# convert the object into a dict +vx_lan_stack_dict = vx_lan_stack_instance.to_dict() +# create an instance of VxLANStack from a dict +vx_lan_stack_from_dict = VxLANStack.from_dict(vx_lan_stack_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/jenkins/JenkinsFile b/jenkins/JenkinsFile index 3794add..3f7e4e3 100644 --- a/jenkins/JenkinsFile +++ b/jenkins/JenkinsFile @@ -38,16 +38,16 @@ def do_publish = params.publish_pypi @NonCPS boolean setDisplayVersion(publish) { branch_sanitized = branch.replaceAll('-', '.').replaceAll('_', '.').replaceAll('%2F', '-') - def matcher = Pattern.compile("^release%2F([0-9]+)\\.([0-9]+)\$").matcher(branch) + def matcher = Pattern.compile("^release%2F([0-9]+)\\.([0-9]+)\\.([0-9]+)\$").matcher(branch) if (matcher.matches()) { build_number = "dev${env.BUILD_NUMBER}+${branch_sanitized}" if (publish) { build_number = "${env.BUILD_NUMBER}" } - env.PIP_VERSION = "${matcher.group(1).toString()}.${matcher.group(2).toString()}.${build_number}" + env.PIP_VERSION = "${matcher.group(1).toString()}.${matcher.group(2).toString()}.${build_number}" env.DOCKER_VERSION = env.PIP_VERSION.replaceAll('\\+', '-') } else if (branch.startsWith("release%2F")) { - throw new Exception("Unexpected release branch format ${branch}, expected 'release%2fNUMBER.NUMBER'") + throw new Exception("Unexpected release branch format ${branch}, expected 'release%2fNUMBER.NUMBER.NUMBER'") } else { env.PIP_VERSION = "0.0.dev${env.BUILD_NUMBER}+${branch_sanitized}" env.DOCKER_VERSION = env.PIP_VERSION.replaceAll('\\+', '-') @@ -79,13 +79,6 @@ node('wap') { . ''') } - stage('Run tests') { - sh(''' - docker run --rm \ - cyperf-api-wrapper-build:$DOCKER_VERSION \ - /cyperf-api-wrapper-build/test.sh /build/py3 - ''') - } stage('Build and publish to internal repo') { withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'e7e3fcc3-4f5f-4e68-b68c-76f40b75a3c7', diff --git a/pyproject.toml b/pyproject.toml index 0c4f9f6..c498ef5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "CyPerf Application API"] include = ["cyperf/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" @@ -18,7 +18,6 @@ pydantic = ">=2" typing-extensions = ">=4.7.1" [tool.poetry.dev-dependencies] -pytest = ">=7.2.1" tox = ">=3.9.0" flake8 = ">=4.0.0" types-python-dateutil = ">=2.8.19.14" @@ -34,9 +33,7 @@ extension-pkg-whitelist = "pydantic" [tool.mypy] files = [ - "cyperf", - #"test", # auto-generated tests - "tests", # hand-written tests + "cyperf" ] # TODO: enable "strict" once all these individual checks are passing # strict = true diff --git a/samples/sample_attack_based_script.py b/samples/sample_attack_based_script.py index ace63d8..d1a300e 100644 --- a/samples/sample_attack_based_script.py +++ b/samples/sample_attack_based_script.py @@ -149,23 +149,22 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") diff --git a/samples/sample_create_save_and_export_config.py b/samples/sample_create_save_and_export_config.py index a0dc980..442b05b 100644 --- a/samples/sample_create_save_and_export_config.py +++ b/samples/sample_create_save_and_export_config.py @@ -84,12 +84,6 @@ api_session_response.await_completion() print("Applications added successfully.\n") - # Create a Network Profile - print("Adding network elements...") - network_profile = NetworkProfile(IPNetworkSegment=[], id="1") - session.config.config.network_profiles.append(network_profile) - session.config.config.network_profiles.update() - # Create IP Networks client_ip_network = IPNetwork(name="IP Network 1", id="1", agentAssignments=AgentAssignments(by_tag=[]), minAgents=1) server_ip_network = IPNetwork(name="IP Network 2", id="2", agentAssignments=AgentAssignments(by_tag=[]), minAgents=1) @@ -131,23 +125,22 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") diff --git a/samples/sample_load_and_run_precanned_config.py b/samples/sample_load_and_run_precanned_config.py index 7e238a4..66fc8eb 100644 --- a/samples/sample_load_and_run_precanned_config.py +++ b/samples/sample_load_and_run_precanned_config.py @@ -80,21 +80,20 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") diff --git a/test/__init__.py b/test/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_action.py b/test/test_action.py deleted file mode 100644 index 3518ac6..0000000 --- a/test/test_action.py +++ /dev/null @@ -1,174 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action import Action - -class TestAction(unittest.TestCase): - """Action unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Action: - """Test Action - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Action` - """ - model = Action() - if include_optional: - return Action( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Action( - ) - """ - - def testAction(self): - """Test Action""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_base.py b/test/test_action_base.py deleted file mode 100644 index c5e72a9..0000000 --- a/test/test_action_base.py +++ /dev/null @@ -1,174 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_base import ActionBase - -class TestActionBase(unittest.TestCase): - """ActionBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionBase: - """Test ActionBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionBase` - """ - model = ActionBase() - if include_optional: - return ActionBase( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ActionBase( - ) - """ - - def testActionBase(self): - """Test ActionBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_input.py b/test/test_action_input.py deleted file mode 100644 index 39c7b19..0000000 --- a/test/test_action_input.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_input import ActionInput - -class TestActionInput(unittest.TestCase): - """ActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionInput: - """Test ActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionInput` - """ - model = ActionInput() - if include_optional: - return ActionInput( - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ] - ) - else: - return ActionInput( - ) - """ - - def testActionInput(self): - """Test ActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_input_find_param.py b/test/test_action_input_find_param.py deleted file mode 100644 index 5b6e8a0..0000000 --- a/test/test_action_input_find_param.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_input_find_param import ActionInputFindParam - -class TestActionInputFindParam(unittest.TestCase): - """ActionInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionInputFindParam: - """Test ActionInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionInputFindParam` - """ - model = ActionInputFindParam() - if include_optional: - return ActionInputFindParam( - captures = [ - cyperf.models.capture_input_find_param.CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ], ) - ], - name = '' - ) - else: - return ActionInputFindParam( - ) - """ - - def testActionInputFindParam(self): - """Test ActionInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py deleted file mode 100644 index 0bd785a..0000000 --- a/test/test_action_metadata.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_metadata import ActionMetadata - -class TestActionMetadata(unittest.TestCase): - """ActionMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionMetadata: - """Test ActionMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionMetadata` - """ - model = ActionMetadata() - if include_optional: - return ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ] - ) - else: - return ActionMetadata( - ) - """ - - def testActionMetadata(self): - """Test ActionMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_info.py b/test/test_activation_code_info.py deleted file mode 100644 index 77adae3..0000000 --- a/test/test_activation_code_info.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_info import ActivationCodeInfo - -class TestActivationCodeInfo(unittest.TestCase): - """ActivationCodeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeInfo: - """Test ActivationCodeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeInfo` - """ - model = ActivationCodeInfo() - if include_optional: - return ActivationCodeInfo( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56 - ) - else: - return ActivationCodeInfo( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - ) - """ - - def testActivationCodeInfo(self): - """Test ActivationCodeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_list_request.py b/test/test_activation_code_list_request.py deleted file mode 100644 index f4f2476..0000000 --- a/test/test_activation_code_list_request.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_list_request import ActivationCodeListRequest - -class TestActivationCodeListRequest(unittest.TestCase): - """ActivationCodeListRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeListRequest: - """Test ActivationCodeListRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeListRequest` - """ - model = ActivationCodeListRequest() - if include_optional: - return ActivationCodeListRequest( - activation_code = [ - '' - ] - ) - else: - return ActivationCodeListRequest( - ) - """ - - def testActivationCodeListRequest(self): - """Test ActivationCodeListRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_request.py b/test/test_activation_code_request.py deleted file mode 100644 index 4e44607..0000000 --- a/test/test_activation_code_request.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_request import ActivationCodeRequest - -class TestActivationCodeRequest(unittest.TestCase): - """ActivationCodeRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeRequest: - """Test ActivationCodeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeRequest` - """ - model = ActivationCodeRequest() - if include_optional: - return ActivationCodeRequest( - activation_code = '' - ) - else: - return ActivationCodeRequest( - activation_code = '', - ) - """ - - def testActivationCodeRequest(self): - """Test ActivationCodeRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_add_action_info.py b/test/test_add_action_info.py deleted file mode 100644 index c3dd4fe..0000000 --- a/test/test_add_action_info.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.add_action_info import AddActionInfo - -class TestAddActionInfo(unittest.TestCase): - """AddActionInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AddActionInfo: - """Test AddActionInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AddActionInfo` - """ - model = AddActionInfo() - if include_optional: - return AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '' - ) - else: - return AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', - ) - """ - - def testAddActionInfo(self): - """Test AddActionInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_add_input.py b/test/test_add_input.py deleted file mode 100644 index 8d0c9cc..0000000 --- a/test/test_add_input.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.add_input import AddInput - -class TestAddInput(unittest.TestCase): - """AddInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AddInput: - """Test AddInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AddInput` - """ - model = AddInput() - if include_optional: - return AddInput( - action_index = 56, - action_name = '', - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - exchange_index_insert_at = 56, - flow_index_insert_at = 56, - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - type = '' - ) - else: - return AddInput( - ) - """ - - def testAddInput(self): - """Test AddInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_advanced_settings.py b/test/test_advanced_settings.py deleted file mode 100644 index d1d51e5..0000000 --- a/test/test_advanced_settings.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.advanced_settings import AdvancedSettings - -class TestAdvancedSettings(unittest.TestCase): - """AdvancedSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AdvancedSettings: - """Test AdvancedSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AdvancedSettings` - """ - model = AdvancedSettings() - if include_optional: - return AdvancedSettings( - agent_optimization_mode = 'BALANCED_MODE', - agent_streaming_purpose_cpu_percent = 56, - automatic_cpu_percent = True, - connection_graceful_stop_timeout = 56, - warm_up_period = 56 - ) - else: - return AdvancedSettings( - warm_up_period = 56, - ) - """ - - def testAdvancedSettings(self): - """Test AdvancedSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent.py b/test/test_agent.py deleted file mode 100644 index 7495dbd..0000000 --- a/test/test_agent.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent import Agent - -class TestAgent(unittest.TestCase): - """Agent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Agent: - """Test Agent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Agent` - """ - model = Agent() - if include_optional: - return Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ), - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Agent( - ) - """ - - def testAgent(self): - """Test Agent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignment_by_port.py b/test/test_agent_assignment_by_port.py deleted file mode 100644 index 127ec2d..0000000 --- a/test/test_agent_assignment_by_port.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort - -class TestAgentAssignmentByPort(unittest.TestCase): - """AgentAssignmentByPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignmentByPort: - """Test AgentAssignmentByPort - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignmentByPort` - """ - model = AgentAssignmentByPort() - if include_optional: - return AgentAssignmentByPort( - capture_settings = cyperf.models.capture_settings.CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = null, - max_capture_size = 56, ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - port_id = '' - ) - else: - return AgentAssignmentByPort( - id = '', - ) - """ - - def testAgentAssignmentByPort(self): - """Test AgentAssignmentByPort""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignment_details.py b/test/test_agent_assignment_details.py deleted file mode 100644 index d01abda..0000000 --- a/test/test_agent_assignment_details.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignment_details import AgentAssignmentDetails - -class TestAgentAssignmentDetails(unittest.TestCase): - """AgentAssignmentDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignmentDetails: - """Test AgentAssignmentDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignmentDetails` - """ - model = AgentAssignmentDetails() - if include_optional: - return AgentAssignmentDetails( - agent_id = '', - capture_settings = cyperf.models.capture_settings.CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = null, - max_capture_size = 56, ), - id = '', - interfaces = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AgentAssignmentDetails( - agent_id = '', - id = '', - ) - """ - - def testAgentAssignmentDetails(self): - """Test AgentAssignmentDetails""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignments.py b/test/test_agent_assignments.py deleted file mode 100644 index a1ce132..0000000 --- a/test/test_agent_assignments.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignments import AgentAssignments - -class TestAgentAssignments(unittest.TestCase): - """AgentAssignments unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignments: - """Test AgentAssignments - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignments` - """ - model = AgentAssignments() - if include_optional: - return AgentAssignments( - by_id = [ - null - ], - by_port = [ - null - ], - by_tag = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AgentAssignments( - by_tag = [ - '' - ], - ) - """ - - def testAgentAssignments(self): - """Test AgentAssignments""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_cpu_info.py b/test/test_agent_cpu_info.py deleted file mode 100644 index 74a3d38..0000000 --- a/test/test_agent_cpu_info.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_cpu_info import AgentCPUInfo - -class TestAgentCPUInfo(unittest.TestCase): - """AgentCPUInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentCPUInfo: - """Test AgentCPUInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentCPUInfo` - """ - model = AgentCPUInfo() - if include_optional: - return AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '' - ) - else: - return AgentCPUInfo( - ) - """ - - def testAgentCPUInfo(self): - """Test AgentCPUInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_features.py b/test/test_agent_features.py deleted file mode 100644 index e8cae7e..0000000 --- a/test/test_agent_features.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_features import AgentFeatures - -class TestAgentFeatures(unittest.TestCase): - """AgentFeatures unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentFeatures: - """Test AgentFeatures - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentFeatures` - """ - model = AgentFeatures() - if include_optional: - return AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '' - ) - else: - return AgentFeatures( - ) - """ - - def testAgentFeatures(self): - """Test AgentFeatures""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_optimization_mode.py b/test/test_agent_optimization_mode.py deleted file mode 100644 index 07b5daf..0000000 --- a/test/test_agent_optimization_mode.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_optimization_mode import AgentOptimizationMode - -class TestAgentOptimizationMode(unittest.TestCase): - """AgentOptimizationMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAgentOptimizationMode(self): - """Test AgentOptimizationMode""" - # inst = AgentOptimizationMode() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_release.py b/test/test_agent_release.py deleted file mode 100644 index 69559e8..0000000 --- a/test/test_agent_release.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_release import AgentRelease - -class TestAgentRelease(unittest.TestCase): - """AgentRelease unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentRelease: - """Test AgentRelease - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentRelease` - """ - model = AgentRelease() - if include_optional: - return AgentRelease( - agent_id = '' - ) - else: - return AgentRelease( - ) - """ - - def testAgentRelease(self): - """Test AgentRelease""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_reservation.py b/test/test_agent_reservation.py deleted file mode 100644 index cbfa0a8..0000000 --- a/test/test_agent_reservation.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_reservation import AgentReservation - -class TestAgentReservation(unittest.TestCase): - """AgentReservation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentReservation: - """Test AgentReservation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentReservation` - """ - model = AgentReservation() - if include_optional: - return AgentReservation( - agent_id = '', - agent_payload_names = [ - '' - ], - general_purpose_cpu_percent = 56, - interfaces = [ - '' - ], - ip_address_version_used = '', - optimization_mode = '' - ) - else: - return AgentReservation( - ) - """ - - def testAgentReservation(self): - """Test AgentReservation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_to_be_rebooted.py b/test/test_agent_to_be_rebooted.py deleted file mode 100644 index dc591b4..0000000 --- a/test/test_agent_to_be_rebooted.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_to_be_rebooted import AgentToBeRebooted - -class TestAgentToBeRebooted(unittest.TestCase): - """AgentToBeRebooted unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentToBeRebooted: - """Test AgentToBeRebooted - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentToBeRebooted` - """ - model = AgentToBeRebooted() - if include_optional: - return AgentToBeRebooted( - agent_id = '' - ) - else: - return AgentToBeRebooted( - ) - """ - - def testAgentToBeRebooted(self): - """Test AgentToBeRebooted""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agents_api.py b/test/test_agents_api.py deleted file mode 100644 index 3dd5c47..0000000 --- a/test/test_agents_api.py +++ /dev/null @@ -1,266 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.agents_api import AgentsApi - - -class TestAgentsApi(unittest.TestCase): - """AgentsApi unit test stubs""" - - def setUp(self) -> None: - self.api = AgentsApi() - - def tearDown(self) -> None: - pass - - def test_delete_agent(self) -> None: - """Test case for delete_agent - - """ - pass - - def test_get_agent_by_id(self) -> None: - """Test case for get_agent_by_id - - """ - pass - - def test_get_agents(self) -> None: - """Test case for get_agents - - """ - pass - - def test_get_agents_tags(self) -> None: - """Test case for get_agents_tags - - """ - pass - - def test_get_compute_node_port_by_id(self) -> None: - """Test case for get_compute_node_port_by_id - - """ - pass - - def test_get_compute_node_ports(self) -> None: - """Test case for get_compute_node_ports - - """ - pass - - def test_get_controller_by_id(self) -> None: - """Test case for get_controller_by_id - - """ - pass - - def test_get_controller_compute_node_by_id(self) -> None: - """Test case for get_controller_compute_node_by_id - - """ - pass - - def test_get_controller_compute_nodes(self) -> None: - """Test case for get_controller_compute_nodes - - """ - pass - - def test_get_controllers(self) -> None: - """Test case for get_controllers - - """ - pass - - def test_patch_agent(self) -> None: - """Test case for patch_agent - - """ - pass - - def test_poll_agents_batch_delete(self) -> None: - """Test case for poll_agents_batch_delete - - """ - pass - - def test_poll_agents_export_files(self) -> None: - """Test case for poll_agents_export_files - - """ - pass - - def test_poll_agents_reboot(self) -> None: - """Test case for poll_agents_reboot - - """ - pass - - def test_poll_agents_release(self) -> None: - """Test case for poll_agents_release - - """ - pass - - def test_poll_agents_reserve(self) -> None: - """Test case for poll_agents_reserve - - """ - pass - - def test_poll_agents_set_dpdk_mode(self) -> None: - """Test case for poll_agents_set_dpdk_mode - - """ - pass - - def test_poll_agents_set_ntp(self) -> None: - """Test case for poll_agents_set_ntp - - """ - pass - - def test_poll_agents_update(self) -> None: - """Test case for poll_agents_update - - """ - pass - - def test_poll_controllers_clear_port_ownership(self) -> None: - """Test case for poll_controllers_clear_port_ownership - - """ - pass - - def test_poll_controllers_power_cycle_nodes(self) -> None: - """Test case for poll_controllers_power_cycle_nodes - - """ - pass - - def test_poll_controllers_reboot_port(self) -> None: - """Test case for poll_controllers_reboot_port - - """ - pass - - def test_poll_controllers_set_app(self) -> None: - """Test case for poll_controllers_set_app - - """ - pass - - def test_poll_controllers_set_node_aggregation(self) -> None: - """Test case for poll_controllers_set_node_aggregation - - """ - pass - - def test_poll_controllers_set_port_link_state(self) -> None: - """Test case for poll_controllers_set_port_link_state - - """ - pass - - def test_start_agents_batch_delete(self) -> None: - """Test case for start_agents_batch_delete - - """ - pass - - def test_start_agents_export_files(self) -> None: - """Test case for start_agents_export_files - - """ - pass - - def test_start_agents_reboot(self) -> None: - """Test case for start_agents_reboot - - """ - pass - - def test_start_agents_release(self) -> None: - """Test case for start_agents_release - - """ - pass - - def test_start_agents_reserve(self) -> None: - """Test case for start_agents_reserve - - """ - pass - - def test_start_agents_set_dpdk_mode(self) -> None: - """Test case for start_agents_set_dpdk_mode - - """ - pass - - def test_start_agents_set_ntp(self) -> None: - """Test case for start_agents_set_ntp - - """ - pass - - def test_start_agents_update(self) -> None: - """Test case for start_agents_update - - """ - pass - - def test_start_controllers_clear_port_ownership(self) -> None: - """Test case for start_controllers_clear_port_ownership - - """ - pass - - def test_start_controllers_power_cycle_nodes(self) -> None: - """Test case for start_controllers_power_cycle_nodes - - """ - pass - - def test_start_controllers_reboot_port(self) -> None: - """Test case for start_controllers_reboot_port - - """ - pass - - def test_start_controllers_set_app(self) -> None: - """Test case for start_controllers_set_app - - """ - pass - - def test_start_controllers_set_node_aggregation(self) -> None: - """Test case for start_controllers_set_node_aggregation - - """ - pass - - def test_start_controllers_set_port_link_state(self) -> None: - """Test case for start_controllers_set_port_link_state - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agents_group.py b/test/test_agents_group.py deleted file mode 100644 index ce71987..0000000 --- a/test/test_agents_group.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agents_group import AgentsGroup - -class TestAgentsGroup(unittest.TestCase): - """AgentsGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentsGroup: - """Test AgentsGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentsGroup` - """ - model = AgentsGroup() - if include_optional: - return AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True - ) - else: - return AgentsGroup( - ) - """ - - def testAgentsGroup(self): - """Test AgentsGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_api_link.py b/test/test_api_link.py deleted file mode 100644 index 02936c3..0000000 --- a/test/test_api_link.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.api_link import APILink - -class TestAPILink(unittest.TestCase): - """APILink unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> APILink: - """Test APILink - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `APILink` - """ - model = APILink() - if include_optional: - return APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '' - ) - else: - return APILink( - ) - """ - - def testAPILink(self): - """Test APILink""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_api_relationship.py b/test/test_api_relationship.py deleted file mode 100644 index 79ee5d5..0000000 --- a/test/test_api_relationship.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.api_relationship import APIRelationship - -class TestAPIRelationship(unittest.TestCase): - """APIRelationship unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAPIRelationship(self): - """Test APIRelationship""" - # inst = APIRelationship() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_exchange.py b/test/test_app_exchange.py deleted file mode 100644 index 48d9a91..0000000 --- a/test/test_app_exchange.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_exchange import AppExchange - -class TestAppExchange(unittest.TestCase): - """AppExchange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppExchange: - """Test AppExchange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppExchange` - """ - model = AppExchange() - if include_optional: - return AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - headers = { - 'key' : [ - '' - ] - }, - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ) - else: - return AppExchange( - ) - """ - - def testAppExchange(self): - """Test AppExchange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow.py b/test/test_app_flow.py deleted file mode 100644 index 420faa7..0000000 --- a/test/test_app_flow.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow import AppFlow - -class TestAppFlow(unittest.TestCase): - """AppFlow unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlow: - """Test AppFlow - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlow` - """ - model = AppFlow() - if include_optional: - return AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '' - ) - else: - return AppFlow( - ) - """ - - def testAppFlow(self): - """Test AppFlow""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_desc.py b/test/test_app_flow_desc.py deleted file mode 100644 index 854b68e..0000000 --- a/test/test_app_flow_desc.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_desc import AppFlowDesc - -class TestAppFlowDesc(unittest.TestCase): - """AppFlowDesc unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowDesc: - """Test AppFlowDesc - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowDesc` - """ - model = AppFlowDesc() - if include_optional: - return AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - src_address = 'YQ==', - src_port = 56 - ) - else: - return AppFlowDesc( - ) - """ - - def testAppFlowDesc(self): - """Test AppFlowDesc""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_input.py b/test/test_app_flow_input.py deleted file mode 100644 index dd7ab1f..0000000 --- a/test/test_app_flow_input.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_input import AppFlowInput - -class TestAppFlowInput(unittest.TestCase): - """AppFlowInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowInput: - """Test AppFlowInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowInput` - """ - model = AppFlowInput() - if include_optional: - return AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ] - ) - else: - return AppFlowInput( - ) - """ - - def testAppFlowInput(self): - """Test AppFlowInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_input_find_param.py b/test/test_app_flow_input_find_param.py deleted file mode 100644 index c360adc..0000000 --- a/test/test_app_flow_input_find_param.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_input_find_param import AppFlowInputFindParam - -class TestAppFlowInputFindParam(unittest.TestCase): - """AppFlowInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowInputFindParam: - """Test AppFlowInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowInputFindParam` - """ - model = AppFlowInputFindParam() - if include_optional: - return AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ] - ) - else: - return AppFlowInputFindParam( - ) - """ - - def testAppFlowInputFindParam(self): - """Test AppFlowInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_id.py b/test/test_app_id.py deleted file mode 100644 index 5321903..0000000 --- a/test/test_app_id.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_id import AppId - -class TestAppId(unittest.TestCase): - """AppId unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppId: - """Test AppId - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppId` - """ - model = AppId() - if include_optional: - return AppId( - id = '' - ) - else: - return AppId( - ) - """ - - def testAppId(self): - """Test AppId""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_mode.py b/test/test_app_mode.py deleted file mode 100644 index 0227908..0000000 --- a/test/test_app_mode.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_mode import AppMode - -class TestAppMode(unittest.TestCase): - """AppMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppMode: - """Test AppMode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppMode` - """ - model = AppMode() - if include_optional: - return AppMode( - app_id = '', - ui_app_id = '' - ) - else: - return AppMode( - ) - """ - - def testAppMode(self): - """Test AppMode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application.py b/test/test_application.py deleted file mode 100644 index 9b0e095..0000000 --- a/test/test_application.py +++ /dev/null @@ -1,689 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application import Application - -class TestApplication(unittest.TestCase): - """Application unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Application: - """Test Application - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Application` - """ - model = Application() - if include_optional: - return Application( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - inherit_tls = True, - is_stateless_stream = True, - objective_weight = 56, - protocol_found = True, - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - stateless_stream = cyperf.models.stateless_stream.StatelessStream( - client_stream_profile = null, - direction = null, - is_flood_stream = True, - server_stream_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - static = True, - supported_apps = [ - '' - ], - supports_calibration = True, - supports_strikes = True, - supports_tls = True, - tracks = [ - cyperf.models.track.Track( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ] - ) - else: - return Application( - objective_weight = 56, - ) - """ - - def testApplication(self): - """Test Application""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_profile.py b/test/test_application_profile.py deleted file mode 100644 index 26cd298..0000000 --- a/test/test_application_profile.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application_profile import ApplicationProfile - -class TestApplicationProfile(unittest.TestCase): - """ApplicationProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ApplicationProfile: - """Test ApplicationProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ApplicationProfile` - """ - model = ApplicationProfile() - if include_optional: - return ApplicationProfile( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - applications = [ - null - ], - default_network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - name = '', - objectives_and_timeline = cyperf.models.objectives_and_timeline.ObjectivesAndTimeline( - advanced_settings = null, - primary_objective = null, - secondary_objective = null, - secondary_objectives = [ - cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = null, - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - add_applications = [ - cyperf.models.external_resource_info.ExternalResourceInfo( - external_resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - reset_tags_to_default = [ - 'YQ==' - ] - ) - else: - return ApplicationProfile( - name = '', - ) - """ - - def testApplicationProfile(self): - """Test ApplicationProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py deleted file mode 100644 index 0bad3a7..0000000 --- a/test/test_application_resources_api.py +++ /dev/null @@ -1,1004 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.application_resources_api import ApplicationResourcesApi - - -class TestApplicationResourcesApi(unittest.TestCase): - """ApplicationResourcesApi unit test stubs""" - - def setUp(self) -> None: - self.api = ApplicationResourcesApi() - - def tearDown(self) -> None: - pass - - def test_delete_resources_capture(self) -> None: - """Test case for delete_resources_capture - - """ - pass - - def test_delete_resources_certificate(self) -> None: - """Test case for delete_resources_certificate - - """ - pass - - def test_delete_resources_custom_fuzzing_script(self) -> None: - """Test case for delete_resources_custom_fuzzing_script - - """ - pass - - def test_delete_resources_flow_library(self) -> None: - """Test case for delete_resources_flow_library - - """ - pass - - def test_delete_resources_global_playlist(self) -> None: - """Test case for delete_resources_global_playlist - - """ - pass - - def test_delete_resources_http_library(self) -> None: - """Test case for delete_resources_http_library - - """ - pass - - def test_delete_resources_media_file(self) -> None: - """Test case for delete_resources_media_file - - """ - pass - - def test_delete_resources_media_library(self) -> None: - """Test case for delete_resources_media_library - - """ - pass - - def test_delete_resources_other_library(self) -> None: - """Test case for delete_resources_other_library - - """ - pass - - def test_delete_resources_payload(self) -> None: - """Test case for delete_resources_payload - - """ - pass - - def test_delete_resources_pcap(self) -> None: - """Test case for delete_resources_pcap - - """ - pass - - def test_delete_resources_playlist(self) -> None: - """Test case for delete_resources_playlist - - """ - pass - - def test_delete_resources_sip_library(self) -> None: - """Test case for delete_resources_sip_library - - """ - pass - - def test_delete_resources_stats_profile(self) -> None: - """Test case for delete_resources_stats_profile - - """ - pass - - def test_delete_resources_tls_certificate(self) -> None: - """Test case for delete_resources_tls_certificate - - """ - pass - - def test_delete_resources_tls_dh(self) -> None: - """Test case for delete_resources_tls_dh - - """ - pass - - def test_delete_resources_tls_key(self) -> None: - """Test case for delete_resources_tls_key - - """ - pass - - def test_delete_resources_user_defined_app(self) -> None: - """Test case for delete_resources_user_defined_app - - """ - pass - - def test_get_capture_flows(self) -> None: - """Test case for get_capture_flows - - """ - pass - - def test_get_flow_exchanges(self) -> None: - """Test case for get_flow_exchanges - - """ - pass - - def test_get_resources_app_by_id(self) -> None: - """Test case for get_resources_app_by_id - - """ - pass - - def test_get_resources_application_type_by_id(self) -> None: - """Test case for get_resources_application_type_by_id - - """ - pass - - def test_get_resources_application_types(self) -> None: - """Test case for get_resources_application_types - - """ - pass - - def test_get_resources_apps(self) -> None: - """Test case for get_resources_apps - - """ - pass - - def test_get_resources_attack_by_id(self) -> None: - """Test case for get_resources_attack_by_id - - """ - pass - - def test_get_resources_attack_categories(self) -> None: - """Test case for get_resources_attack_categories - - """ - pass - - def test_get_resources_attacks(self) -> None: - """Test case for get_resources_attacks - - """ - pass - - def test_get_resources_auth_profile_by_id(self) -> None: - """Test case for get_resources_auth_profile_by_id - - """ - pass - - def test_get_resources_auth_profiles(self) -> None: - """Test case for get_resources_auth_profiles - - """ - pass - - def test_get_resources_capture_by_id(self) -> None: - """Test case for get_resources_capture_by_id - - """ - pass - - def test_get_resources_captures(self) -> None: - """Test case for get_resources_captures - - """ - pass - - def test_get_resources_captures_upload_file_result(self) -> None: - """Test case for get_resources_captures_upload_file_result - - """ - pass - - def test_get_resources_certificate_by_id(self) -> None: - """Test case for get_resources_certificate_by_id - - """ - pass - - def test_get_resources_certificate_content_file(self) -> None: - """Test case for get_resources_certificate_content_file - - """ - pass - - def test_get_resources_certificates(self) -> None: - """Test case for get_resources_certificates - - """ - pass - - def test_get_resources_certificates_upload_file_result(self) -> None: - """Test case for get_resources_certificates_upload_file_result - - """ - pass - - def test_get_resources_custom_fuzzing_script_by_id(self) -> None: - """Test case for get_resources_custom_fuzzing_script_by_id - - """ - pass - - def test_get_resources_custom_fuzzing_script_content_file(self) -> None: - """Test case for get_resources_custom_fuzzing_script_content_file - - """ - pass - - def test_get_resources_custom_fuzzing_scripts(self) -> None: - """Test case for get_resources_custom_fuzzing_scripts - - """ - pass - - def test_get_resources_custom_fuzzing_scripts_upload_file_result(self) -> None: - """Test case for get_resources_custom_fuzzing_scripts_upload_file_result - - """ - pass - - def test_get_resources_flow_library(self) -> None: - """Test case for get_resources_flow_library - - """ - pass - - def test_get_resources_flow_library_by_id(self) -> None: - """Test case for get_resources_flow_library_by_id - - """ - pass - - def test_get_resources_flow_library_content_file(self) -> None: - """Test case for get_resources_flow_library_content_file - - """ - pass - - def test_get_resources_flow_library_upload_file_result(self) -> None: - """Test case for get_resources_flow_library_upload_file_result - - """ - pass - - def test_get_resources_global_playlist_by_id(self) -> None: - """Test case for get_resources_global_playlist_by_id - - """ - pass - - def test_get_resources_global_playlist_content_file(self) -> None: - """Test case for get_resources_global_playlist_content_file - - """ - pass - - def test_get_resources_global_playlists(self) -> None: - """Test case for get_resources_global_playlists - - """ - pass - - def test_get_resources_global_playlists_upload_file_result(self) -> None: - """Test case for get_resources_global_playlists_upload_file_result - - """ - pass - - def test_get_resources_http_library(self) -> None: - """Test case for get_resources_http_library - - """ - pass - - def test_get_resources_http_library_by_id(self) -> None: - """Test case for get_resources_http_library_by_id - - """ - pass - - def test_get_resources_http_library_content_file(self) -> None: - """Test case for get_resources_http_library_content_file - - """ - pass - - def test_get_resources_http_library_upload_file_result(self) -> None: - """Test case for get_resources_http_library_upload_file_result - - """ - pass - - def test_get_resources_http_profile_by_id(self) -> None: - """Test case for get_resources_http_profile_by_id - - """ - pass - - def test_get_resources_http_profiles(self) -> None: - """Test case for get_resources_http_profiles - - """ - pass - - def test_get_resources_media_file_by_id(self) -> None: - """Test case for get_resources_media_file_by_id - - """ - pass - - def test_get_resources_media_file_content_file(self) -> None: - """Test case for get_resources_media_file_content_file - - """ - pass - - def test_get_resources_media_files(self) -> None: - """Test case for get_resources_media_files - - """ - pass - - def test_get_resources_media_files_upload_file_result(self) -> None: - """Test case for get_resources_media_files_upload_file_result - - """ - pass - - def test_get_resources_media_library(self) -> None: - """Test case for get_resources_media_library - - """ - pass - - def test_get_resources_media_library_by_id(self) -> None: - """Test case for get_resources_media_library_by_id - - """ - pass - - def test_get_resources_media_library_content_file(self) -> None: - """Test case for get_resources_media_library_content_file - - """ - pass - - def test_get_resources_media_library_upload_file_result(self) -> None: - """Test case for get_resources_media_library_upload_file_result - - """ - pass - - def test_get_resources_other_library(self) -> None: - """Test case for get_resources_other_library - - """ - pass - - def test_get_resources_other_library_by_id(self) -> None: - """Test case for get_resources_other_library_by_id - - """ - pass - - def test_get_resources_other_library_content_file(self) -> None: - """Test case for get_resources_other_library_content_file - - """ - pass - - def test_get_resources_other_library_upload_file_result(self) -> None: - """Test case for get_resources_other_library_upload_file_result - - """ - pass - - def test_get_resources_payload_by_id(self) -> None: - """Test case for get_resources_payload_by_id - - """ - pass - - def test_get_resources_payload_content_file(self) -> None: - """Test case for get_resources_payload_content_file - - """ - pass - - def test_get_resources_payloads(self) -> None: - """Test case for get_resources_payloads - - """ - pass - - def test_get_resources_payloads_upload_file_result(self) -> None: - """Test case for get_resources_payloads_upload_file_result - - """ - pass - - def test_get_resources_pcap_by_id(self) -> None: - """Test case for get_resources_pcap_by_id - - """ - pass - - def test_get_resources_pcap_content_file(self) -> None: - """Test case for get_resources_pcap_content_file - - """ - pass - - def test_get_resources_pcaps(self) -> None: - """Test case for get_resources_pcaps - - """ - pass - - def test_get_resources_pcaps_upload_file_result(self) -> None: - """Test case for get_resources_pcaps_upload_file_result - - """ - pass - - def test_get_resources_playlist_by_id(self) -> None: - """Test case for get_resources_playlist_by_id - - """ - pass - - def test_get_resources_playlist_content_file(self) -> None: - """Test case for get_resources_playlist_content_file - - """ - pass - - def test_get_resources_playlist_values(self) -> None: - """Test case for get_resources_playlist_values - - """ - pass - - def test_get_resources_playlists(self) -> None: - """Test case for get_resources_playlists - - """ - pass - - def test_get_resources_playlists_upload_file_result(self) -> None: - """Test case for get_resources_playlists_upload_file_result - - """ - pass - - def test_get_resources_sip_library(self) -> None: - """Test case for get_resources_sip_library - - """ - pass - - def test_get_resources_sip_library_by_id(self) -> None: - """Test case for get_resources_sip_library_by_id - - """ - pass - - def test_get_resources_sip_library_content_file(self) -> None: - """Test case for get_resources_sip_library_content_file - - """ - pass - - def test_get_resources_sip_library_upload_file_result(self) -> None: - """Test case for get_resources_sip_library_upload_file_result - - """ - pass - - def test_get_resources_stats_profile(self) -> None: - """Test case for get_resources_stats_profile - - """ - pass - - def test_get_resources_stats_profile_by_id(self) -> None: - """Test case for get_resources_stats_profile_by_id - - """ - pass - - def test_get_resources_stats_profile_content_file(self) -> None: - """Test case for get_resources_stats_profile_content_file - - """ - pass - - def test_get_resources_stats_profile_upload_file_result(self) -> None: - """Test case for get_resources_stats_profile_upload_file_result - - """ - pass - - def test_get_resources_strike_by_id(self) -> None: - """Test case for get_resources_strike_by_id - - """ - pass - - def test_get_resources_strike_categories(self) -> None: - """Test case for get_resources_strike_categories - - """ - pass - - def test_get_resources_strikes(self) -> None: - """Test case for get_resources_strikes - - """ - pass - - def test_get_resources_tls_certificate_by_id(self) -> None: - """Test case for get_resources_tls_certificate_by_id - - """ - pass - - def test_get_resources_tls_certificate_content_file(self) -> None: - """Test case for get_resources_tls_certificate_content_file - - """ - pass - - def test_get_resources_tls_certificates(self) -> None: - """Test case for get_resources_tls_certificates - - """ - pass - - def test_get_resources_tls_certificates_upload_file_result(self) -> None: - """Test case for get_resources_tls_certificates_upload_file_result - - """ - pass - - def test_get_resources_tls_dh_by_id(self) -> None: - """Test case for get_resources_tls_dh_by_id - - """ - pass - - def test_get_resources_tls_dh_content_file(self) -> None: - """Test case for get_resources_tls_dh_content_file - - """ - pass - - def test_get_resources_tls_dhs(self) -> None: - """Test case for get_resources_tls_dhs - - """ - pass - - def test_get_resources_tls_dhs_upload_file_result(self) -> None: - """Test case for get_resources_tls_dhs_upload_file_result - - """ - pass - - def test_get_resources_tls_key_by_id(self) -> None: - """Test case for get_resources_tls_key_by_id - - """ - pass - - def test_get_resources_tls_key_content_file(self) -> None: - """Test case for get_resources_tls_key_content_file - - """ - pass - - def test_get_resources_tls_keys(self) -> None: - """Test case for get_resources_tls_keys - - """ - pass - - def test_get_resources_tls_keys_upload_file_result(self) -> None: - """Test case for get_resources_tls_keys_upload_file_result - - """ - pass - - def test_get_resources_user_defined_apps(self) -> None: - """Test case for get_resources_user_defined_apps - - """ - pass - - def test_get_resources_user_defined_apps_upload_file_result(self) -> None: - """Test case for get_resources_user_defined_apps_upload_file_result - - """ - pass - - def test_poll_resources_apps_export_all(self) -> None: - """Test case for poll_resources_apps_export_all - - """ - pass - - def test_poll_resources_captures_batch_delete(self) -> None: - """Test case for poll_resources_captures_batch_delete - - """ - pass - - def test_poll_resources_captures_upload_file(self) -> None: - """Test case for poll_resources_captures_upload_file - - """ - pass - - def test_poll_resources_certificates_upload_file(self) -> None: - """Test case for poll_resources_certificates_upload_file - - """ - pass - - def test_poll_resources_config_export_user_defined_apps(self) -> None: - """Test case for poll_resources_config_export_user_defined_apps - - """ - pass - - def test_poll_resources_create_app(self) -> None: - """Test case for poll_resources_create_app - - """ - pass - - def test_poll_resources_custom_fuzzing_scripts_upload_file(self) -> None: - """Test case for poll_resources_custom_fuzzing_scripts_upload_file - - """ - pass - - def test_poll_resources_edit_app(self) -> None: - """Test case for poll_resources_edit_app - - """ - pass - - def test_poll_resources_find_param_matches(self) -> None: - """Test case for poll_resources_find_param_matches - - """ - pass - - def test_poll_resources_flow_library_upload_file(self) -> None: - """Test case for poll_resources_flow_library_upload_file - - """ - pass - - def test_poll_resources_get_attack_categories(self) -> None: - """Test case for poll_resources_get_attack_categories - - """ - pass - - def test_poll_resources_get_attacks(self) -> None: - """Test case for poll_resources_get_attacks - - """ - pass - - def test_poll_resources_get_strike_categories(self) -> None: - """Test case for poll_resources_get_strike_categories - - """ - pass - - def test_poll_resources_get_strikes(self) -> None: - """Test case for poll_resources_get_strikes - - """ - pass - - def test_poll_resources_global_playlists_upload_file(self) -> None: - """Test case for poll_resources_global_playlists_upload_file - - """ - pass - - def test_poll_resources_http_library_upload_file(self) -> None: - """Test case for poll_resources_http_library_upload_file - - """ - pass - - def test_poll_resources_media_files_upload_file(self) -> None: - """Test case for poll_resources_media_files_upload_file - - """ - pass - - def test_poll_resources_media_library_upload_file(self) -> None: - """Test case for poll_resources_media_library_upload_file - - """ - pass - - def test_poll_resources_other_library_upload_file(self) -> None: - """Test case for poll_resources_other_library_upload_file - - """ - pass - - def test_poll_resources_payloads_upload_file(self) -> None: - """Test case for poll_resources_payloads_upload_file - - """ - pass - - def test_poll_resources_pcaps_upload_file(self) -> None: - """Test case for poll_resources_pcaps_upload_file - - """ - pass - - def test_poll_resources_playlists_upload_file(self) -> None: - """Test case for poll_resources_playlists_upload_file - - """ - pass - - def test_poll_resources_sip_library_upload_file(self) -> None: - """Test case for poll_resources_sip_library_upload_file - - """ - pass - - def test_poll_resources_stats_profile_upload_file(self) -> None: - """Test case for poll_resources_stats_profile_upload_file - - """ - pass - - def test_poll_resources_tls_certificates_upload_file(self) -> None: - """Test case for poll_resources_tls_certificates_upload_file - - """ - pass - - def test_poll_resources_tls_dhs_upload_file(self) -> None: - """Test case for poll_resources_tls_dhs_upload_file - - """ - pass - - def test_poll_resources_tls_keys_upload_file(self) -> None: - """Test case for poll_resources_tls_keys_upload_file - - """ - pass - - def test_poll_resources_user_defined_apps_export_all(self) -> None: - """Test case for poll_resources_user_defined_apps_export_all - - """ - pass - - def test_poll_resources_user_defined_apps_upload_file(self) -> None: - """Test case for poll_resources_user_defined_apps_upload_file - - """ - pass - - def test_start_resources_apps_export_all(self) -> None: - """Test case for start_resources_apps_export_all - - """ - pass - - def test_start_resources_captures_batch_delete(self) -> None: - """Test case for start_resources_captures_batch_delete - - """ - pass - - def test_start_resources_captures_upload_file(self) -> None: - """Test case for start_resources_captures_upload_file - - """ - pass - - def test_start_resources_certificates_upload_file(self) -> None: - """Test case for start_resources_certificates_upload_file - - """ - pass - - def test_start_resources_config_export_user_defined_apps(self) -> None: - """Test case for start_resources_config_export_user_defined_apps - - """ - pass - - def test_start_resources_create_app(self) -> None: - """Test case for start_resources_create_app - - """ - pass - - def test_start_resources_custom_fuzzing_scripts_upload_file(self) -> None: - """Test case for start_resources_custom_fuzzing_scripts_upload_file - - """ - pass - - def test_start_resources_edit_app(self) -> None: - """Test case for start_resources_edit_app - - """ - pass - - def test_start_resources_find_param_matches(self) -> None: - """Test case for start_resources_find_param_matches - - """ - pass - - def test_start_resources_flow_library_upload_file(self) -> None: - """Test case for start_resources_flow_library_upload_file - - """ - pass - - def test_start_resources_get_attack_categories(self) -> None: - """Test case for start_resources_get_attack_categories - - """ - pass - - def test_start_resources_get_attacks(self) -> None: - """Test case for start_resources_get_attacks - - """ - pass - - def test_start_resources_get_strike_categories(self) -> None: - """Test case for start_resources_get_strike_categories - - """ - pass - - def test_start_resources_get_strikes(self) -> None: - """Test case for start_resources_get_strikes - - """ - pass - - def test_start_resources_global_playlists_upload_file(self) -> None: - """Test case for start_resources_global_playlists_upload_file - - """ - pass - - def test_start_resources_http_library_upload_file(self) -> None: - """Test case for start_resources_http_library_upload_file - - """ - pass - - def test_start_resources_media_files_upload_file(self) -> None: - """Test case for start_resources_media_files_upload_file - - """ - pass - - def test_start_resources_media_library_upload_file(self) -> None: - """Test case for start_resources_media_library_upload_file - - """ - pass - - def test_start_resources_other_library_upload_file(self) -> None: - """Test case for start_resources_other_library_upload_file - - """ - pass - - def test_start_resources_payloads_upload_file(self) -> None: - """Test case for start_resources_payloads_upload_file - - """ - pass - - def test_start_resources_pcaps_upload_file(self) -> None: - """Test case for start_resources_pcaps_upload_file - - """ - pass - - def test_start_resources_playlists_upload_file(self) -> None: - """Test case for start_resources_playlists_upload_file - - """ - pass - - def test_start_resources_sip_library_upload_file(self) -> None: - """Test case for start_resources_sip_library_upload_file - - """ - pass - - def test_start_resources_stats_profile_upload_file(self) -> None: - """Test case for start_resources_stats_profile_upload_file - - """ - pass - - def test_start_resources_tls_certificates_upload_file(self) -> None: - """Test case for start_resources_tls_certificates_upload_file - - """ - pass - - def test_start_resources_tls_dhs_upload_file(self) -> None: - """Test case for start_resources_tls_dhs_upload_file - - """ - pass - - def test_start_resources_tls_keys_upload_file(self) -> None: - """Test case for start_resources_tls_keys_upload_file - - """ - pass - - def test_start_resources_user_defined_apps_export_all(self) -> None: - """Test case for start_resources_user_defined_apps_export_all - - """ - pass - - def test_start_resources_user_defined_apps_upload_file(self) -> None: - """Test case for start_resources_user_defined_apps_upload_file - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_type.py b/test/test_application_type.py deleted file mode 100644 index 184d3ad..0000000 --- a/test/test_application_type.py +++ /dev/null @@ -1,426 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application_type import ApplicationType - -class TestApplicationType(unittest.TestCase): - """ApplicationType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ApplicationType: - """Test ApplicationType - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ApplicationType` - """ - model = ApplicationType() - if include_optional: - return ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.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 = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - 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 = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.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 = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ApplicationType( - ) - """ - - def testApplicationType(self): - """Test ApplicationType""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py deleted file mode 100644 index 1bcc761..0000000 --- a/test/test_appsec_app.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_app import AppsecApp - -class TestAppsecApp(unittest.TestCase): - """AppsecApp unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecApp: - """Test AppsecApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecApp` - """ - model = AppsecApp() - if include_optional: - return AppsecApp( - app = None, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '' - ) - else: - return AppsecApp( - ) - """ - - def testAppsecApp(self): - """Test AppsecApp""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py deleted file mode 100644 index 23d1ea7..0000000 --- a/test/test_appsec_app_metadata.py +++ /dev/null @@ -1,284 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_app_metadata import AppsecAppMetadata - -class TestAppsecAppMetadata(unittest.TestCase): - """AppsecAppMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecAppMetadata: - """Test AppsecAppMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecAppMetadata` - """ - model = AppsecAppMetadata() - if include_optional: - return AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ] - ) - else: - return AppsecAppMetadata( - ) - """ - - def testAppsecAppMetadata(self): - """Test AppsecAppMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_attack.py b/test/test_appsec_attack.py deleted file mode 100644 index f1c4d0f..0000000 --- a/test/test_appsec_attack.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_attack import AppsecAttack - -class TestAppsecAttack(unittest.TestCase): - """AppsecAttack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecAttack: - """Test AppsecAttack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecAttack` - """ - model = AppsecAttack() - if include_optional: - return AppsecAttack( - attack = None, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '' - ) - else: - return AppsecAttack( - ) - """ - - def testAppsecAttack(self): - """Test AppsecAttack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_config.py b/test/test_appsec_config.py deleted file mode 100644 index c8c2807..0000000 --- a/test/test_appsec_config.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_config import AppsecConfig - -class TestAppsecConfig(unittest.TestCase): - """AppsecConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecConfig: - """Test AppsecConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecConfig` - """ - model = AppsecConfig() - if include_optional: - return AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '' - ) - else: - return AppsecConfig( - config_type_name = '', - ) - """ - - def testAppsecConfig(self): - """Test AppsecConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_archive_info.py b/test/test_archive_info.py deleted file mode 100644 index 4481c14..0000000 --- a/test/test_archive_info.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.archive_info import ArchiveInfo - -class TestArchiveInfo(unittest.TestCase): - """ArchiveInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ArchiveInfo: - """Test ArchiveInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ArchiveInfo` - """ - model = ArchiveInfo() - if include_optional: - return ArchiveInfo( - filename = '', - id = 56, - message = '', - result_url = '', - size = 56, - state = '', - timestamp = '', - url = '' - ) - else: - return ArchiveInfo( - filename = '', - id = 56, - message = '', - result_url = '', - state = '', - timestamp = '', - url = '', - ) - """ - - def testArchiveInfo(self): - """Test ArchiveInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_array_v2_element_metadata.py b/test/test_array_v2_element_metadata.py deleted file mode 100644 index 3c1fbef..0000000 --- a/test/test_array_v2_element_metadata.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata - -class TestArrayV2ElementMetadata(unittest.TestCase): - """ArrayV2ElementMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ArrayV2ElementMetadata: - """Test ArrayV2ElementMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ArrayV2ElementMetadata` - """ - model = ArrayV2ElementMetadata() - if include_optional: - return ArrayV2ElementMetadata( - id = '', - type = '' - ) - else: - return ArrayV2ElementMetadata( - ) - """ - - def testArrayV2ElementMetadata(self): - """Test ArrayV2ElementMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_async_context.py b/test/test_async_context.py deleted file mode 100644 index 4692da5..0000000 --- a/test/test_async_context.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.async_context import AsyncContext - -class TestAsyncContext(unittest.TestCase): - """AsyncContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AsyncContext: - """Test AsyncContext - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AsyncContext` - """ - model = AsyncContext() - if include_optional: - return AsyncContext( - id = 56, - message = '', - progress = 56, - result = None, - result_url = '', - state = '', - type = '', - url = '' - ) - else: - return AsyncContext( - ) - """ - - def testAsyncContext(self): - """Test AsyncContext""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_async_operation_response.py b/test/test_async_operation_response.py deleted file mode 100644 index 8f981b1..0000000 --- a/test/test_async_operation_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.async_operation_response import AsyncOperationResponse - -class TestAsyncOperationResponse(unittest.TestCase): - """AsyncOperationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AsyncOperationResponse: - """Test AsyncOperationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AsyncOperationResponse` - """ - model = AsyncOperationResponse() - if include_optional: - return AsyncOperationResponse( - id = 56, - message = '', - progress = 56, - result_url = '', - state = '', - type = '', - url = '' - ) - else: - return AsyncOperationResponse( - id = 56, - message = '', - progress = 56, - result_url = '', - state = '', - type = '', - url = '', - ) - """ - - def testAsyncOperationResponse(self): - """Test AsyncOperationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack.py b/test/test_attack.py deleted file mode 100644 index 7486b14..0000000 --- a/test/test_attack.py +++ /dev/null @@ -1,666 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack import Attack - -class TestAttack(unittest.TestCase): - """Attack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Attack: - """Test Attack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Attack` - """ - model = Attack() - if include_optional: - return Attack( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - inherit_tls = True, - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - supports_tls = True, - tracks = [ - cyperf.models.attack_track.AttackTrack( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - create = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ] - ) - else: - return Attack( - ) - """ - - def testAttack(self): - """Test Attack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_action.py b/test/test_attack_action.py deleted file mode 100644 index a763354..0000000 --- a/test/test_attack_action.py +++ /dev/null @@ -1,174 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_action import AttackAction - -class TestAttackAction(unittest.TestCase): - """AttackAction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackAction: - """Test AttackAction - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackAction` - """ - model = AttackAction() - if include_optional: - return AttackAction( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackAction( - ) - """ - - def testAttackAction(self): - """Test AttackAction""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_metadata.py b/test/test_attack_metadata.py deleted file mode 100644 index fd5876a..0000000 --- a/test/test_attack_metadata.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_metadata import AttackMetadata - -class TestAttackMetadata(unittest.TestCase): - """AttackMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackMetadata: - """Test AttackMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackMetadata` - """ - model = AttackMetadata() - if include_optional: - return AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56 - ) - else: - return AttackMetadata( - ) - """ - - def testAttackMetadata(self): - """Test AttackMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_metadata_keywords_inner.py b/test/test_attack_metadata_keywords_inner.py deleted file mode 100644 index bb36988..0000000 --- a/test/test_attack_metadata_keywords_inner.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner - -class TestAttackMetadataKeywordsInner(unittest.TestCase): - """AttackMetadataKeywordsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackMetadataKeywordsInner: - """Test AttackMetadataKeywordsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackMetadataKeywordsInner` - """ - model = AttackMetadataKeywordsInner() - if include_optional: - return AttackMetadataKeywordsInner( - ) - else: - return AttackMetadataKeywordsInner( - ) - """ - - def testAttackMetadataKeywordsInner(self): - """Test AttackMetadataKeywordsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_objectives_and_timeline.py b/test/test_attack_objectives_and_timeline.py deleted file mode 100644 index 9370f21..0000000 --- a/test/test_attack_objectives_and_timeline.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline - -class TestAttackObjectivesAndTimeline(unittest.TestCase): - """AttackObjectivesAndTimeline unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackObjectivesAndTimeline: - """Test AttackObjectivesAndTimeline - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackObjectivesAndTimeline` - """ - model = AttackObjectivesAndTimeline() - if include_optional: - return AttackObjectivesAndTimeline( - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackObjectivesAndTimeline( - ) - """ - - def testAttackObjectivesAndTimeline(self): - """Test AttackObjectivesAndTimeline""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_profile.py b/test/test_attack_profile.py deleted file mode 100644 index 7064f97..0000000 --- a/test/test_attack_profile.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_profile import AttackProfile - -class TestAttackProfile(unittest.TestCase): - """AttackProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackProfile: - """Test AttackProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackProfile` - """ - model = AttackProfile() - if include_optional: - return AttackProfile( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - attacks = [ - null - ], - default_network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - name = '', - objectives_and_timeline = cyperf.models.attack_objectives_and_timeline.AttackObjectivesAndTimeline( - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - add_attacks = [ - cyperf.models.external_resource_info.ExternalResourceInfo( - external_resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - reset_tags_to_default = [ - 'YQ==' - ] - ) - else: - return AttackProfile( - name = '', - ) - """ - - def testAttackProfile(self): - """Test AttackProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_timeline_segment.py b/test/test_attack_timeline_segment.py deleted file mode 100644 index 835188b..0000000 --- a/test/test_attack_timeline_segment.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_timeline_segment import AttackTimelineSegment - -class TestAttackTimelineSegment(unittest.TestCase): - """AttackTimelineSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackTimelineSegment: - """Test AttackTimelineSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackTimelineSegment` - """ - model = AttackTimelineSegment() - if include_optional: - return AttackTimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - attack_rate = 56, - connection_graceful_stop_timeout = 56, - iteration_count = 56, - max_concurrent_attack = 56 - ) - else: - return AttackTimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - attack_rate = 56, - max_concurrent_attack = 56, - ) - """ - - def testAttackTimelineSegment(self): - """Test AttackTimelineSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_track.py b/test/test_attack_track.py deleted file mode 100644 index 5e7665e..0000000 --- a/test/test_attack_track.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_track import AttackTrack - -class TestAttackTrack(unittest.TestCase): - """AttackTrack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackTrack: - """Test AttackTrack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackTrack` - """ - model = AttackTrack() - if include_optional: - return AttackTrack( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackTrack( - id = '', - ) - """ - - def testAttackTrack(self): - """Test AttackTrack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_method_type.py b/test/test_auth_method_type.py deleted file mode 100644 index 5ac9849..0000000 --- a/test/test_auth_method_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_method_type import AuthMethodType - -class TestAuthMethodType(unittest.TestCase): - """AuthMethodType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAuthMethodType(self): - """Test AuthMethodType""" - # inst = AuthMethodType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py deleted file mode 100644 index 8607853..0000000 --- a/test/test_auth_profile.py +++ /dev/null @@ -1,225 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_profile import AuthProfile - -class TestAuthProfile(unittest.TestCase): - """AuthProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthProfile: - """Test AuthProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthProfile` - """ - model = AuthProfile() - if include_optional: - return AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '' - ) - else: - return AuthProfile( - ) - """ - - def testAuthProfile(self): - """Test AuthProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_profile_metadata.py b/test/test_auth_profile_metadata.py deleted file mode 100644 index e1ef241..0000000 --- a/test/test_auth_profile_metadata.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_profile_metadata import AuthProfileMetadata - -class TestAuthProfileMetadata(unittest.TestCase): - """AuthProfileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthProfileMetadata: - """Test AuthProfileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthProfileMetadata` - """ - model = AuthProfileMetadata() - if include_optional: - return AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '' - ) - else: - return AuthProfileMetadata( - ) - """ - - def testAuthProfileMetadata(self): - """Test AuthProfileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py b/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py deleted file mode 100644 index 7bc5f6d..0000000 --- a/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_realms_keysight_protocol_openid_connect_token_post200_response import AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - -class TestAuthRealmsKeysightProtocolOpenidConnectTokenPost200Response(unittest.TestCase): - """AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response: - """Test AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response` - """ - model = AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response() - if include_optional: - return AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response( - access_token = '', - expires_in = 1.337, - refresh_expires_in = 1.337, - refresh_token = '' - ) - else: - return AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response( - ) - """ - - def testAuthRealmsKeysightProtocolOpenidConnectTokenPost200Response(self): - """Test AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_settings.py b/test/test_auth_settings.py deleted file mode 100644 index 7e0296e..0000000 --- a/test/test_auth_settings.py +++ /dev/null @@ -1,534 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_settings import AuthSettings - -class TestAuthSettings(unittest.TestCase): - """AuthSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthSettings: - """Test AuthSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthSettings` - """ - model = AuthSettings() - if include_optional: - return AuthSettings( - auth_method = 'AAA', - auth_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - passwords = [ - '' - ], - passwords_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - usernames = [ - '' - ], - usernames_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AuthSettings( - ) - """ - - def testAuthSettings(self): - """Test AuthSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authenticate200_response.py b/test/test_authenticate200_response.py deleted file mode 100644 index 296d0a7..0000000 --- a/test/test_authenticate200_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.authenticate200_response import Authenticate200Response - -class TestAuthenticate200Response(unittest.TestCase): - """Authenticate200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Authenticate200Response: - """Test Authenticate200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Authenticate200Response` - """ - model = Authenticate200Response() - if include_optional: - return Authenticate200Response( - access_token = '', - expires_in = 1.337, - refresh_expires_in = 1.337, - refresh_token = '' - ) - else: - return Authenticate200Response( - ) - """ - - def testAuthenticate200Response(self): - """Test Authenticate200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authentication_settings.py b/test/test_authentication_settings.py deleted file mode 100644 index 91aad9d..0000000 --- a/test/test_authentication_settings.py +++ /dev/null @@ -1,250 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.authentication_settings import AuthenticationSettings - -class TestAuthenticationSettings(unittest.TestCase): - """AuthenticationSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthenticationSettings: - """Test AuthenticationSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthenticationSettings` - """ - model = AuthenticationSettings() - if include_optional: - return AuthenticationSettings( - auth_method = 'PRE-SHARED-KEY', - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - shared_key = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AuthenticationSettings( - ) - """ - - def testAuthenticationSettings(self): - """Test AuthenticationSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authorization_api.py b/test/test_authorization_api.py deleted file mode 100644 index 8ccc12c..0000000 --- a/test/test_authorization_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.authorization_api import AuthorizationApi - - -class TestAuthorizationApi(unittest.TestCase): - """AuthorizationApi unit test stubs""" - - def setUp(self) -> None: - self.api = AuthorizationApi() - - def tearDown(self) -> None: - pass - - def test_authenticate(self) -> None: - """Test case for authenticate - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_automatic_ip_type.py b/test/test_automatic_ip_type.py deleted file mode 100644 index 3220447..0000000 --- a/test/test_automatic_ip_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.automatic_ip_type import AutomaticIpType - -class TestAutomaticIpType(unittest.TestCase): - """AutomaticIpType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAutomaticIpType(self): - """Test AutomaticIpType""" - # inst = AutomaticIpType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_broker.py b/test/test_broker.py deleted file mode 100644 index e5121a2..0000000 --- a/test/test_broker.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.broker import Broker - -class TestBroker(unittest.TestCase): - """Broker unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Broker: - """Test Broker - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Broker` - """ - model = Broker() - if include_optional: - return Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '' - ) - else: - return Broker( - ) - """ - - def testBroker(self): - """Test Broker""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_brokers_api.py b/test/test_brokers_api.py deleted file mode 100644 index 3a4ef8a..0000000 --- a/test/test_brokers_api.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.brokers_api import BrokersApi - - -class TestBrokersApi(unittest.TestCase): - """BrokersApi unit test stubs""" - - def setUp(self) -> None: - self.api = BrokersApi() - - def tearDown(self) -> None: - pass - - def test_create_brokers(self) -> None: - """Test case for create_brokers - - """ - pass - - def test_delete_broker(self) -> None: - """Test case for delete_broker - - """ - pass - - def test_get_broker_by_id(self) -> None: - """Test case for get_broker_by_id - - """ - pass - - def test_get_brokers(self) -> None: - """Test case for get_brokers - - """ - pass - - def test_patch_broker(self) -> None: - """Test case for patch_broker - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture.py b/test/test_capture.py deleted file mode 100644 index 19f8ccb..0000000 --- a/test/test_capture.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture import Capture - -class TestCapture(unittest.TestCase): - """Capture unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Capture: - """Test Capture - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Capture` - """ - model = Capture() - if include_optional: - return Capture( - capture_id = '', - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ] - ) - else: - return Capture( - ) - """ - - def testCapture(self): - """Test Capture""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_input.py b/test/test_capture_input.py deleted file mode 100644 index d19bf6b..0000000 --- a/test/test_capture_input.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_input import CaptureInput - -class TestCaptureInput(unittest.TestCase): - """CaptureInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureInput: - """Test CaptureInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureInput` - """ - model = CaptureInput() - if include_optional: - return CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ] - ) - else: - return CaptureInput( - ) - """ - - def testCaptureInput(self): - """Test CaptureInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_input_find_param.py b/test/test_capture_input_find_param.py deleted file mode 100644 index 15641e6..0000000 --- a/test/test_capture_input_find_param.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_input_find_param import CaptureInputFindParam - -class TestCaptureInputFindParam(unittest.TestCase): - """CaptureInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureInputFindParam: - """Test CaptureInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureInputFindParam` - """ - model = CaptureInputFindParam() - if include_optional: - return CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ] - ) - else: - return CaptureInputFindParam( - ) - """ - - def testCaptureInputFindParam(self): - """Test CaptureInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_settings.py b/test/test_capture_settings.py deleted file mode 100644 index 8338f6a..0000000 --- a/test/test_capture_settings.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_settings import CaptureSettings - -class TestCaptureSettings(unittest.TestCase): - """CaptureSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureSettings: - """Test CaptureSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureSettings` - """ - model = CaptureSettings() - if include_optional: - return CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = 'NONE', - max_capture_size = 56 - ) - else: - return CaptureSettings( - capture_enabled = True, - log_level = 'NONE', - ) - """ - - def testCaptureSettings(self): - """Test CaptureSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category.py b/test/test_category.py deleted file mode 100644 index 47e4026..0000000 --- a/test/test_category.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category import Category - -class TestCategory(unittest.TestCase): - """Category unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Category: - """Test Category - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Category` - """ - model = Category() - if include_optional: - return Category( - index = 56, - name = '', - values = [ - cyperf.models.category_value.CategoryValue( - items_count = 56, - value = '', ) - ] - ) - else: - return Category( - ) - """ - - def testCategory(self): - """Test Category""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category_filter.py b/test/test_category_filter.py deleted file mode 100644 index f88a949..0000000 --- a/test/test_category_filter.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category_filter import CategoryFilter - -class TestCategoryFilter(unittest.TestCase): - """CategoryFilter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CategoryFilter: - """Test CategoryFilter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CategoryFilter` - """ - model = CategoryFilter() - if include_optional: - return CategoryFilter( - category = '', - values = [ - '' - ] - ) - else: - return CategoryFilter( - ) - """ - - def testCategoryFilter(self): - """Test CategoryFilter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category_value.py b/test/test_category_value.py deleted file mode 100644 index 01c28c5..0000000 --- a/test/test_category_value.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category_value import CategoryValue - -class TestCategoryValue(unittest.TestCase): - """CategoryValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CategoryValue: - """Test CategoryValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CategoryValue` - """ - model = CategoryValue() - if include_optional: - return CategoryValue( - items_count = 56, - value = '' - ) - else: - return CategoryValue( - ) - """ - - def testCategoryValue(self): - """Test CategoryValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cert_config.py b/test/test_cert_config.py deleted file mode 100644 index 370819e..0000000 --- a/test/test_cert_config.py +++ /dev/null @@ -1,359 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cert_config import CertConfig - -class TestCertConfig(unittest.TestCase): - """CertConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CertConfig: - """Test CertConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CertConfig` - """ - model = CertConfig() - if include_optional: - return CertConfig( - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - dh_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '' - ) - else: - return CertConfig( - id = '', - sni_hostname = '', - ) - """ - - def testCertConfig(self): - """Test CertConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_certificate.py b/test/test_certificate.py deleted file mode 100644 index 8601cc3..0000000 --- a/test/test_certificate.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.certificate import Certificate - -class TestCertificate(unittest.TestCase): - """Certificate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Certificate: - """Test Certificate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Certificate` - """ - model = Certificate() - if include_optional: - return Certificate( - auto = True, - dns_names = [ - '' - ], - ip_addresses = [ - '' - ], - issuer = '', - not_after = '', - not_before = '', - valid_for = 56 - ) - else: - return Certificate( - ) - """ - - def testCertificate(self): - """Test Certificate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_change_aggregation_mode_operation.py b/test/test_change_aggregation_mode_operation.py deleted file mode 100644 index c0c24ce..0000000 --- a/test/test_change_aggregation_mode_operation.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.change_aggregation_mode_operation import ChangeAggregationModeOperation - -class TestChangeAggregationModeOperation(unittest.TestCase): - """ChangeAggregationModeOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChangeAggregationModeOperation: - """Test ChangeAggregationModeOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChangeAggregationModeOperation` - """ - model = ChangeAggregationModeOperation() - if include_optional: - return ChangeAggregationModeOperation( - aggregated = True, - compute_nodes = [ - '' - ], - controller = '' - ) - else: - return ChangeAggregationModeOperation( - ) - """ - - def testChangeAggregationModeOperation(self): - """Test ChangeAggregationModeOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_change_link_state_operation.py b/test/test_change_link_state_operation.py deleted file mode 100644 index d48edff..0000000 --- a/test/test_change_link_state_operation.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.change_link_state_operation import ChangeLinkStateOperation - -class TestChangeLinkStateOperation(unittest.TestCase): - """ChangeLinkStateOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChangeLinkStateOperation: - """Test ChangeLinkStateOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChangeLinkStateOperation` - """ - model = ChangeLinkStateOperation() - if include_optional: - return ChangeLinkStateOperation( - link = 'DOWN', - ports = [ - '' - ] - ) - else: - return ChangeLinkStateOperation( - ) - """ - - def testChangeLinkStateOperation(self): - """Test ChangeLinkStateOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_chassis_info.py b/test/test_chassis_info.py deleted file mode 100644 index 8ef3816..0000000 --- a/test/test_chassis_info.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.chassis_info import ChassisInfo - -class TestChassisInfo(unittest.TestCase): - """ChassisInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChassisInfo: - """Test ChassisInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChassisInfo` - """ - model = ChassisInfo() - if include_optional: - return ChassisInfo( - checkout_id = 56, - compute_node_id = '', - port_id = '' - ) - else: - return ChassisInfo( - ) - """ - - def testChassisInfo(self): - """Test ChassisInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_choice.py b/test/test_choice.py deleted file mode 100644 index b8bde76..0000000 --- a/test/test_choice.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.choice import Choice - -class TestChoice(unittest.TestCase): - """Choice unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Choice: - """Test Choice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Choice` - """ - model = Choice() - if include_optional: - return Choice( - description = '', - hidden = True, - name = '', - value = '' - ) - else: - return Choice( - ) - """ - - def testChoice(self): - """Test Choice""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cipher_tls12.py b/test/test_cipher_tls12.py deleted file mode 100644 index 8e92fea..0000000 --- a/test/test_cipher_tls12.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cipher_tls12 import CipherTLS12 - -class TestCipherTLS12(unittest.TestCase): - """CipherTLS12 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCipherTLS12(self): - """Test CipherTLS12""" - # inst = CipherTLS12() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cipher_tls13.py b/test/test_cipher_tls13.py deleted file mode 100644 index ef4834e..0000000 --- a/test/test_cipher_tls13.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cipher_tls13 import CipherTLS13 - -class TestCipherTLS13(unittest.TestCase): - """CipherTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCipherTLS13(self): - """Test CipherTLS13""" - # inst = CipherTLS13() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cisco_any_connect_settings.py b/test/test_cisco_any_connect_settings.py deleted file mode 100644 index 006acb3..0000000 --- a/test/test_cisco_any_connect_settings.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cisco_any_connect_settings import CiscoAnyConnectSettings - -class TestCiscoAnyConnectSettings(unittest.TestCase): - """CiscoAnyConnectSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CiscoAnyConnectSettings: - """Test CiscoAnyConnectSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CiscoAnyConnectSettings` - """ - model = CiscoAnyConnectSettings() - if include_optional: - return CiscoAnyConnectSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - cisco_encapsulation = cyperf.models.cisco_encapsulation.CiscoEncapsulation( - dtls_enabled = True, - dtls_settings = null, - encapsulation_mode = 'DTLS', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connection_profiles = [ - '' - ], - esp_probe_retry_timeout = 56, - esp_probe_timeout = 56, - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return CiscoAnyConnectSettings( - vpn_gateway = '::', - ) - """ - - def testCiscoAnyConnectSettings(self): - """Test CiscoAnyConnectSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cisco_encapsulation.py b/test/test_cisco_encapsulation.py deleted file mode 100644 index db518fb..0000000 --- a/test/test_cisco_encapsulation.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cisco_encapsulation import CiscoEncapsulation - -class TestCiscoEncapsulation(unittest.TestCase): - """CiscoEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CiscoEncapsulation: - """Test CiscoEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CiscoEncapsulation` - """ - model = CiscoEncapsulation() - if include_optional: - return CiscoEncapsulation( - dtls_enabled = True, - dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - encapsulation_mode = 'DTLS', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return CiscoEncapsulation( - dtls_enabled = True, - encapsulation_mode = 'DTLS', - udp_port = 56, - ) - """ - - def testCiscoEncapsulation(self): - """Test CiscoEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_clear_ports_ownership_operation.py b/test/test_clear_ports_ownership_operation.py deleted file mode 100644 index 240fd43..0000000 --- a/test/test_clear_ports_ownership_operation.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation - -class TestClearPortsOwnershipOperation(unittest.TestCase): - """ClearPortsOwnershipOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ClearPortsOwnershipOperation: - """Test ClearPortsOwnershipOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ClearPortsOwnershipOperation` - """ - model = ClearPortsOwnershipOperation() - if include_optional: - return ClearPortsOwnershipOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ] - ) - else: - return ClearPortsOwnershipOperation( - ) - """ - - def testClearPortsOwnershipOperation(self): - """Test ClearPortsOwnershipOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_command.py b/test/test_command.py deleted file mode 100644 index 6140bfb..0000000 --- a/test/test_command.py +++ /dev/null @@ -1,190 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.command import Command - -class TestCommand(unittest.TestCase): - """Command unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Command: - """Test Command - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Command` - """ - model = Command() - if include_optional: - return Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.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 = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Command( - ) - """ - - def testCommand(self): - """Test Command""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_compute_node.py b/test/test_compute_node.py deleted file mode 100644 index 3df2cf3..0000000 --- a/test/test_compute_node.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.compute_node import ComputeNode - -class TestComputeNode(unittest.TestCase): - """ComputeNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ComputeNode: - """Test ComputeNode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ComputeNode` - """ - model = ComputeNode() - if include_optional: - return ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '' - ) - else: - return ComputeNode( - ) - """ - - def testComputeNode(self): - """Test ComputeNode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config.py b/test/test_config.py deleted file mode 100644 index a3808ba..0000000 --- a/test/test_config.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config import Config - -class TestConfig(unittest.TestCase): - """Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Config: - """Test Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Config` - """ - model = Config() - if include_optional: - return Config( - attack_profiles = [ - null - ], - config_validation = cyperf.models.config_validation.ConfigValidation( - is_validated = True, - validation_messages = [ - cyperf.models.validation_message.ValidationMessage( - message = '', - severity = 'WARNING', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - custom_dashboards = cyperf.models.custom_dashboards.CustomDashboards( - active = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate = [ - 'YQ==' - ] - ) - else: - return Config( - ) - """ - - def testConfig(self): - """Test Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_category.py b/test/test_config_category.py deleted file mode 100644 index 5eaf032..0000000 --- a/test/test_config_category.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_category import ConfigCategory - -class TestConfigCategory(unittest.TestCase): - """ConfigCategory unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigCategory: - """Test ConfigCategory - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigCategory` - """ - model = ConfigCategory() - if include_optional: - return ConfigCategory( - display_name = '' - ) - else: - return ConfigCategory( - ) - """ - - def testConfigCategory(self): - """Test ConfigCategory""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_id.py b/test/test_config_id.py deleted file mode 100644 index c7e60c0..0000000 --- a/test/test_config_id.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_id import ConfigId - -class TestConfigId(unittest.TestCase): - """ConfigId unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigId: - """Test ConfigId - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigId` - """ - model = ConfigId() - if include_optional: - return ConfigId( - id = '' - ) - else: - return ConfigId( - ) - """ - - def testConfigId(self): - """Test ConfigId""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_metadata.py b/test/test_config_metadata.py deleted file mode 100644 index 0358ee0..0000000 --- a/test/test_config_metadata.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_metadata import ConfigMetadata - -class TestConfigMetadata(unittest.TestCase): - """ConfigMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigMetadata: - """Test ConfigMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigMetadata` - """ - model = ConfigMetadata() - if include_optional: - return ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ) - ) - else: - return ConfigMetadata( - ) - """ - - def testConfigMetadata(self): - """Test ConfigMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_metadata_config_data_value.py b/test/test_config_metadata_config_data_value.py deleted file mode 100644 index 20c8cd6..0000000 --- a/test/test_config_metadata_config_data_value.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue - -class TestConfigMetadataConfigDataValue(unittest.TestCase): - """ConfigMetadataConfigDataValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigMetadataConfigDataValue: - """Test ConfigMetadataConfigDataValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigMetadataConfigDataValue` - """ - model = ConfigMetadataConfigDataValue() - if include_optional: - return ConfigMetadataConfigDataValue( - ) - else: - return ConfigMetadataConfigDataValue( - ) - """ - - def testConfigMetadataConfigDataValue(self): - """Test ConfigMetadataConfigDataValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_validation.py b/test/test_config_validation.py deleted file mode 100644 index b6fc329..0000000 --- a/test/test_config_validation.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_validation import ConfigValidation - -class TestConfigValidation(unittest.TestCase): - """ConfigValidation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigValidation: - """Test ConfigValidation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigValidation` - """ - model = ConfigValidation() - if include_optional: - return ConfigValidation( - is_validated = True, - validation_messages = [ - cyperf.models.validation_message.ValidationMessage( - message = '', - severity = 'WARNING', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ConfigValidation( - is_validated = True, - ) - """ - - def testConfigValidation(self): - """Test ConfigValidation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_configurations_api.py b/test/test_configurations_api.py deleted file mode 100644 index 66a82a6..0000000 --- a/test/test_configurations_api.py +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.configurations_api import ConfigurationsApi - - -class TestConfigurationsApi(unittest.TestCase): - """ConfigurationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ConfigurationsApi() - - def tearDown(self) -> None: - pass - - def test_create_configs(self) -> None: - """Test case for create_configs - - """ - pass - - def test_delete_config(self) -> None: - """Test case for delete_config - - """ - pass - - def test_get_config_by_id(self) -> None: - """Test case for get_config_by_id - - """ - pass - - def test_get_config_categories(self) -> None: - """Test case for get_config_categories - - """ - pass - - def test_get_configs(self) -> None: - """Test case for get_configs - - """ - pass - - def test_get_resources_custom_import_operations(self) -> None: - """Test case for get_resources_custom_import_operations - - """ - pass - - def test_patch_config(self) -> None: - """Test case for patch_config - - """ - pass - - def test_poll_configs_batch_delete(self) -> None: - """Test case for poll_configs_batch_delete - - """ - pass - - def test_poll_configs_export_all(self) -> None: - """Test case for poll_configs_export_all - - """ - pass - - def test_poll_configs_import(self) -> None: - """Test case for poll_configs_import - - """ - pass - - def test_poll_configs_import_all(self) -> None: - """Test case for poll_configs_import_all - - """ - pass - - def test_start_configs_batch_delete(self) -> None: - """Test case for start_configs_batch_delete - - """ - pass - - def test_start_configs_export_all(self) -> None: - """Test case for start_configs_export_all - - """ - pass - - def test_start_configs_import(self) -> None: - """Test case for start_configs_import - - """ - pass - - def test_start_configs_import_all(self) -> None: - """Test case for start_configs_import_all - - """ - pass - - def test_update_config(self) -> None: - """Test case for update_config - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_conflict.py b/test/test_conflict.py deleted file mode 100644 index 8e3115d..0000000 --- a/test/test_conflict.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.conflict import Conflict - -class TestConflict(unittest.TestCase): - """Conflict unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Conflict: - """Test Conflict - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Conflict` - """ - model = Conflict() - if include_optional: - return Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - } - ) - else: - return Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, - ) - """ - - def testConflict(self): - """Test Conflict""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_connection.py b/test/test_connection.py deleted file mode 100644 index 36839f3..0000000 --- a/test/test_connection.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.connection import Connection - -class TestConnection(unittest.TestCase): - """Connection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Connection: - """Test Connection - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Connection` - """ - model = Connection() - if include_optional: - return Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = cyperf.models.port_settings.PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - effective_ports = cyperf.models.effective_ports.EffectivePorts(), - forward_proxy_port = 56, - readonly = True, - server_listen_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Connection( - client_endpoint = '', - client_port = 56, - max_transactions = 56, - server_port = 56, - id = '', - ) - """ - - def testConnection(self): - """Test Connection""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_connection_persistence.py b/test/test_connection_persistence.py deleted file mode 100644 index 45fd368..0000000 --- a/test/test_connection_persistence.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.connection_persistence import ConnectionPersistence - -class TestConnectionPersistence(unittest.TestCase): - """ConnectionPersistence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConnectionPersistence(self): - """Test ConnectionPersistence""" - # inst = ConnectionPersistence() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_consumer.py b/test/test_consumer.py deleted file mode 100644 index 4afa9b6..0000000 --- a/test/test_consumer.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.consumer import Consumer - -class TestConsumer(unittest.TestCase): - """Consumer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Consumer: - """Test Consumer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Consumer` - """ - model = Consumer() - if include_optional: - return Consumer( - id = '', - pretty_size = '', - size = 56 - ) - else: - return Consumer( - ) - """ - - def testConsumer(self): - """Test Consumer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_controller.py b/test/test_controller.py deleted file mode 100644 index 7f98509..0000000 --- a/test/test_controller.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.controller import Controller - -class TestController(unittest.TestCase): - """Controller unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Controller: - """Test Controller - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Controller` - """ - model = Controller() - if include_optional: - return Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '' - ) - else: - return Controller( - ) - """ - - def testController(self): - """Test Controller""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_counted_feature_consumer.py b/test/test_counted_feature_consumer.py deleted file mode 100644 index c57cffc..0000000 --- a/test/test_counted_feature_consumer.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.counted_feature_consumer import CountedFeatureConsumer - -class TestCountedFeatureConsumer(unittest.TestCase): - """CountedFeatureConsumer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CountedFeatureConsumer: - """Test CountedFeatureConsumer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CountedFeatureConsumer` - """ - model = CountedFeatureConsumer() - if include_optional: - return CountedFeatureConsumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '' - ) - else: - return CountedFeatureConsumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', - ) - """ - - def testCountedFeatureConsumer(self): - """Test CountedFeatureConsumer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_counted_feature_stats.py b/test/test_counted_feature_stats.py deleted file mode 100644 index c024840..0000000 --- a/test/test_counted_feature_stats.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.counted_feature_stats import CountedFeatureStats - -class TestCountedFeatureStats(unittest.TestCase): - """CountedFeatureStats unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CountedFeatureStats: - """Test CountedFeatureStats - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CountedFeatureStats` - """ - model = CountedFeatureStats() - if include_optional: - return CountedFeatureStats( - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56 - ) - else: - return CountedFeatureStats( - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56, - ) - """ - - def testCountedFeatureStats(self): - """Test CountedFeatureStats""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_app_operation.py b/test/test_create_app_operation.py deleted file mode 100644 index b9dc5b1..0000000 --- a/test/test_create_app_operation.py +++ /dev/null @@ -1,240 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.create_app_operation import CreateAppOperation - -class TestCreateAppOperation(unittest.TestCase): - """CreateAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateAppOperation: - """Test CreateAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateAppOperation` - """ - model = CreateAppOperation() - if include_optional: - return CreateAppOperation( - actions = [ - cyperf.models.action_input.ActionInput( - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], ) - ], - app_name = '', - app_type = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ] - ) - else: - return CreateAppOperation( - ) - """ - - def testCreateAppOperation(self): - """Test CreateAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_app_or_attack_operation_input.py b/test/test_create_app_or_attack_operation_input.py deleted file mode 100644 index b848d70..0000000 --- a/test/test_create_app_or_attack_operation_input.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput - -class TestCreateAppOrAttackOperationInput(unittest.TestCase): - """CreateAppOrAttackOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateAppOrAttackOperationInput: - """Test CreateAppOrAttackOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateAppOrAttackOperationInput` - """ - model = CreateAppOrAttackOperationInput() - if include_optional: - return CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '' - ) - else: - return CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - ) - """ - - def testCreateAppOrAttackOperationInput(self): - """Test CreateAppOrAttackOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_dashboards.py b/test/test_custom_dashboards.py deleted file mode 100644 index 9e367f5..0000000 --- a/test/test_custom_dashboards.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_dashboards import CustomDashboards - -class TestCustomDashboards(unittest.TestCase): - """CustomDashboards unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomDashboards: - """Test CustomDashboards - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomDashboards` - """ - model = CustomDashboards() - if include_optional: - return CustomDashboards( - active = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return CustomDashboards( - active = True, - ) - """ - - def testCustomDashboards(self): - """Test CustomDashboards""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_import_handler.py b/test/test_custom_import_handler.py deleted file mode 100644 index f687846..0000000 --- a/test/test_custom_import_handler.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_import_handler import CustomImportHandler - -class TestCustomImportHandler(unittest.TestCase): - """CustomImportHandler unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomImportHandler: - """Test CustomImportHandler - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomImportHandler` - """ - model = CustomImportHandler() - if include_optional: - return CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '' - ) - else: - return CustomImportHandler( - ) - """ - - def testCustomImportHandler(self): - """Test CustomImportHandler""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_stat.py b/test/test_custom_stat.py deleted file mode 100644 index 206b1b8..0000000 --- a/test/test_custom_stat.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_stat import CustomStat - -class TestCustomStat(unittest.TestCase): - """CustomStat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomStat: - """Test CustomStat - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomStat` - """ - model = CustomStat() - if include_optional: - return CustomStat( - function = '', - path = '' - ) - else: - return CustomStat( - ) - """ - - def testCustomStat(self): - """Test CustomStat""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dashboard.py b/test/test_dashboard.py deleted file mode 100644 index 2ecd60b..0000000 --- a/test/test_dashboard.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dashboard import Dashboard - -class TestDashboard(unittest.TestCase): - """Dashboard unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Dashboard: - """Test Dashboard - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Dashboard` - """ - model = Dashboard() - if include_optional: - return Dashboard( - id = '', - name = '' - ) - else: - return Dashboard( - ) - """ - - def testDashboard(self): - """Test Dashboard""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_migration_api.py b/test/test_data_migration_api.py deleted file mode 100644 index d9cf667..0000000 --- a/test/test_data_migration_api.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.data_migration_api import DataMigrationApi - - -class TestDataMigrationApi(unittest.TestCase): - """DataMigrationApi unit test stubs""" - - def setUp(self) -> None: - self.api = DataMigrationApi() - - def tearDown(self) -> None: - pass - - def test_poll_controller_migration_export(self) -> None: - """Test case for poll_controller_migration_export - - """ - pass - - def test_poll_controller_migration_import(self) -> None: - """Test case for poll_controller_migration_import - - """ - pass - - def test_start_controller_migration_export(self) -> None: - """Test case for start_controller_migration_export - - """ - pass - - def test_start_controller_migration_import(self) -> None: - """Test case for start_controller_migration_import - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_type.py b/test/test_data_type.py deleted file mode 100644 index 91530b9..0000000 --- a/test/test_data_type.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.data_type import DataType - -class TestDataType(unittest.TestCase): - """DataType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataType: - """Test DataType - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DataType` - """ - model = DataType() - if include_optional: - return DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '' - ) - else: - return DataType( - ) - """ - - def testDataType(self): - """Test DataType""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_type_values_inner.py b/test/test_data_type_values_inner.py deleted file mode 100644 index 4161c81..0000000 --- a/test/test_data_type_values_inner.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.data_type_values_inner import DataTypeValuesInner - -class TestDataTypeValuesInner(unittest.TestCase): - """DataTypeValuesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataTypeValuesInner: - """Test DataTypeValuesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DataTypeValuesInner` - """ - model = DataTypeValuesInner() - if include_optional: - return DataTypeValuesInner( - id = '', - value_type = '' - ) - else: - return DataTypeValuesInner( - ) - """ - - def testDataTypeValuesInner(self): - """Test DataTypeValuesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_definition.py b/test/test_definition.py deleted file mode 100644 index 180faa6..0000000 --- a/test/test_definition.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.definition import Definition - -class TestDefinition(unittest.TestCase): - """Definition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Definition: - """Test Definition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Definition` - """ - model = Definition() - if include_optional: - return Definition( - xml = 'YQ==' - ) - else: - return Definition( - ) - """ - - def testDefinition(self): - """Test Definition""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_delete_input.py b/test/test_delete_input.py deleted file mode 100644 index 0f16040..0000000 --- a/test/test_delete_input.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.delete_input import DeleteInput - -class TestDeleteInput(unittest.TestCase): - """DeleteInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteInput: - """Test DeleteInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteInput` - """ - model = DeleteInput() - if include_optional: - return DeleteInput( - action_index_delete_at = 56, - exchange_delete_at = 56, - flow_index_delete_at = 56, - type = '' - ) - else: - return DeleteInput( - ) - """ - - def testDeleteInput(self): - """Test DeleteInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dh_p1_group.py b/test/test_dh_p1_group.py deleted file mode 100644 index 3b91a6c..0000000 --- a/test/test_dh_p1_group.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dh_p1_group import DhP1Group - -class TestDhP1Group(unittest.TestCase): - """DhP1Group unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDhP1Group(self): - """Test DhP1Group""" - # inst = DhP1Group() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_component.py b/test/test_diagnostic_component.py deleted file mode 100644 index 0452351..0000000 --- a/test/test_diagnostic_component.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_component import DiagnosticComponent - -class TestDiagnosticComponent(unittest.TestCase): - """DiagnosticComponent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticComponent: - """Test DiagnosticComponent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticComponent` - """ - model = DiagnosticComponent() - if include_optional: - return DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ] - ) - else: - return DiagnosticComponent( - ) - """ - - def testDiagnosticComponent(self): - """Test DiagnosticComponent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_component_context.py b/test/test_diagnostic_component_context.py deleted file mode 100644 index 1c9e04d..0000000 --- a/test/test_diagnostic_component_context.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_component_context import DiagnosticComponentContext - -class TestDiagnosticComponentContext(unittest.TestCase): - """DiagnosticComponentContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticComponentContext: - """Test DiagnosticComponentContext - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticComponentContext` - """ - model = DiagnosticComponentContext() - if include_optional: - return DiagnosticComponentContext( - component_list = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ], - context = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ] - ) - else: - return DiagnosticComponentContext( - component_list = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ], - ) - """ - - def testDiagnosticComponentContext(self): - """Test DiagnosticComponentContext""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_options.py b/test/test_diagnostic_options.py deleted file mode 100644 index 18453be..0000000 --- a/test/test_diagnostic_options.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_options import DiagnosticOptions - -class TestDiagnosticOptions(unittest.TestCase): - """DiagnosticOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticOptions: - """Test DiagnosticOptions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticOptions` - """ - model = DiagnosticOptions() - if include_optional: - return DiagnosticOptions( - name = '', - value = '' - ) - else: - return DiagnosticOptions( - ) - """ - - def testDiagnosticOptions(self): - """Test DiagnosticOptions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostics_api.py b/test/test_diagnostics_api.py deleted file mode 100644 index 11136fc..0000000 --- a/test/test_diagnostics_api.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.diagnostics_api import DiagnosticsApi - - -class TestDiagnosticsApi(unittest.TestCase): - """DiagnosticsApi unit test stubs""" - - def setUp(self) -> None: - self.api = DiagnosticsApi() - - def tearDown(self) -> None: - pass - - def test_api_v2_diagnostics_components_get(self) -> None: - """Test case for api_v2_diagnostics_components_get - - """ - pass - - def test_api_v2_diagnostics_operations_delete_delete(self) -> None: - """Test case for api_v2_diagnostics_operations_delete_delete - - """ - pass - - def test_api_v2_diagnostics_operations_delete_id_delete(self) -> None: - """Test case for api_v2_diagnostics_operations_delete_id_delete - - """ - pass - - def test_api_v2_diagnostics_operations_export_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_id_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_id_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_id_result_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_id_result_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_post(self) -> None: - """Test case for api_v2_diagnostics_operations_export_post - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_disk_usage.py b/test/test_disk_usage.py deleted file mode 100644 index f26f957..0000000 --- a/test/test_disk_usage.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.disk_usage import DiskUsage - -class TestDiskUsage(unittest.TestCase): - """DiskUsage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiskUsage: - """Test DiskUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiskUsage` - """ - model = DiskUsage() - if include_optional: - return DiskUsage( - available = 56, - consumers = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - critical_disk_space = True, - critical_threshold = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - low_disk_space = True, - low_threshold = 56, - message = '', - pretty_available = '', - pretty_size = '', - size = 56 - ) - else: - return DiskUsage( - ) - """ - - def testDiskUsage(self): - """Test DiskUsage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dns_resolver.py b/test/test_dns_resolver.py deleted file mode 100644 index fd1ab28..0000000 --- a/test/test_dns_resolver.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dns_resolver import DNSResolver - -class TestDNSResolver(unittest.TestCase): - """DNSResolver unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DNSResolver: - """Test DNSResolver - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DNSResolver` - """ - model = DNSResolver() - if include_optional: - return DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ] - ) - else: - return DNSResolver( - ) - """ - - def testDNSResolver(self): - """Test DNSResolver""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dns_server.py b/test/test_dns_server.py deleted file mode 100644 index 925f950..0000000 --- a/test/test_dns_server.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dns_server import DNSServer - -class TestDNSServer(unittest.TestCase): - """DNSServer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DNSServer: - """Test DNSServer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DNSServer` - """ - model = DNSServer() - if include_optional: - return DNSServer( - automatic = True, - enabled = True, - ip_to_resolve_to = '::02:84:9:0cc0:F:CCf', - port = 56 - ) - else: - return DNSServer( - enabled = True, - port = 56, - ) - """ - - def testDNSServer(self): - """Test DNSServer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dtls_settings.py b/test/test_dtls_settings.py deleted file mode 100644 index 6ef06c5..0000000 --- a/test/test_dtls_settings.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dtls_settings import DTLSSettings - -class TestDTLSSettings(unittest.TestCase): - """DTLSSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DTLSSettings: - """Test DTLSSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DTLSSettings` - """ - model = DTLSSettings() - if include_optional: - return DTLSSettings( - tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return DTLSSettings( - ) - """ - - def testDTLSSettings(self): - """Test DTLSSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dut_network.py b/test/test_dut_network.py deleted file mode 100644 index 768d859..0000000 --- a/test/test_dut_network.py +++ /dev/null @@ -1,788 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dut_network import DUTNetwork - -class TestDUTNetwork(unittest.TestCase): - """DUTNetwork unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DUTNetwork: - """Test DUTNetwork - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DUTNetwork` - """ - model = DUTNetwork() - if include_optional: - return DUTNetwork( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ], - client_dut_active = True, - client_dut_host = '252.7.188.200', - client_dut_port = 56, - config_settings = 'SIMPLE_MODE', - forward_proxy_pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - forward_proxy_pep_dut_active = True, - http_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - https_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - hostname_suffix = '252.7.188.200', - http_forward_proxy_mode = 'PROXY_MODE', - non_proxied_hosts = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - pep_dut_active = True, - reverse_proxy_pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - reverse_proxy_pep_dut_active = True, - server_dut_active = True, - server_dut_host = '252.7.188.200', - server_dut_port = 56, - tcp_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - use_real_host = True, - active = True, - host = '252.7.188.200', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return DUTNetwork( - name = 'YBuLd', - id = '', - ) - """ - - def testDUTNetwork(self): - """Test DUTNetwork""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_edit_action_input.py b/test/test_edit_action_input.py deleted file mode 100644 index 9850903..0000000 --- a/test/test_edit_action_input.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.edit_action_input import EditActionInput - -class TestEditActionInput(unittest.TestCase): - """EditActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EditActionInput: - """Test EditActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EditActionInput` - """ - model = EditActionInput() - if include_optional: - return EditActionInput( - action_index = 56, - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ] - ) - else: - return EditActionInput( - ) - """ - - def testEditActionInput(self): - """Test EditActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_edit_app_operation.py b/test/test_edit_app_operation.py deleted file mode 100644 index d91e709..0000000 --- a/test/test_edit_app_operation.py +++ /dev/null @@ -1,361 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.edit_app_operation import EditAppOperation - -class TestEditAppOperation(unittest.TestCase): - """EditAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EditAppOperation: - """Test EditAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EditAppOperation` - """ - model = EditAppOperation() - if include_optional: - return EditAppOperation( - add_inputs = [ - cyperf.models.add_input.AddInput( - action_index = 56, - action_name = '', - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - exchange_index_insert_at = 56, - flow_index_insert_at = 56, - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - type = '', ) - ], - app_id = '', - app_name = '', - app_parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - delete_inputs = [ - cyperf.models.delete_input.DeleteInput( - action_index_delete_at = 56, - exchange_delete_at = 56, - flow_index_delete_at = 56, - type = '', ) - ], - edit_action_inputs = [ - cyperf.models.edit_action_input.EditActionInput( - action_index = 56, - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], ) - ], - rename_inputs = [ - cyperf.models.rename_input.RenameInput( - new_action_name = '', - old_action_name = '', ) - ], - reorder_actions_inputs = [ - cyperf.models.reorder_action_input.ReorderActionInput( - action_idx = 56, - action_name = '', ) - ], - reorder_exchanges_inputs = [ - cyperf.models.reorder_exchanges_input.ReorderExchangesInput( - action_name = '', - exchanges_order = [ - cyperf.models.exchange_order.ExchangeOrder( - exchange_id = '', - exchange_idx = 56, ) - ], - flow_idx = 56, ) - ] - ) - else: - return EditAppOperation( - ) - """ - - def testEditAppOperation(self): - """Test EditAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_effective_ports.py b/test/test_effective_ports.py deleted file mode 100644 index 246bbb0..0000000 --- a/test/test_effective_ports.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.effective_ports import EffectivePorts - -class TestEffectivePorts(unittest.TestCase): - """EffectivePorts unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EffectivePorts: - """Test EffectivePorts - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EffectivePorts` - """ - model = EffectivePorts() - if include_optional: - return EffectivePorts( - effective_destination_port = '', - effective_forward_proxy_port = '', - effective_server_port = '' - ) - else: - return EffectivePorts( - effective_destination_port = '', - effective_server_port = '', - ) - """ - - def testEffectivePorts(self): - """Test EffectivePorts""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_router.py b/test/test_emulated_router.py deleted file mode 100644 index 85c22be..0000000 --- a/test/test_emulated_router.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_router import EmulatedRouter - -class TestEmulatedRouter(unittest.TestCase): - """EmulatedRouter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedRouter: - """Test EmulatedRouter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedRouter` - """ - model = EmulatedRouter() - if include_optional: - return EmulatedRouter( - emulated_router_ranges = [ - null - ], - enabled = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return EmulatedRouter( - enabled = True, - ) - """ - - def testEmulatedRouter(self): - """Test EmulatedRouter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_router_range.py b/test/test_emulated_router_range.py deleted file mode 100644 index 989ff24..0000000 --- a/test/test_emulated_router_range.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_router_range import EmulatedRouterRange - -class TestEmulatedRouterRange(unittest.TestCase): - """EmulatedRouterRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedRouterRange: - """Test EmulatedRouterRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedRouterRange` - """ - model = EmulatedRouterRange() - if include_optional: - return EmulatedRouterRange( - automatic_ip_type = 'BOTH_IPV4_IPV6', - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = 'IPV4', - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ] - ) - else: - return EmulatedRouterRange( - gw_auto = True, - ip_auto = True, - ip_range_name = 'YBuLd', - ip_ver = 'IPV4', - mss = 56, - mss_auto = True, - net_mask_auto = True, - id = '', - ) - """ - - def testEmulatedRouterRange(self): - """Test EmulatedRouterRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_subnet_config.py b/test/test_emulated_subnet_config.py deleted file mode 100644 index b50c563..0000000 --- a/test/test_emulated_subnet_config.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_subnet_config import EmulatedSubnetConfig - -class TestEmulatedSubnetConfig(unittest.TestCase): - """EmulatedSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedSubnetConfig: - """Test EmulatedSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedSubnetConfig` - """ - model = EmulatedSubnetConfig() - if include_optional: - return EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ] - ) - else: - return EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], - ) - """ - - def testEmulatedSubnetConfig(self): - """Test EmulatedSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enc_p1_algorithm.py b/test/test_enc_p1_algorithm.py deleted file mode 100644 index 3d97088..0000000 --- a/test/test_enc_p1_algorithm.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enc_p1_algorithm import EncP1Algorithm - -class TestEncP1Algorithm(unittest.TestCase): - """EncP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEncP1Algorithm(self): - """Test EncP1Algorithm""" - # inst = EncP1Algorithm() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enc_p2_algorithm.py b/test/test_enc_p2_algorithm.py deleted file mode 100644 index ed5c5a7..0000000 --- a/test/test_enc_p2_algorithm.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enc_p2_algorithm import EncP2Algorithm - -class TestEncP2Algorithm(unittest.TestCase): - """EncP2Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEncP2Algorithm(self): - """Test EncP2Algorithm""" - # inst = EncP2Algorithm() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_endpoint.py b/test/test_endpoint.py deleted file mode 100644 index 3f6185d..0000000 --- a/test/test_endpoint.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.endpoint import Endpoint - -class TestEndpoint(unittest.TestCase): - """Endpoint unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Endpoint: - """Test Endpoint - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Endpoint` - """ - model = Endpoint() - if include_optional: - return Endpoint( - name = '', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Endpoint( - name = '', - type = 'Client', - id = '', - ) - """ - - def testEndpoint(self): - """Test Endpoint""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_entitlement_code_info.py b/test/test_entitlement_code_info.py deleted file mode 100644 index 66cf031..0000000 --- a/test/test_entitlement_code_info.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.entitlement_code_info import EntitlementCodeInfo - -class TestEntitlementCodeInfo(unittest.TestCase): - """EntitlementCodeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EntitlementCodeInfo: - """Test EntitlementCodeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EntitlementCodeInfo` - """ - model = EntitlementCodeInfo() - if include_optional: - return EntitlementCodeInfo( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '' - ) - else: - return EntitlementCodeInfo( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - ) - """ - - def testEntitlementCodeInfo(self): - """Test EntitlementCodeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_entitlement_code_request.py b/test/test_entitlement_code_request.py deleted file mode 100644 index 18a3647..0000000 --- a/test/test_entitlement_code_request.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.entitlement_code_request import EntitlementCodeRequest - -class TestEntitlementCodeRequest(unittest.TestCase): - """EntitlementCodeRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EntitlementCodeRequest: - """Test EntitlementCodeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EntitlementCodeRequest` - """ - model = EntitlementCodeRequest() - if include_optional: - return EntitlementCodeRequest( - entitlement_code = '' - ) - else: - return EntitlementCodeRequest( - entitlement_code = '', - ) - """ - - def testEntitlementCodeRequest(self): - """Test EntitlementCodeRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enum.py b/test/test_enum.py deleted file mode 100644 index 213c1f9..0000000 --- a/test/test_enum.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enum import Enum - -class TestEnum(unittest.TestCase): - """Enum unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Enum: - """Test Enum - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Enum` - """ - model = Enum() - if include_optional: - return Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '' - ) - else: - return Enum( - ) - """ - - def testEnum(self): - """Test Enum""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_description.py b/test/test_error_description.py deleted file mode 100644 index e453080..0000000 --- a/test/test_error_description.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.error_description import ErrorDescription - -class TestErrorDescription(unittest.TestCase): - """ErrorDescription unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorDescription: - """Test ErrorDescription - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ErrorDescription` - """ - model = ErrorDescription() - if include_optional: - return ErrorDescription( - error = '' - ) - else: - return ErrorDescription( - error = '', - ) - """ - - def testErrorDescription(self): - """Test ErrorDescription""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_response.py b/test/test_error_response.py deleted file mode 100644 index a11a3b6..0000000 --- a/test/test_error_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.error_response import ErrorResponse - -class TestErrorResponse(unittest.TestCase): - """ErrorResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorResponse: - """Test ErrorResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ErrorResponse` - """ - model = ErrorResponse() - if include_optional: - return ErrorResponse( - message = '' - ) - else: - return ErrorResponse( - ) - """ - - def testErrorResponse(self): - """Test ErrorResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_esp_over_udp_settings.py b/test/test_esp_over_udp_settings.py deleted file mode 100644 index 455597f..0000000 --- a/test/test_esp_over_udp_settings.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings - -class TestESPOverUDPSettings(unittest.TestCase): - """ESPOverUDPSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ESPOverUDPSettings: - """Test ESPOverUDPSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ESPOverUDPSettings` - """ - model = ESPOverUDPSettings() - if include_optional: - return ESPOverUDPSettings( - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ESPOverUDPSettings( - ) - """ - - def testESPOverUDPSettings(self): - """Test ESPOverUDPSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eth_range.py b/test/test_eth_range.py deleted file mode 100644 index fa7c29c..0000000 --- a/test/test_eth_range.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eth_range import EthRange - -class TestEthRange(unittest.TestCase): - """EthRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EthRange: - """Test EthRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EthRange` - """ - model = EthRange() - if include_optional: - return EthRange( - count = 56, - mac_auto = True, - mac_incr = '2E-B0-08-29:0c:01', - mac_start = '2E-B0-08-29:0c:01', - one_mac_per_ip = True, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56 - ) - else: - return EthRange( - mac_auto = True, - ) - """ - - def testEthRange(self): - """Test EthRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eula_details.py b/test/test_eula_details.py deleted file mode 100644 index faa31e3..0000000 --- a/test/test_eula_details.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eula_details import EulaDetails - -class TestEulaDetails(unittest.TestCase): - """EulaDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EulaDetails: - """Test EulaDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EulaDetails` - """ - model = EulaDetails() - if include_optional: - return EulaDetails( - id = '', - accepted = True, - text = '', - html = '' - ) - else: - return EulaDetails( - accepted = True, - ) - """ - - def testEulaDetails(self): - """Test EulaDetails""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eula_summary.py b/test/test_eula_summary.py deleted file mode 100644 index c49d562..0000000 --- a/test/test_eula_summary.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eula_summary import EulaSummary - -class TestEulaSummary(unittest.TestCase): - """EulaSummary unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EulaSummary: - """Test EulaSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EulaSummary` - """ - model = EulaSummary() - if include_optional: - return EulaSummary( - id = '', - accepted = True - ) - else: - return EulaSummary( - accepted = True, - ) - """ - - def testEulaSummary(self): - """Test EulaSummary""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange.py b/test/test_exchange.py deleted file mode 100644 index 3dcc3d1..0000000 --- a/test/test_exchange.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange import Exchange - -class TestExchange(unittest.TestCase): - """Exchange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Exchange: - """Test Exchange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Exchange` - """ - model = Exchange() - if include_optional: - return Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '' - ) - else: - return Exchange( - id = '', - ) - """ - - def testExchange(self): - """Test Exchange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange_order.py b/test/test_exchange_order.py deleted file mode 100644 index d4032bd..0000000 --- a/test/test_exchange_order.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange_order import ExchangeOrder - -class TestExchangeOrder(unittest.TestCase): - """ExchangeOrder unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExchangeOrder: - """Test ExchangeOrder - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExchangeOrder` - """ - model = ExchangeOrder() - if include_optional: - return ExchangeOrder( - exchange_id = '', - exchange_idx = 56 - ) - else: - return ExchangeOrder( - ) - """ - - def testExchangeOrder(self): - """Test ExchangeOrder""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange_payload.py b/test/test_exchange_payload.py deleted file mode 100644 index 20435dd..0000000 --- a/test/test_exchange_payload.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange_payload import ExchangePayload - -class TestExchangePayload(unittest.TestCase): - """ExchangePayload unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExchangePayload: - """Test ExchangePayload - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExchangePayload` - """ - model = ExchangePayload() - if include_optional: - return ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==' - ) - else: - return ExchangePayload( - ) - """ - - def testExchangePayload(self): - """Test ExchangePayload""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space.py b/test/test_expected_disk_space.py deleted file mode 100644 index ca83fda..0000000 --- a/test/test_expected_disk_space.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space import ExpectedDiskSpace - -class TestExpectedDiskSpace(unittest.TestCase): - """ExpectedDiskSpace unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpace: - """Test ExpectedDiskSpace - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpace` - """ - model = ExpectedDiskSpace() - if include_optional: - return ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ) - ) - else: - return ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), - ) - """ - - def testExpectedDiskSpace(self): - """Test ExpectedDiskSpace""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_message.py b/test/test_expected_disk_space_message.py deleted file mode 100644 index b48292d..0000000 --- a/test/test_expected_disk_space_message.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_message import ExpectedDiskSpaceMessage - -class TestExpectedDiskSpaceMessage(unittest.TestCase): - """ExpectedDiskSpaceMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpaceMessage: - """Test ExpectedDiskSpaceMessage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpaceMessage` - """ - model = ExpectedDiskSpaceMessage() - if include_optional: - return ExpectedDiskSpaceMessage( - per_minute = '', - per_second = '', - total = '' - ) - else: - return ExpectedDiskSpaceMessage( - per_minute = '', - per_second = '', - total = '', - ) - """ - - def testExpectedDiskSpaceMessage(self): - """Test ExpectedDiskSpaceMessage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_pretty_size.py b/test/test_expected_disk_space_pretty_size.py deleted file mode 100644 index 0609a1c..0000000 --- a/test/test_expected_disk_space_pretty_size.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_pretty_size import ExpectedDiskSpacePrettySize - -class TestExpectedDiskSpacePrettySize(unittest.TestCase): - """ExpectedDiskSpacePrettySize unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpacePrettySize: - """Test ExpectedDiskSpacePrettySize - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpacePrettySize` - """ - model = ExpectedDiskSpacePrettySize() - if include_optional: - return ExpectedDiskSpacePrettySize( - per_minute = '', - per_second = '', - total = '' - ) - else: - return ExpectedDiskSpacePrettySize( - per_minute = '', - per_second = '', - total = '', - ) - """ - - def testExpectedDiskSpacePrettySize(self): - """Test ExpectedDiskSpacePrettySize""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_size.py b/test/test_expected_disk_space_size.py deleted file mode 100644 index 7741b81..0000000 --- a/test/test_expected_disk_space_size.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_size import ExpectedDiskSpaceSize - -class TestExpectedDiskSpaceSize(unittest.TestCase): - """ExpectedDiskSpaceSize unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpaceSize: - """Test ExpectedDiskSpaceSize - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpaceSize` - """ - model = ExpectedDiskSpaceSize() - if include_optional: - return ExpectedDiskSpaceSize( - per_minute = 56, - per_second = 56, - total = 56 - ) - else: - return ExpectedDiskSpaceSize( - per_minute = 56, - per_second = 56, - total = 56, - ) - """ - - def testExpectedDiskSpaceSize(self): - """Test ExpectedDiskSpaceSize""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_all_operation.py b/test/test_export_all_operation.py deleted file mode 100644 index 973b21b..0000000 --- a/test/test_export_all_operation.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_all_operation import ExportAllOperation - -class TestExportAllOperation(unittest.TestCase): - """ExportAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportAllOperation: - """Test ExportAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportAllOperation` - """ - model = ExportAllOperation() - if include_optional: - return ExportAllOperation( - config_ids = [ - cyperf.models.config_id.ConfigId( - id = '', ) - ] - ) - else: - return ExportAllOperation( - ) - """ - - def testExportAllOperation(self): - """Test ExportAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_apps_operation_input.py b/test/test_export_apps_operation_input.py deleted file mode 100644 index dbd1e68..0000000 --- a/test/test_export_apps_operation_input.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_apps_operation_input import ExportAppsOperationInput - -class TestExportAppsOperationInput(unittest.TestCase): - """ExportAppsOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportAppsOperationInput: - """Test ExportAppsOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportAppsOperationInput` - """ - model = ExportAppsOperationInput() - if include_optional: - return ExportAppsOperationInput( - app_ids = [ - cyperf.models.app_id.AppId( - id = '', ) - ] - ) - else: - return ExportAppsOperationInput( - ) - """ - - def testExportAppsOperationInput(self): - """Test ExportAppsOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_files_operation_input.py b/test/test_export_files_operation_input.py deleted file mode 100644 index 881459e..0000000 --- a/test/test_export_files_operation_input.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_files_operation_input import ExportFilesOperationInput - -class TestExportFilesOperationInput(unittest.TestCase): - """ExportFilesOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportFilesOperationInput: - """Test ExportFilesOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportFilesOperationInput` - """ - model = ExportFilesOperationInput() - if include_optional: - return ExportFilesOperationInput( - export_files_requests_by_agent = { - 'key' : [ - cyperf.models.export_files_request.ExportFilesRequest( - agent_id = '', - required_file_types = cyperf.models.required_file_types.RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True, ), - upload_location = '', ) - ] - }, - timeout = 56 - ) - else: - return ExportFilesOperationInput( - ) - """ - - def testExportFilesOperationInput(self): - """Test ExportFilesOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_files_request.py b/test/test_export_files_request.py deleted file mode 100644 index b052768..0000000 --- a/test/test_export_files_request.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_files_request import ExportFilesRequest - -class TestExportFilesRequest(unittest.TestCase): - """ExportFilesRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportFilesRequest: - """Test ExportFilesRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportFilesRequest` - """ - model = ExportFilesRequest() - if include_optional: - return ExportFilesRequest( - agent_id = '', - required_file_types = cyperf.models.required_file_types.RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True, ), - upload_location = '' - ) - else: - return ExportFilesRequest( - ) - """ - - def testExportFilesRequest(self): - """Test ExportFilesRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_package_operation.py b/test/test_export_package_operation.py deleted file mode 100644 index b27bd11..0000000 --- a/test/test_export_package_operation.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_package_operation import ExportPackageOperation - -class TestExportPackageOperation(unittest.TestCase): - """ExportPackageOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportPackageOperation: - """Test ExportPackageOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportPackageOperation` - """ - model = ExportPackageOperation() - if include_optional: - return ExportPackageOperation( - configs = True, - external_nats_brokers = True, - keycloak = True, - license_servers = True, - results = True - ) - else: - return ExportPackageOperation( - ) - """ - - def testExportPackageOperation(self): - """Test ExportPackageOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_external_resource_info.py b/test/test_external_resource_info.py deleted file mode 100644 index 5b714d4..0000000 --- a/test/test_external_resource_info.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.external_resource_info import ExternalResourceInfo - -class TestExternalResourceInfo(unittest.TestCase): - """ExternalResourceInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExternalResourceInfo: - """Test ExternalResourceInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExternalResourceInfo` - """ - model = ExternalResourceInfo() - if include_optional: - return ExternalResourceInfo( - external_resource_url = '' - ) - else: - return ExternalResourceInfo( - ) - """ - - def testExternalResourceInfo(self): - """Test ExternalResourceInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_f5_encapsulation.py b/test/test_f5_encapsulation.py deleted file mode 100644 index 76c50e0..0000000 --- a/test/test_f5_encapsulation.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.f5_encapsulation import F5Encapsulation - -class TestF5Encapsulation(unittest.TestCase): - """F5Encapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> F5Encapsulation: - """Test F5Encapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `F5Encapsulation` - """ - model = F5Encapsulation() - if include_optional: - return F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - udp_port = 56, - ) - """ - - def testF5Encapsulation(self): - """Test F5Encapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_f5_settings.py b/test/test_f5_settings.py deleted file mode 100644 index 57615f2..0000000 --- a/test/test_f5_settings.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.f5_settings import F5Settings - -class TestF5Settings(unittest.TestCase): - """F5Settings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> F5Settings: - """Test F5Settings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `F5Settings` - """ - model = F5Settings() - if include_optional: - return F5Settings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - f5_encapsulation = cyperf.models.f5_encapsulation.F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = null, - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return F5Settings( - ) - """ - - def testF5Settings(self): - """Test F5Settings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py deleted file mode 100644 index 5602d98..0000000 --- a/test/test_feature.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature import Feature - -class TestFeature(unittest.TestCase): - """Feature unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Feature: - """Test Feature - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Feature` - """ - model = Feature() - if include_optional: - return Feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ) - ) - else: - return Feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), - ) - """ - - def testFeature(self): - """Test Feature""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature_reservation.py b/test/test_feature_reservation.py deleted file mode 100644 index 33e5757..0000000 --- a/test/test_feature_reservation.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature_reservation import FeatureReservation - -class TestFeatureReservation(unittest.TestCase): - """FeatureReservation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FeatureReservation: - """Test FeatureReservation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FeatureReservation` - """ - model = FeatureReservation() - if include_optional: - return FeatureReservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56 - ) - else: - return FeatureReservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, - ) - """ - - def testFeatureReservation(self): - """Test FeatureReservation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature_reservation_reserve.py b/test/test_feature_reservation_reserve.py deleted file mode 100644 index 527a240..0000000 --- a/test/test_feature_reservation_reserve.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature_reservation_reserve import FeatureReservationReserve - -class TestFeatureReservationReserve(unittest.TestCase): - """FeatureReservationReserve unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FeatureReservationReserve: - """Test FeatureReservationReserve - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FeatureReservationReserve` - """ - model = FeatureReservationReserve() - if include_optional: - return FeatureReservationReserve( - count_to_reserve = 56, - duration = 56, - feature_name = '' - ) - else: - return FeatureReservationReserve( - count_to_reserve = 56, - duration = 56, - feature_name = '', - ) - """ - - def testFeatureReservationReserve(self): - """Test FeatureReservationReserve""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_file_metadata.py b/test/test_file_metadata.py deleted file mode 100644 index b72421c..0000000 --- a/test/test_file_metadata.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.file_metadata import FileMetadata - -class TestFileMetadata(unittest.TestCase): - """FileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FileMetadata: - """Test FileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FileMetadata` - """ - model = FileMetadata() - if include_optional: - return FileMetadata( - default = True, - user_visible = True - ) - else: - return FileMetadata( - ) - """ - - def testFileMetadata(self): - """Test FileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_file_value.py b/test/test_file_value.py deleted file mode 100644 index d08420a..0000000 --- a/test/test_file_value.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.file_value import FileValue - -class TestFileValue(unittest.TestCase): - """FileValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FileValue: - """Test FileValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FileValue` - """ - model = FileValue() - if include_optional: - return FileValue( - file_name = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '' - ) - else: - return FileValue( - ) - """ - - def testFileValue(self): - """Test FileValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_filter.py b/test/test_filter.py deleted file mode 100644 index 7aed557..0000000 --- a/test/test_filter.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.filter import Filter - -class TestFilter(unittest.TestCase): - """Filter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Filter: - """Test Filter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Filter` - """ - model = Filter() - if include_optional: - return Filter( - name = '', - value = '' - ) - else: - return Filter( - ) - """ - - def testFilter(self): - """Test Filter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_filtered_stat.py b/test/test_filtered_stat.py deleted file mode 100644 index c03baf0..0000000 --- a/test/test_filtered_stat.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.filtered_stat import FilteredStat - -class TestFilteredStat(unittest.TestCase): - """FilteredStat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FilteredStat: - """Test FilteredStat - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FilteredStat` - """ - model = FilteredStat() - if include_optional: - return FilteredStat( - filters = [ - cyperf.models.filter.Filter( - name = '', - value = '', ) - ], - name = '' - ) - else: - return FilteredStat( - ) - """ - - def testFilteredStat(self): - """Test FilteredStat""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_find_param_matches_operation.py b/test/test_find_param_matches_operation.py deleted file mode 100644 index 539023a..0000000 --- a/test/test_find_param_matches_operation.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.find_param_matches_operation import FindParamMatchesOperation - -class TestFindParamMatchesOperation(unittest.TestCase): - """FindParamMatchesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FindParamMatchesOperation: - """Test FindParamMatchesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FindParamMatchesOperation` - """ - model = FindParamMatchesOperation() - if include_optional: - return FindParamMatchesOperation( - actions = [ - cyperf.models.action_input_find_param.ActionInputFindParam( - captures = [ - cyperf.models.capture_input_find_param.CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ], ) - ], - name = '', ) - ], - app_id = '', - match_location = [ - '' - ], - pattern = '' - ) - else: - return FindParamMatchesOperation( - ) - """ - - def testFindParamMatchesOperation(self): - """Test FindParamMatchesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fortinet_encapsulation.py b/test/test_fortinet_encapsulation.py deleted file mode 100644 index 57fc05d..0000000 --- a/test/test_fortinet_encapsulation.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fortinet_encapsulation import FortinetEncapsulation - -class TestFortinetEncapsulation(unittest.TestCase): - """FortinetEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FortinetEncapsulation: - """Test FortinetEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FortinetEncapsulation` - """ - model = FortinetEncapsulation() - if include_optional: - return FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - udp_port = 56, - ) - """ - - def testFortinetEncapsulation(self): - """Test FortinetEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fortinet_settings.py b/test/test_fortinet_settings.py deleted file mode 100644 index f1e30ab..0000000 --- a/test/test_fortinet_settings.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fortinet_settings import FortinetSettings - -class TestFortinetSettings(unittest.TestCase): - """FortinetSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FortinetSettings: - """Test FortinetSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FortinetSettings` - """ - model = FortinetSettings() - if include_optional: - return FortinetSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - fortinet_encapsulation = cyperf.models.fortinet_encapsulation.FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = null, - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return FortinetSettings( - ) - """ - - def testFortinetSettings(self): - """Test FortinetSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fulfillment_request.py b/test/test_fulfillment_request.py deleted file mode 100644 index 34f8f9d..0000000 --- a/test/test_fulfillment_request.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fulfillment_request import FulfillmentRequest - -class TestFulfillmentRequest(unittest.TestCase): - """FulfillmentRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FulfillmentRequest: - """Test FulfillmentRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FulfillmentRequest` - """ - model = FulfillmentRequest() - if include_optional: - return FulfillmentRequest( - activation_code = '', - quantity = 56 - ) - else: - return FulfillmentRequest( - activation_code = '', - quantity = 56, - ) - """ - - def testFulfillmentRequest(self): - """Test FulfillmentRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_all_operation.py b/test/test_generate_all_operation.py deleted file mode 100644 index e6291c7..0000000 --- a/test/test_generate_all_operation.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_all_operation import GenerateAllOperation - -class TestGenerateAllOperation(unittest.TestCase): - """GenerateAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerateAllOperation: - """Test GenerateAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenerateAllOperation` - """ - model = GenerateAllOperation() - if include_optional: - return GenerateAllOperation( - timezone_offset = 56 - ) - else: - return GenerateAllOperation( - ) - """ - - def testGenerateAllOperation(self): - """Test GenerateAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_csv_reports_operation.py b/test/test_generate_csv_reports_operation.py deleted file mode 100644 index 84a926b..0000000 --- a/test/test_generate_csv_reports_operation.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_csv_reports_operation import GenerateCSVReportsOperation - -class TestGenerateCSVReportsOperation(unittest.TestCase): - """GenerateCSVReportsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerateCSVReportsOperation: - """Test GenerateCSVReportsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenerateCSVReportsOperation` - """ - model = GenerateCSVReportsOperation() - if include_optional: - return GenerateCSVReportsOperation( - force_generate = True, - var_from = '', - interval = '', - stats = [ - cyperf.models.filtered_stat.FilteredStat( - filters = [ - cyperf.models.filter.Filter( - name = '', - value = '', ) - ], - name = '', ) - ], - to = '', - use_relative_time = True - ) - else: - return GenerateCSVReportsOperation( - ) - """ - - def testGenerateCSVReportsOperation(self): - """Test GenerateCSVReportsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_pdf_report_operation.py b/test/test_generate_pdf_report_operation.py deleted file mode 100644 index ba80ec2..0000000 --- a/test/test_generate_pdf_report_operation.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_pdf_report_operation import GeneratePDFReportOperation - -class TestGeneratePDFReportOperation(unittest.TestCase): - """GeneratePDFReportOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GeneratePDFReportOperation: - """Test GeneratePDFReportOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GeneratePDFReportOperation` - """ - model = GeneratePDFReportOperation() - if include_optional: - return GeneratePDFReportOperation( - force_generate = True, - timezone_offset = 56 - ) - else: - return GeneratePDFReportOperation( - ) - """ - - def testGeneratePDFReportOperation(self): - """Test GeneratePDFReportOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generic_file.py b/test/test_generic_file.py deleted file mode 100644 index b11eb37..0000000 --- a/test/test_generic_file.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generic_file import GenericFile - -class TestGenericFile(unittest.TestCase): - """GenericFile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenericFile: - """Test GenericFile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenericFile` - """ - model = GenericFile() - if include_optional: - return GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '' - ) - else: - return GenericFile( - ) - """ - - def testGenericFile(self): - """Test GenericFile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agent_tags200_response.py b/test/test_get_agent_tags200_response.py deleted file mode 100644 index f5ed198..0000000 --- a/test/test_get_agent_tags200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agent_tags200_response import GetAgentTags200Response - -class TestGetAgentTags200Response(unittest.TestCase): - """GetAgentTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentTags200Response: - """Test GetAgentTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentTags200Response` - """ - model = GetAgentTags200Response() - if include_optional: - return GetAgentTags200Response( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentTags200Response( - ) - """ - - def testGetAgentTags200Response(self): - """Test GetAgentTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agent_tags200_response_one_of.py b/test/test_get_agent_tags200_response_one_of.py deleted file mode 100644 index d0e2baa..0000000 --- a/test/test_get_agent_tags200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agent_tags200_response_one_of import GetAgentTags200ResponseOneOf - -class TestGetAgentTags200ResponseOneOf(unittest.TestCase): - """GetAgentTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentTags200ResponseOneOf: - """Test GetAgentTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentTags200ResponseOneOf` - """ - model = GetAgentTags200ResponseOneOf() - if include_optional: - return GetAgentTags200ResponseOneOf( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentTags200ResponseOneOf( - ) - """ - - def testGetAgentTags200ResponseOneOf(self): - """Test GetAgentTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents200_response.py b/test/test_get_agents200_response.py deleted file mode 100644 index f67eaa7..0000000 --- a/test/test_get_agents200_response.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents200_response import GetAgents200Response - -class TestGetAgents200Response(unittest.TestCase): - """GetAgents200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgents200Response: - """Test GetAgents200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgents200Response` - """ - model = GetAgents200Response() - if include_optional: - return GetAgents200Response( - data = [ - cyperf.models.agent.Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = , - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetAgents200Response( - ) - """ - - def testGetAgents200Response(self): - """Test GetAgents200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents200_response_one_of.py b/test/test_get_agents200_response_one_of.py deleted file mode 100644 index 9cb8a6b..0000000 --- a/test/test_get_agents200_response_one_of.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf - -class TestGetAgents200ResponseOneOf(unittest.TestCase): - """GetAgents200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgents200ResponseOneOf: - """Test GetAgents200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgents200ResponseOneOf` - """ - model = GetAgents200ResponseOneOf() - if include_optional: - return GetAgents200ResponseOneOf( - data = [ - cyperf.models.agent.Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = , - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetAgents200ResponseOneOf( - ) - """ - - def testGetAgents200ResponseOneOf(self): - """Test GetAgents200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents_tags200_response.py b/test/test_get_agents_tags200_response.py deleted file mode 100644 index 5c63afa..0000000 --- a/test/test_get_agents_tags200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response - -class TestGetAgentsTags200Response(unittest.TestCase): - """GetAgentsTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentsTags200Response: - """Test GetAgentsTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentsTags200Response` - """ - model = GetAgentsTags200Response() - if include_optional: - return GetAgentsTags200Response( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentsTags200Response( - ) - """ - - def testGetAgentsTags200Response(self): - """Test GetAgentsTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents_tags200_response_one_of.py b/test/test_get_agents_tags200_response_one_of.py deleted file mode 100644 index d4eea38..0000000 --- a/test/test_get_agents_tags200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf - -class TestGetAgentsTags200ResponseOneOf(unittest.TestCase): - """GetAgentsTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentsTags200ResponseOneOf: - """Test GetAgentsTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentsTags200ResponseOneOf` - """ - model = GetAgentsTags200ResponseOneOf() - if include_optional: - return GetAgentsTags200ResponseOneOf( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentsTags200ResponseOneOf( - ) - """ - - def testGetAgentsTags200ResponseOneOf(self): - """Test GetAgentsTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_application_types200_response.py b/test/test_get_application_types200_response.py deleted file mode 100644 index f374f82..0000000 --- a/test/test_get_application_types200_response.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_application_types200_response import GetApplicationTypes200Response - -class TestGetApplicationTypes200Response(unittest.TestCase): - """GetApplicationTypes200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApplicationTypes200Response: - """Test GetApplicationTypes200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApplicationTypes200Response` - """ - model = GetApplicationTypes200Response() - if include_optional: - return GetApplicationTypes200Response( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetApplicationTypes200Response( - ) - """ - - def testGetApplicationTypes200Response(self): - """Test GetApplicationTypes200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_application_types200_response_one_of.py b/test/test_get_application_types200_response_one_of.py deleted file mode 100644 index a66b092..0000000 --- a/test/test_get_application_types200_response_one_of.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_application_types200_response_one_of import GetApplicationTypes200ResponseOneOf - -class TestGetApplicationTypes200ResponseOneOf(unittest.TestCase): - """GetApplicationTypes200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApplicationTypes200ResponseOneOf: - """Test GetApplicationTypes200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApplicationTypes200ResponseOneOf` - """ - model = GetApplicationTypes200ResponseOneOf() - if include_optional: - return GetApplicationTypes200ResponseOneOf( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetApplicationTypes200ResponseOneOf( - ) - """ - - def testGetApplicationTypes200ResponseOneOf(self): - """Test GetApplicationTypes200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_apps200_response.py b/test/test_get_apps200_response.py deleted file mode 100644 index 2effd05..0000000 --- a/test/test_get_apps200_response.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_apps200_response import GetApps200Response - -class TestGetApps200Response(unittest.TestCase): - """GetApps200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApps200Response: - """Test GetApps200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApps200Response` - """ - model = GetApps200Response() - if include_optional: - return GetApps200Response( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetApps200Response( - ) - """ - - def testGetApps200Response(self): - """Test GetApps200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_apps200_response_one_of.py b/test/test_get_apps200_response_one_of.py deleted file mode 100644 index e462ac4..0000000 --- a/test/test_get_apps200_response_one_of.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_apps200_response_one_of import GetApps200ResponseOneOf - -class TestGetApps200ResponseOneOf(unittest.TestCase): - """GetApps200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApps200ResponseOneOf: - """Test GetApps200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApps200ResponseOneOf` - """ - model = GetApps200ResponseOneOf() - if include_optional: - return GetApps200ResponseOneOf( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetApps200ResponseOneOf( - ) - """ - - def testGetApps200ResponseOneOf(self): - """Test GetApps200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_async_operation_result200_response.py b/test/test_get_async_operation_result200_response.py deleted file mode 100644 index c500665..0000000 --- a/test/test_get_async_operation_result200_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response - -class TestGetAsyncOperationResult200Response(unittest.TestCase): - """GetAsyncOperationResult200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncOperationResult200Response: - """Test GetAsyncOperationResult200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncOperationResult200Response` - """ - model = GetAsyncOperationResult200Response() - if include_optional: - return GetAsyncOperationResult200Response( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56 - ) - else: - return GetAsyncOperationResult200Response( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56, - ) - """ - - def testGetAsyncOperationResult200Response(self): - """Test GetAsyncOperationResult200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks200_response.py b/test/test_get_attacks200_response.py deleted file mode 100644 index 93c4d50..0000000 --- a/test/test_get_attacks200_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks200_response import GetAttacks200Response - -class TestGetAttacks200Response(unittest.TestCase): - """GetAttacks200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacks200Response: - """Test GetAttacks200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacks200Response` - """ - model = GetAttacks200Response() - if include_optional: - return GetAttacks200Response( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetAttacks200Response( - ) - """ - - def testGetAttacks200Response(self): - """Test GetAttacks200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks200_response_one_of.py b/test/test_get_attacks200_response_one_of.py deleted file mode 100644 index 8f460a2..0000000 --- a/test/test_get_attacks200_response_one_of.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks200_response_one_of import GetAttacks200ResponseOneOf - -class TestGetAttacks200ResponseOneOf(unittest.TestCase): - """GetAttacks200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacks200ResponseOneOf: - """Test GetAttacks200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacks200ResponseOneOf` - """ - model = GetAttacks200ResponseOneOf() - if include_optional: - return GetAttacks200ResponseOneOf( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetAttacks200ResponseOneOf( - ) - """ - - def testGetAttacks200ResponseOneOf(self): - """Test GetAttacks200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks_operation.py b/test/test_get_attacks_operation.py deleted file mode 100644 index 6e3571d..0000000 --- a/test/test_get_attacks_operation.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks_operation import GetAttacksOperation - -class TestGetAttacksOperation(unittest.TestCase): - """GetAttacksOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacksOperation: - """Test GetAttacksOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacksOperation` - """ - model = GetAttacksOperation() - if include_optional: - return GetAttacksOperation( - categories = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ], - filter_mode = '', - search_col = [ - '' - ], - search_val = [ - '' - ], - skip = '', - sort = [ - cyperf.models.sort_body_field.SortBodyField( - field = '', - order = '', ) - ], - take = '' - ) - else: - return GetAttacksOperation( - ) - """ - - def testGetAttacksOperation(self): - """Test GetAttacksOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_auth_profiles200_response.py b/test/test_get_auth_profiles200_response.py deleted file mode 100644 index eef82e1..0000000 --- a/test/test_get_auth_profiles200_response.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_auth_profiles200_response import GetAuthProfiles200Response - -class TestGetAuthProfiles200Response(unittest.TestCase): - """GetAuthProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAuthProfiles200Response: - """Test GetAuthProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAuthProfiles200Response` - """ - model = GetAuthProfiles200Response() - if include_optional: - return GetAuthProfiles200Response( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetAuthProfiles200Response( - ) - """ - - def testGetAuthProfiles200Response(self): - """Test GetAuthProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_auth_profiles200_response_one_of.py b/test/test_get_auth_profiles200_response_one_of.py deleted file mode 100644 index 5ddf5b1..0000000 --- a/test/test_get_auth_profiles200_response_one_of.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_auth_profiles200_response_one_of import GetAuthProfiles200ResponseOneOf - -class TestGetAuthProfiles200ResponseOneOf(unittest.TestCase): - """GetAuthProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAuthProfiles200ResponseOneOf: - """Test GetAuthProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAuthProfiles200ResponseOneOf` - """ - model = GetAuthProfiles200ResponseOneOf() - if include_optional: - return GetAuthProfiles200ResponseOneOf( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetAuthProfiles200ResponseOneOf( - ) - """ - - def testGetAuthProfiles200ResponseOneOf(self): - """Test GetAuthProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_brokers200_response.py b/test/test_get_brokers200_response.py deleted file mode 100644 index 2109755..0000000 --- a/test/test_get_brokers200_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_brokers200_response import GetBrokers200Response - -class TestGetBrokers200Response(unittest.TestCase): - """GetBrokers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetBrokers200Response: - """Test GetBrokers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetBrokers200Response` - """ - model = GetBrokers200Response() - if include_optional: - return GetBrokers200Response( - data = [ - cyperf.models.broker.Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '', ) - ], - total_count = 56 - ) - else: - return GetBrokers200Response( - ) - """ - - def testGetBrokers200Response(self): - """Test GetBrokers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_brokers200_response_one_of.py b/test/test_get_brokers200_response_one_of.py deleted file mode 100644 index 62fbc07..0000000 --- a/test/test_get_brokers200_response_one_of.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf - -class TestGetBrokers200ResponseOneOf(unittest.TestCase): - """GetBrokers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetBrokers200ResponseOneOf: - """Test GetBrokers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetBrokers200ResponseOneOf` - """ - model = GetBrokers200ResponseOneOf() - if include_optional: - return GetBrokers200ResponseOneOf( - data = [ - cyperf.models.broker.Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '', ) - ], - total_count = 56 - ) - else: - return GetBrokers200ResponseOneOf( - ) - """ - - def testGetBrokers200ResponseOneOf(self): - """Test GetBrokers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_categories_operation.py b/test/test_get_categories_operation.py deleted file mode 100644 index 3fcee63..0000000 --- a/test/test_get_categories_operation.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_categories_operation import GetCategoriesOperation - -class TestGetCategoriesOperation(unittest.TestCase): - """GetCategoriesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCategoriesOperation: - """Test GetCategoriesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCategoriesOperation` - """ - model = GetCategoriesOperation() - if include_optional: - return GetCategoriesOperation( - filter = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ] - ) - else: - return GetCategoriesOperation( - ) - """ - - def testGetCategoriesOperation(self): - """Test GetCategoriesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_certificates200_response.py b/test/test_get_certificates200_response.py deleted file mode 100644 index 46943bd..0000000 --- a/test/test_get_certificates200_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_certificates200_response import GetCertificates200Response - -class TestGetCertificates200Response(unittest.TestCase): - """GetCertificates200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCertificates200Response: - """Test GetCertificates200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCertificates200Response` - """ - model = GetCertificates200Response() - if include_optional: - return GetCertificates200Response( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetCertificates200Response( - ) - """ - - def testGetCertificates200Response(self): - """Test GetCertificates200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_certificates200_response_one_of.py b/test/test_get_certificates200_response_one_of.py deleted file mode 100644 index 4235d39..0000000 --- a/test/test_get_certificates200_response_one_of.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_certificates200_response_one_of import GetCertificates200ResponseOneOf - -class TestGetCertificates200ResponseOneOf(unittest.TestCase): - """GetCertificates200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCertificates200ResponseOneOf: - """Test GetCertificates200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCertificates200ResponseOneOf` - """ - model = GetCertificates200ResponseOneOf() - if include_optional: - return GetCertificates200ResponseOneOf( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetCertificates200ResponseOneOf( - ) - """ - - def testGetCertificates200ResponseOneOf(self): - """Test GetCertificates200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categories200_response.py b/test/test_get_config_categories200_response.py deleted file mode 100644 index 23fea41..0000000 --- a/test/test_get_config_categories200_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categories200_response import GetConfigCategories200Response - -class TestGetConfigCategories200Response(unittest.TestCase): - """GetConfigCategories200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategories200Response: - """Test GetConfigCategories200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategories200Response` - """ - model = GetConfigCategories200Response() - if include_optional: - return GetConfigCategories200Response( - data = [ - cyperf.models.config_category.ConfigCategory( - display_name = '', ) - ], - total_count = 56 - ) - else: - return GetConfigCategories200Response( - ) - """ - - def testGetConfigCategories200Response(self): - """Test GetConfigCategories200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categories200_response_one_of.py b/test/test_get_config_categories200_response_one_of.py deleted file mode 100644 index d1a36a4..0000000 --- a/test/test_get_config_categories200_response_one_of.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf - -class TestGetConfigCategories200ResponseOneOf(unittest.TestCase): - """GetConfigCategories200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategories200ResponseOneOf: - """Test GetConfigCategories200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategories200ResponseOneOf` - """ - model = GetConfigCategories200ResponseOneOf() - if include_optional: - return GetConfigCategories200ResponseOneOf( - data = [ - cyperf.models.config_category.ConfigCategory( - display_name = '', ) - ], - total_count = 56 - ) - else: - return GetConfigCategories200ResponseOneOf( - ) - """ - - def testGetConfigCategories200ResponseOneOf(self): - """Test GetConfigCategories200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_configs200_response.py b/test/test_get_configs200_response.py deleted file mode 100644 index 8a89d14..0000000 --- a/test/test_get_configs200_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_configs200_response import GetConfigs200Response - -class TestGetConfigs200Response(unittest.TestCase): - """GetConfigs200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigs200Response: - """Test GetConfigs200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigs200Response` - """ - model = GetConfigs200Response() - if include_optional: - return GetConfigs200Response( - data = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ], - total_count = 56 - ) - else: - return GetConfigs200Response( - ) - """ - - def testGetConfigs200Response(self): - """Test GetConfigs200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_configs200_response_one_of.py b/test/test_get_configs200_response_one_of.py deleted file mode 100644 index 0530958..0000000 --- a/test/test_get_configs200_response_one_of.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_configs200_response_one_of import GetConfigs200ResponseOneOf - -class TestGetConfigs200ResponseOneOf(unittest.TestCase): - """GetConfigs200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigs200ResponseOneOf: - """Test GetConfigs200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigs200ResponseOneOf` - """ - model = GetConfigs200ResponseOneOf() - if include_optional: - return GetConfigs200ResponseOneOf( - data = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ], - total_count = 56 - ) - else: - return GetConfigs200ResponseOneOf( - ) - """ - - def testGetConfigs200ResponseOneOf(self): - """Test GetConfigs200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_consumers200_response.py b/test/test_get_consumers200_response.py deleted file mode 100644 index 1e446a3..0000000 --- a/test/test_get_consumers200_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_consumers200_response import GetConsumers200Response - -class TestGetConsumers200Response(unittest.TestCase): - """GetConsumers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConsumers200Response: - """Test GetConsumers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConsumers200Response` - """ - model = GetConsumers200Response() - if include_optional: - return GetConsumers200Response( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetConsumers200Response( - ) - """ - - def testGetConsumers200Response(self): - """Test GetConsumers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_consumers200_response_one_of.py b/test/test_get_consumers200_response_one_of.py deleted file mode 100644 index 5dc5f78..0000000 --- a/test/test_get_consumers200_response_one_of.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_consumers200_response_one_of import GetConsumers200ResponseOneOf - -class TestGetConsumers200ResponseOneOf(unittest.TestCase): - """GetConsumers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConsumers200ResponseOneOf: - """Test GetConsumers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConsumers200ResponseOneOf` - """ - model = GetConsumers200ResponseOneOf() - if include_optional: - return GetConsumers200ResponseOneOf( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetConsumers200ResponseOneOf( - ) - """ - - def testGetConsumers200ResponseOneOf(self): - """Test GetConsumers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_controllers200_response.py b/test/test_get_controllers200_response.py deleted file mode 100644 index 252e7b0..0000000 --- a/test/test_get_controllers200_response.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_controllers200_response import GetControllers200Response - -class TestGetControllers200Response(unittest.TestCase): - """GetControllers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetControllers200Response: - """Test GetControllers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetControllers200Response` - """ - model = GetControllers200Response() - if include_optional: - return GetControllers200Response( - data = [ - cyperf.models.controller.Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetControllers200Response( - ) - """ - - def testGetControllers200Response(self): - """Test GetControllers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_controllers200_response_one_of.py b/test/test_get_controllers200_response_one_of.py deleted file mode 100644 index 6818dde..0000000 --- a/test/test_get_controllers200_response_one_of.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_controllers200_response_one_of import GetControllers200ResponseOneOf - -class TestGetControllers200ResponseOneOf(unittest.TestCase): - """GetControllers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetControllers200ResponseOneOf: - """Test GetControllers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetControllers200ResponseOneOf` - """ - model = GetControllers200ResponseOneOf() - if include_optional: - return GetControllers200ResponseOneOf( - data = [ - cyperf.models.controller.Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetControllers200ResponseOneOf( - ) - """ - - def testGetControllers200ResponseOneOf(self): - """Test GetControllers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_custom_import_operations200_response.py b/test/test_get_custom_import_operations200_response.py deleted file mode 100644 index cf3c2c8..0000000 --- a/test/test_get_custom_import_operations200_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_custom_import_operations200_response import GetCustomImportOperations200Response - -class TestGetCustomImportOperations200Response(unittest.TestCase): - """GetCustomImportOperations200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCustomImportOperations200Response: - """Test GetCustomImportOperations200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCustomImportOperations200Response` - """ - model = GetCustomImportOperations200Response() - if include_optional: - return GetCustomImportOperations200Response( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetCustomImportOperations200Response( - ) - """ - - def testGetCustomImportOperations200Response(self): - """Test GetCustomImportOperations200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_custom_import_operations200_response_one_of.py b/test/test_get_custom_import_operations200_response_one_of.py deleted file mode 100644 index f3de1ab..0000000 --- a/test/test_get_custom_import_operations200_response_one_of.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_custom_import_operations200_response_one_of import GetCustomImportOperations200ResponseOneOf - -class TestGetCustomImportOperations200ResponseOneOf(unittest.TestCase): - """GetCustomImportOperations200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCustomImportOperations200ResponseOneOf: - """Test GetCustomImportOperations200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCustomImportOperations200ResponseOneOf` - """ - model = GetCustomImportOperations200ResponseOneOf() - if include_optional: - return GetCustomImportOperations200ResponseOneOf( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetCustomImportOperations200ResponseOneOf( - ) - """ - - def testGetCustomImportOperations200ResponseOneOf(self): - """Test GetCustomImportOperations200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response.py b/test/test_get_disk_usage_consumers200_response.py deleted file mode 100644 index b4eab85..0000000 --- a/test/test_get_disk_usage_consumers200_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_disk_usage_consumers200_response import GetDiskUsageConsumers200Response - -class TestGetDiskUsageConsumers200Response(unittest.TestCase): - """GetDiskUsageConsumers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetDiskUsageConsumers200Response: - """Test GetDiskUsageConsumers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetDiskUsageConsumers200Response` - """ - model = GetDiskUsageConsumers200Response() - if include_optional: - return GetDiskUsageConsumers200Response( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetDiskUsageConsumers200Response( - ) - """ - - def testGetDiskUsageConsumers200Response(self): - """Test GetDiskUsageConsumers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response_one_of.py b/test/test_get_disk_usage_consumers200_response_one_of.py deleted file mode 100644 index 5ecfddb..0000000 --- a/test/test_get_disk_usage_consumers200_response_one_of.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_disk_usage_consumers200_response_one_of import GetDiskUsageConsumers200ResponseOneOf - -class TestGetDiskUsageConsumers200ResponseOneOf(unittest.TestCase): - """GetDiskUsageConsumers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetDiskUsageConsumers200ResponseOneOf: - """Test GetDiskUsageConsumers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetDiskUsageConsumers200ResponseOneOf` - """ - model = GetDiskUsageConsumers200ResponseOneOf() - if include_optional: - return GetDiskUsageConsumers200ResponseOneOf( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetDiskUsageConsumers200ResponseOneOf( - ) - """ - - def testGetDiskUsageConsumers200ResponseOneOf(self): - """Test GetDiskUsageConsumers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_files200_response.py b/test/test_get_files200_response.py deleted file mode 100644 index beea41a..0000000 --- a/test/test_get_files200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_files200_response import GetFiles200Response - -class TestGetFiles200Response(unittest.TestCase): - """GetFiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFiles200Response: - """Test GetFiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFiles200Response` - """ - model = GetFiles200Response() - if include_optional: - return GetFiles200Response( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetFiles200Response( - ) - """ - - def testGetFiles200Response(self): - """Test GetFiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_files200_response_one_of.py b/test/test_get_files200_response_one_of.py deleted file mode 100644 index 5f785af..0000000 --- a/test/test_get_files200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_files200_response_one_of import GetFiles200ResponseOneOf - -class TestGetFiles200ResponseOneOf(unittest.TestCase): - """GetFiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFiles200ResponseOneOf: - """Test GetFiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFiles200ResponseOneOf` - """ - model = GetFiles200ResponseOneOf() - if include_optional: - return GetFiles200ResponseOneOf( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetFiles200ResponseOneOf( - ) - """ - - def testGetFiles200ResponseOneOf(self): - """Test GetFiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_http_profiles200_response.py b/test/test_get_http_profiles200_response.py deleted file mode 100644 index 49f0d3e..0000000 --- a/test/test_get_http_profiles200_response.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_http_profiles200_response import GetHttpProfiles200Response - -class TestGetHttpProfiles200Response(unittest.TestCase): - """GetHttpProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHttpProfiles200Response: - """Test GetHttpProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHttpProfiles200Response` - """ - model = GetHttpProfiles200Response() - if include_optional: - return GetHttpProfiles200Response( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetHttpProfiles200Response( - ) - """ - - def testGetHttpProfiles200Response(self): - """Test GetHttpProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_http_profiles200_response_one_of.py b/test/test_get_http_profiles200_response_one_of.py deleted file mode 100644 index d397f30..0000000 --- a/test/test_get_http_profiles200_response_one_of.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_http_profiles200_response_one_of import GetHttpProfiles200ResponseOneOf - -class TestGetHttpProfiles200ResponseOneOf(unittest.TestCase): - """GetHttpProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHttpProfiles200ResponseOneOf: - """Test GetHttpProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHttpProfiles200ResponseOneOf` - """ - model = GetHttpProfiles200ResponseOneOf() - if include_optional: - return GetHttpProfiles200ResponseOneOf( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetHttpProfiles200ResponseOneOf( - ) - """ - - def testGetHttpProfiles200ResponseOneOf(self): - """Test GetHttpProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_async_operation_result200_response.py b/test/test_get_license_async_operation_result200_response.py deleted file mode 100644 index 9b9c4e7..0000000 --- a/test/test_get_license_async_operation_result200_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_async_operation_result200_response import GetLicenseAsyncOperationResult200Response - -class TestGetLicenseAsyncOperationResult200Response(unittest.TestCase): - """GetLicenseAsyncOperationResult200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseAsyncOperationResult200Response: - """Test GetLicenseAsyncOperationResult200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseAsyncOperationResult200Response` - """ - model = GetLicenseAsyncOperationResult200Response() - if include_optional: - return GetLicenseAsyncOperationResult200Response( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56 - ) - else: - return GetLicenseAsyncOperationResult200Response( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, - ) - """ - - def testGetLicenseAsyncOperationResult200Response(self): - """Test GetLicenseAsyncOperationResult200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_servers200_response.py b/test/test_get_license_servers200_response.py deleted file mode 100644 index ca1da80..0000000 --- a/test/test_get_license_servers200_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_servers200_response import GetLicenseServers200Response - -class TestGetLicenseServers200Response(unittest.TestCase): - """GetLicenseServers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseServers200Response: - """Test GetLicenseServers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseServers200Response` - """ - model = GetLicenseServers200Response() - if include_optional: - return GetLicenseServers200Response( - data = [ - cyperf.models.license_server_metadata.LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '', ) - ], - total_count = 56 - ) - else: - return GetLicenseServers200Response( - ) - """ - - def testGetLicenseServers200Response(self): - """Test GetLicenseServers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_servers200_response_one_of.py b/test/test_get_license_servers200_response_one_of.py deleted file mode 100644 index daa2ada..0000000 --- a/test/test_get_license_servers200_response_one_of.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_servers200_response_one_of import GetLicenseServers200ResponseOneOf - -class TestGetLicenseServers200ResponseOneOf(unittest.TestCase): - """GetLicenseServers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseServers200ResponseOneOf: - """Test GetLicenseServers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseServers200ResponseOneOf` - """ - model = GetLicenseServers200ResponseOneOf() - if include_optional: - return GetLicenseServers200ResponseOneOf( - data = [ - cyperf.models.license_server_metadata.LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '', ) - ], - total_count = 56 - ) - else: - return GetLicenseServers200ResponseOneOf( - ) - """ - - def testGetLicenseServers200ResponseOneOf(self): - """Test GetLicenseServers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_meta200_response.py b/test/test_get_meta200_response.py deleted file mode 100644 index 4f786aa..0000000 --- a/test/test_get_meta200_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_meta200_response import GetMeta200Response - -class TestGetMeta200Response(unittest.TestCase): - """GetMeta200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetMeta200Response: - """Test GetMeta200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetMeta200Response` - """ - model = GetMeta200Response() - if include_optional: - return GetMeta200Response( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetMeta200Response( - ) - """ - - def testGetMeta200Response(self): - """Test GetMeta200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_meta200_response_one_of.py b/test/test_get_meta200_response_one_of.py deleted file mode 100644 index 75db313..0000000 --- a/test/test_get_meta200_response_one_of.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_meta200_response_one_of import GetMeta200ResponseOneOf - -class TestGetMeta200ResponseOneOf(unittest.TestCase): - """GetMeta200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetMeta200ResponseOneOf: - """Test GetMeta200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetMeta200ResponseOneOf` - """ - model = GetMeta200ResponseOneOf() - if include_optional: - return GetMeta200ResponseOneOf( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetMeta200ResponseOneOf( - ) - """ - - def testGetMeta200ResponseOneOf(self): - """Test GetMeta200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_notifications200_response.py b/test/test_get_notifications200_response.py deleted file mode 100644 index 5ec4b3f..0000000 --- a/test/test_get_notifications200_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_notifications200_response import GetNotifications200Response - -class TestGetNotifications200Response(unittest.TestCase): - """GetNotifications200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetNotifications200Response: - """Test GetNotifications200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetNotifications200Response` - """ - model = GetNotifications200Response() - if include_optional: - return GetNotifications200Response( - data = [ - cyperf.models.notification.Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56, ) - ], - total_count = 56 - ) - else: - return GetNotifications200Response( - ) - """ - - def testGetNotifications200Response(self): - """Test GetNotifications200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_notifications200_response_one_of.py b/test/test_get_notifications200_response_one_of.py deleted file mode 100644 index e0bec16..0000000 --- a/test/test_get_notifications200_response_one_of.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_notifications200_response_one_of import GetNotifications200ResponseOneOf - -class TestGetNotifications200ResponseOneOf(unittest.TestCase): - """GetNotifications200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetNotifications200ResponseOneOf: - """Test GetNotifications200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetNotifications200ResponseOneOf` - """ - model = GetNotifications200ResponseOneOf() - if include_optional: - return GetNotifications200ResponseOneOf( - data = [ - cyperf.models.notification.Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56, ) - ], - total_count = 56 - ) - else: - return GetNotifications200ResponseOneOf( - ) - """ - - def testGetNotifications200ResponseOneOf(self): - """Test GetNotifications200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_plugins200_response.py b/test/test_get_plugins200_response.py deleted file mode 100644 index 50caf4e..0000000 --- a/test/test_get_plugins200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_plugins200_response import GetPlugins200Response - -class TestGetPlugins200Response(unittest.TestCase): - """GetPlugins200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPlugins200Response: - """Test GetPlugins200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPlugins200Response` - """ - model = GetPlugins200Response() - if include_optional: - return GetPlugins200Response( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetPlugins200Response( - ) - """ - - def testGetPlugins200Response(self): - """Test GetPlugins200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_plugins200_response_one_of.py b/test/test_get_plugins200_response_one_of.py deleted file mode 100644 index 4333dcd..0000000 --- a/test/test_get_plugins200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_plugins200_response_one_of import GetPlugins200ResponseOneOf - -class TestGetPlugins200ResponseOneOf(unittest.TestCase): - """GetPlugins200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPlugins200ResponseOneOf: - """Test GetPlugins200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPlugins200ResponseOneOf` - """ - model = GetPlugins200ResponseOneOf() - if include_optional: - return GetPlugins200ResponseOneOf( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetPlugins200ResponseOneOf( - ) - """ - - def testGetPlugins200ResponseOneOf(self): - """Test GetPlugins200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py deleted file mode 100644 index 99acfc4..0000000 --- a/test/test_get_resources_application_types200_response.py +++ /dev/null @@ -1,228 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_application_types200_response import GetResourcesApplicationTypes200Response - -class TestGetResourcesApplicationTypes200Response(unittest.TestCase): - """GetResourcesApplicationTypes200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Response: - """Test GetResourcesApplicationTypes200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApplicationTypes200Response` - """ - model = GetResourcesApplicationTypes200Response() - if include_optional: - return GetResourcesApplicationTypes200Response( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.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 = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - protocol = '', - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesApplicationTypes200Response( - ) - """ - - def testGetResourcesApplicationTypes200Response(self): - """Test GetResourcesApplicationTypes200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py deleted file mode 100644 index 959477f..0000000 --- a/test/test_get_resources_application_types200_response_one_of.py +++ /dev/null @@ -1,228 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_application_types200_response_one_of import GetResourcesApplicationTypes200ResponseOneOf - -class TestGetResourcesApplicationTypes200ResponseOneOf(unittest.TestCase): - """GetResourcesApplicationTypes200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApplicationTypes200ResponseOneOf: - """Test GetResourcesApplicationTypes200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApplicationTypes200ResponseOneOf` - """ - model = GetResourcesApplicationTypes200ResponseOneOf() - if include_optional: - return GetResourcesApplicationTypes200ResponseOneOf( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.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 = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - protocol = '', - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesApplicationTypes200ResponseOneOf( - ) - """ - - def testGetResourcesApplicationTypes200ResponseOneOf(self): - """Test GetResourcesApplicationTypes200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py deleted file mode 100644 index 1b8b5fb..0000000 --- a/test/test_get_resources_apps200_response.py +++ /dev/null @@ -1,233 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_apps200_response import GetResourcesApps200Response - -class TestGetResourcesApps200Response(unittest.TestCase): - """GetResourcesApps200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApps200Response: - """Test GetResourcesApps200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApps200Response` - """ - model = GetResourcesApps200Response() - if include_optional: - return GetResourcesApps200Response( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesApps200Response( - ) - """ - - def testGetResourcesApps200Response(self): - """Test GetResourcesApps200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py deleted file mode 100644 index 81c64f7..0000000 --- a/test/test_get_resources_apps200_response_one_of.py +++ /dev/null @@ -1,233 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_apps200_response_one_of import GetResourcesApps200ResponseOneOf - -class TestGetResourcesApps200ResponseOneOf(unittest.TestCase): - """GetResourcesApps200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: - """Test GetResourcesApps200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApps200ResponseOneOf` - """ - model = GetResourcesApps200ResponseOneOf() - if include_optional: - return GetResourcesApps200ResponseOneOf( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesApps200ResponseOneOf( - ) - """ - - def testGetResourcesApps200ResponseOneOf(self): - """Test GetResourcesApps200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_attacks200_response.py b/test/test_get_resources_attacks200_response.py deleted file mode 100644 index 902aa81..0000000 --- a/test/test_get_resources_attacks200_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_attacks200_response import GetResourcesAttacks200Response - -class TestGetResourcesAttacks200Response(unittest.TestCase): - """GetResourcesAttacks200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAttacks200Response: - """Test GetResourcesAttacks200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAttacks200Response` - """ - model = GetResourcesAttacks200Response() - if include_optional: - return GetResourcesAttacks200Response( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAttacks200Response( - ) - """ - - def testGetResourcesAttacks200Response(self): - """Test GetResourcesAttacks200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_attacks200_response_one_of.py b/test/test_get_resources_attacks200_response_one_of.py deleted file mode 100644 index 7ca5d7b..0000000 --- a/test/test_get_resources_attacks200_response_one_of.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_attacks200_response_one_of import GetResourcesAttacks200ResponseOneOf - -class TestGetResourcesAttacks200ResponseOneOf(unittest.TestCase): - """GetResourcesAttacks200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAttacks200ResponseOneOf: - """Test GetResourcesAttacks200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAttacks200ResponseOneOf` - """ - model = GetResourcesAttacks200ResponseOneOf() - if include_optional: - return GetResourcesAttacks200ResponseOneOf( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAttacks200ResponseOneOf( - ) - """ - - def testGetResourcesAttacks200ResponseOneOf(self): - """Test GetResourcesAttacks200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response.py b/test/test_get_resources_auth_profiles200_response.py deleted file mode 100644 index 0493f11..0000000 --- a/test/test_get_resources_auth_profiles200_response.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_auth_profiles200_response import GetResourcesAuthProfiles200Response - -class TestGetResourcesAuthProfiles200Response(unittest.TestCase): - """GetResourcesAuthProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response: - """Test GetResourcesAuthProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAuthProfiles200Response` - """ - model = GetResourcesAuthProfiles200Response() - if include_optional: - return GetResourcesAuthProfiles200Response( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAuthProfiles200Response( - ) - """ - - def testGetResourcesAuthProfiles200Response(self): - """Test GetResourcesAuthProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response_one_of.py b/test/test_get_resources_auth_profiles200_response_one_of.py deleted file mode 100644 index ce9adaa..0000000 --- a/test/test_get_resources_auth_profiles200_response_one_of.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_auth_profiles200_response_one_of import GetResourcesAuthProfiles200ResponseOneOf - -class TestGetResourcesAuthProfiles200ResponseOneOf(unittest.TestCase): - """GetResourcesAuthProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAuthProfiles200ResponseOneOf: - """Test GetResourcesAuthProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAuthProfiles200ResponseOneOf` - """ - model = GetResourcesAuthProfiles200ResponseOneOf() - if include_optional: - return GetResourcesAuthProfiles200ResponseOneOf( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAuthProfiles200ResponseOneOf( - ) - """ - - def testGetResourcesAuthProfiles200ResponseOneOf(self): - """Test GetResourcesAuthProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_certificates200_response.py b/test/test_get_resources_certificates200_response.py deleted file mode 100644 index 84f6279..0000000 --- a/test/test_get_resources_certificates200_response.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response - -class TestGetResourcesCertificates200Response(unittest.TestCase): - """GetResourcesCertificates200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCertificates200Response: - """Test GetResourcesCertificates200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCertificates200Response` - """ - model = GetResourcesCertificates200Response() - if include_optional: - return GetResourcesCertificates200Response( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCertificates200Response( - ) - """ - - def testGetResourcesCertificates200Response(self): - """Test GetResourcesCertificates200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_certificates200_response_one_of.py b/test/test_get_resources_certificates200_response_one_of.py deleted file mode 100644 index 7754505..0000000 --- a/test/test_get_resources_certificates200_response_one_of.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_certificates200_response_one_of import GetResourcesCertificates200ResponseOneOf - -class TestGetResourcesCertificates200ResponseOneOf(unittest.TestCase): - """GetResourcesCertificates200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCertificates200ResponseOneOf: - """Test GetResourcesCertificates200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCertificates200ResponseOneOf` - """ - model = GetResourcesCertificates200ResponseOneOf() - if include_optional: - return GetResourcesCertificates200ResponseOneOf( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCertificates200ResponseOneOf( - ) - """ - - def testGetResourcesCertificates200ResponseOneOf(self): - """Test GetResourcesCertificates200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response.py b/test/test_get_resources_custom_import_operations200_response.py deleted file mode 100644 index 4ebb793..0000000 --- a/test/test_get_resources_custom_import_operations200_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_custom_import_operations200_response import GetResourcesCustomImportOperations200Response - -class TestGetResourcesCustomImportOperations200Response(unittest.TestCase): - """GetResourcesCustomImportOperations200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCustomImportOperations200Response: - """Test GetResourcesCustomImportOperations200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCustomImportOperations200Response` - """ - model = GetResourcesCustomImportOperations200Response() - if include_optional: - return GetResourcesCustomImportOperations200Response( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCustomImportOperations200Response( - ) - """ - - def testGetResourcesCustomImportOperations200Response(self): - """Test GetResourcesCustomImportOperations200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response_one_of.py b/test/test_get_resources_custom_import_operations200_response_one_of.py deleted file mode 100644 index 05ac38b..0000000 --- a/test/test_get_resources_custom_import_operations200_response_one_of.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_custom_import_operations200_response_one_of import GetResourcesCustomImportOperations200ResponseOneOf - -class TestGetResourcesCustomImportOperations200ResponseOneOf(unittest.TestCase): - """GetResourcesCustomImportOperations200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCustomImportOperations200ResponseOneOf: - """Test GetResourcesCustomImportOperations200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCustomImportOperations200ResponseOneOf` - """ - model = GetResourcesCustomImportOperations200ResponseOneOf() - if include_optional: - return GetResourcesCustomImportOperations200ResponseOneOf( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCustomImportOperations200ResponseOneOf( - ) - """ - - def testGetResourcesCustomImportOperations200ResponseOneOf(self): - """Test GetResourcesCustomImportOperations200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_http_profiles200_response.py b/test/test_get_resources_http_profiles200_response.py deleted file mode 100644 index 22d0279..0000000 --- a/test/test_get_resources_http_profiles200_response.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_http_profiles200_response import GetResourcesHttpProfiles200Response - -class TestGetResourcesHttpProfiles200Response(unittest.TestCase): - """GetResourcesHttpProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesHttpProfiles200Response: - """Test GetResourcesHttpProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesHttpProfiles200Response` - """ - model = GetResourcesHttpProfiles200Response() - if include_optional: - return GetResourcesHttpProfiles200Response( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesHttpProfiles200Response( - ) - """ - - def testGetResourcesHttpProfiles200Response(self): - """Test GetResourcesHttpProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_http_profiles200_response_one_of.py b/test/test_get_resources_http_profiles200_response_one_of.py deleted file mode 100644 index 3376080..0000000 --- a/test/test_get_resources_http_profiles200_response_one_of.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_http_profiles200_response_one_of import GetResourcesHttpProfiles200ResponseOneOf - -class TestGetResourcesHttpProfiles200ResponseOneOf(unittest.TestCase): - """GetResourcesHttpProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesHttpProfiles200ResponseOneOf: - """Test GetResourcesHttpProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesHttpProfiles200ResponseOneOf` - """ - model = GetResourcesHttpProfiles200ResponseOneOf() - if include_optional: - return GetResourcesHttpProfiles200ResponseOneOf( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesHttpProfiles200ResponseOneOf( - ) - """ - - def testGetResourcesHttpProfiles200ResponseOneOf(self): - """Test GetResourcesHttpProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_files200_response.py b/test/test_get_result_files200_response.py deleted file mode 100644 index 9822b3a..0000000 --- a/test/test_get_result_files200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_files200_response import GetResultFiles200Response - -class TestGetResultFiles200Response(unittest.TestCase): - """GetResultFiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultFiles200Response: - """Test GetResultFiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultFiles200Response` - """ - model = GetResultFiles200Response() - if include_optional: - return GetResultFiles200Response( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetResultFiles200Response( - ) - """ - - def testGetResultFiles200Response(self): - """Test GetResultFiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_files200_response_one_of.py b/test/test_get_result_files200_response_one_of.py deleted file mode 100644 index 26e8942..0000000 --- a/test/test_get_result_files200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_files200_response_one_of import GetResultFiles200ResponseOneOf - -class TestGetResultFiles200ResponseOneOf(unittest.TestCase): - """GetResultFiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultFiles200ResponseOneOf: - """Test GetResultFiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultFiles200ResponseOneOf` - """ - model = GetResultFiles200ResponseOneOf() - if include_optional: - return GetResultFiles200ResponseOneOf( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetResultFiles200ResponseOneOf( - ) - """ - - def testGetResultFiles200ResponseOneOf(self): - """Test GetResultFiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py deleted file mode 100644 index df09589..0000000 --- a/test/test_get_result_stats200_response.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_stats200_response import GetResultStats200Response - -class TestGetResultStats200Response(unittest.TestCase): - """GetResultStats200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultStats200Response: - """Test GetResultStats200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultStats200Response` - """ - model = GetResultStats200Response() - if include_optional: - return GetResultStats200Response( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetResultStats200Response( - ) - """ - - def testGetResultStats200Response(self): - """Test GetResultStats200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py deleted file mode 100644 index 8774204..0000000 --- a/test/test_get_result_stats200_response_one_of.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_stats200_response_one_of import GetResultStats200ResponseOneOf - -class TestGetResultStats200ResponseOneOf(unittest.TestCase): - """GetResultStats200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: - """Test GetResultStats200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultStats200ResponseOneOf` - """ - model = GetResultStats200ResponseOneOf() - if include_optional: - return GetResultStats200ResponseOneOf( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetResultStats200ResponseOneOf( - ) - """ - - def testGetResultStats200ResponseOneOf(self): - """Test GetResultStats200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_tags200_response.py b/test/test_get_result_tags200_response.py deleted file mode 100644 index 7802291..0000000 --- a/test/test_get_result_tags200_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_tags200_response import GetResultTags200Response - -class TestGetResultTags200Response(unittest.TestCase): - """GetResultTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultTags200Response: - """Test GetResultTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultTags200Response` - """ - model = GetResultTags200Response() - if include_optional: - return GetResultTags200Response( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultTags200Response( - ) - """ - - def testGetResultTags200Response(self): - """Test GetResultTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_tags200_response_one_of.py b/test/test_get_result_tags200_response_one_of.py deleted file mode 100644 index 4d24ae5..0000000 --- a/test/test_get_result_tags200_response_one_of.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_tags200_response_one_of import GetResultTags200ResponseOneOf - -class TestGetResultTags200ResponseOneOf(unittest.TestCase): - """GetResultTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultTags200ResponseOneOf: - """Test GetResultTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultTags200ResponseOneOf` - """ - model = GetResultTags200ResponseOneOf() - if include_optional: - return GetResultTags200ResponseOneOf( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultTags200ResponseOneOf( - ) - """ - - def testGetResultTags200ResponseOneOf(self): - """Test GetResultTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results200_response.py b/test/test_get_results200_response.py deleted file mode 100644 index 2285aef..0000000 --- a/test/test_get_results200_response.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results200_response import GetResults200Response - -class TestGetResults200Response(unittest.TestCase): - """GetResults200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResults200Response: - """Test GetResults200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResults200Response` - """ - model = GetResults200Response() - if include_optional: - return GetResults200Response( - data = [ - cyperf.models.result_metadata.ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = null, - download_diagnostic = null, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResults200Response( - ) - """ - - def testGetResults200Response(self): - """Test GetResults200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results200_response_one_of.py b/test/test_get_results200_response_one_of.py deleted file mode 100644 index 4f03e95..0000000 --- a/test/test_get_results200_response_one_of.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results200_response_one_of import GetResults200ResponseOneOf - -class TestGetResults200ResponseOneOf(unittest.TestCase): - """GetResults200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResults200ResponseOneOf: - """Test GetResults200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResults200ResponseOneOf` - """ - model = GetResults200ResponseOneOf() - if include_optional: - return GetResults200ResponseOneOf( - data = [ - cyperf.models.result_metadata.ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = null, - download_diagnostic = null, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResults200ResponseOneOf( - ) - """ - - def testGetResults200ResponseOneOf(self): - """Test GetResults200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results_tags200_response.py b/test/test_get_results_tags200_response.py deleted file mode 100644 index 1d518fe..0000000 --- a/test/test_get_results_tags200_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results_tags200_response import GetResultsTags200Response - -class TestGetResultsTags200Response(unittest.TestCase): - """GetResultsTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultsTags200Response: - """Test GetResultsTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultsTags200Response` - """ - model = GetResultsTags200Response() - if include_optional: - return GetResultsTags200Response( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultsTags200Response( - ) - """ - - def testGetResultsTags200Response(self): - """Test GetResultsTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results_tags200_response_one_of.py b/test/test_get_results_tags200_response_one_of.py deleted file mode 100644 index a58de49..0000000 --- a/test/test_get_results_tags200_response_one_of.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results_tags200_response_one_of import GetResultsTags200ResponseOneOf - -class TestGetResultsTags200ResponseOneOf(unittest.TestCase): - """GetResultsTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultsTags200ResponseOneOf: - """Test GetResultsTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultsTags200ResponseOneOf` - """ - model = GetResultsTags200ResponseOneOf() - if include_optional: - return GetResultsTags200ResponseOneOf( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultsTags200ResponseOneOf( - ) - """ - - def testGetResultsTags200ResponseOneOf(self): - """Test GetResultsTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_session_meta200_response.py b/test/test_get_session_meta200_response.py deleted file mode 100644 index 4bab425..0000000 --- a/test/test_get_session_meta200_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_session_meta200_response import GetSessionMeta200Response - -class TestGetSessionMeta200Response(unittest.TestCase): - """GetSessionMeta200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessionMeta200Response: - """Test GetSessionMeta200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessionMeta200Response` - """ - model = GetSessionMeta200Response() - if include_optional: - return GetSessionMeta200Response( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetSessionMeta200Response( - ) - """ - - def testGetSessionMeta200Response(self): - """Test GetSessionMeta200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_session_meta200_response_one_of.py b/test/test_get_session_meta200_response_one_of.py deleted file mode 100644 index 41661b8..0000000 --- a/test/test_get_session_meta200_response_one_of.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_session_meta200_response_one_of import GetSessionMeta200ResponseOneOf - -class TestGetSessionMeta200ResponseOneOf(unittest.TestCase): - """GetSessionMeta200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessionMeta200ResponseOneOf: - """Test GetSessionMeta200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessionMeta200ResponseOneOf` - """ - model = GetSessionMeta200ResponseOneOf() - if include_optional: - return GetSessionMeta200ResponseOneOf( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetSessionMeta200ResponseOneOf( - ) - """ - - def testGetSessionMeta200ResponseOneOf(self): - """Test GetSessionMeta200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_sessions200_response.py b/test/test_get_sessions200_response.py deleted file mode 100644 index 2be6c15..0000000 --- a/test/test_get_sessions200_response.py +++ /dev/null @@ -1,156 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_sessions200_response import GetSessions200Response - -class TestGetSessions200Response(unittest.TestCase): - """GetSessions200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessions200Response: - """Test GetSessions200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessions200Response` - """ - model = GetSessions200Response() - if include_optional: - return GetSessions200Response( - data = [ - cyperf.models.session.Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = , - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ), ) - ], - total_count = 56 - ) - else: - return GetSessions200Response( - ) - """ - - def testGetSessions200Response(self): - """Test GetSessions200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_sessions200_response_one_of.py b/test/test_get_sessions200_response_one_of.py deleted file mode 100644 index 47f91d7..0000000 --- a/test/test_get_sessions200_response_one_of.py +++ /dev/null @@ -1,156 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_sessions200_response_one_of import GetSessions200ResponseOneOf - -class TestGetSessions200ResponseOneOf(unittest.TestCase): - """GetSessions200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessions200ResponseOneOf: - """Test GetSessions200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessions200ResponseOneOf` - """ - model = GetSessions200ResponseOneOf() - if include_optional: - return GetSessions200ResponseOneOf( - data = [ - cyperf.models.session.Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = , - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ), ) - ], - total_count = 56 - ) - else: - return GetSessions200ResponseOneOf( - ) - """ - - def testGetSessions200ResponseOneOf(self): - """Test GetSessions200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats200_response.py b/test/test_get_stats200_response.py deleted file mode 100644 index 21a7e88..0000000 --- a/test/test_get_stats200_response.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats200_response import GetStats200Response - -class TestGetStats200Response(unittest.TestCase): - """GetStats200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStats200Response: - """Test GetStats200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStats200Response` - """ - model = GetStats200Response() - if include_optional: - return GetStats200Response( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetStats200Response( - ) - """ - - def testGetStats200Response(self): - """Test GetStats200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats200_response_one_of.py b/test/test_get_stats200_response_one_of.py deleted file mode 100644 index 4ace336..0000000 --- a/test/test_get_stats200_response_one_of.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats200_response_one_of import GetStats200ResponseOneOf - -class TestGetStats200ResponseOneOf(unittest.TestCase): - """GetStats200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStats200ResponseOneOf: - """Test GetStats200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStats200ResponseOneOf` - """ - model = GetStats200ResponseOneOf() - if include_optional: - return GetStats200ResponseOneOf( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetStats200ResponseOneOf( - ) - """ - - def testGetStats200ResponseOneOf(self): - """Test GetStats200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats_plugins200_response.py b/test/test_get_stats_plugins200_response.py deleted file mode 100644 index 4ed3f4a..0000000 --- a/test/test_get_stats_plugins200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response - -class TestGetStatsPlugins200Response(unittest.TestCase): - """GetStatsPlugins200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStatsPlugins200Response: - """Test GetStatsPlugins200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStatsPlugins200Response` - """ - model = GetStatsPlugins200Response() - if include_optional: - return GetStatsPlugins200Response( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetStatsPlugins200Response( - ) - """ - - def testGetStatsPlugins200Response(self): - """Test GetStatsPlugins200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats_plugins200_response_one_of.py b/test/test_get_stats_plugins200_response_one_of.py deleted file mode 100644 index 51326f0..0000000 --- a/test/test_get_stats_plugins200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf - -class TestGetStatsPlugins200ResponseOneOf(unittest.TestCase): - """GetStatsPlugins200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStatsPlugins200ResponseOneOf: - """Test GetStatsPlugins200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStatsPlugins200ResponseOneOf` - """ - model = GetStatsPlugins200ResponseOneOf() - if include_optional: - return GetStatsPlugins200ResponseOneOf( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetStatsPlugins200ResponseOneOf( - ) - """ - - def testGetStatsPlugins200ResponseOneOf(self): - """Test GetStatsPlugins200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_strikes_operation.py b/test/test_get_strikes_operation.py deleted file mode 100644 index 4b594e6..0000000 --- a/test/test_get_strikes_operation.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_strikes_operation import GetStrikesOperation - -class TestGetStrikesOperation(unittest.TestCase): - """GetStrikesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStrikesOperation: - """Test GetStrikesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStrikesOperation` - """ - model = GetStrikesOperation() - if include_optional: - return GetStrikesOperation( - categories = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ], - compatible_with = '', - filter_mode = '', - search_col = [ - '' - ], - search_val = [ - '' - ], - skip = '', - sort = [ - cyperf.models.sort_body_field.SortBodyField( - field = '', - order = '', ) - ], - take = '' - ) - else: - return GetStrikesOperation( - ) - """ - - def testGetStrikesOperation(self): - """Test GetStrikesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_hash_p1_algorithm.py b/test/test_hash_p1_algorithm.py deleted file mode 100644 index 64ace79..0000000 --- a/test/test_hash_p1_algorithm.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.hash_p1_algorithm import HashP1Algorithm - -class TestHashP1Algorithm(unittest.TestCase): - """HashP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHashP1Algorithm(self): - """Test HashP1Algorithm""" - # inst = HashP1Algorithm() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_hash_p2_algorithm.py b/test/test_hash_p2_algorithm.py deleted file mode 100644 index 4e546e5..0000000 --- a/test/test_hash_p2_algorithm.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.hash_p2_algorithm import HashP2Algorithm - -class TestHashP2Algorithm(unittest.TestCase): - """HashP2Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHashP2Algorithm(self): - """Test HashP2Algorithm""" - # inst = HashP2Algorithm() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_health_check_config.py b/test/test_health_check_config.py deleted file mode 100644 index 06a21ec..0000000 --- a/test/test_health_check_config.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.health_check_config import HealthCheckConfig - -class TestHealthCheckConfig(unittest.TestCase): - """HealthCheckConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HealthCheckConfig: - """Test HealthCheckConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HealthCheckConfig` - """ - model = HealthCheckConfig() - if include_optional: - return HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return HealthCheckConfig( - ) - """ - - def testHealthCheckConfig(self): - """Test HealthCheckConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_health_issue.py b/test/test_health_issue.py deleted file mode 100644 index 836a822..0000000 --- a/test/test_health_issue.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.health_issue import HealthIssue - -class TestHealthIssue(unittest.TestCase): - """HealthIssue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HealthIssue: - """Test HealthIssue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HealthIssue` - """ - model = HealthIssue() - if include_optional: - return HealthIssue( - message = '', - type = '' - ) - else: - return HealthIssue( - ) - """ - - def testHealthIssue(self): - """Test HealthIssue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_host_id.py b/test/test_host_id.py deleted file mode 100644 index 52e0b32..0000000 --- a/test/test_host_id.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.host_id import HostID - -class TestHostID(unittest.TestCase): - """HostID unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HostID: - """Test HostID - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HostID` - """ - model = HostID() - if include_optional: - return HostID( - hostid = '' - ) - else: - return HostID( - ) - """ - - def testHostID(self): - """Test HostID""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_profile.py b/test/test_http_profile.py deleted file mode 100644 index aa70248..0000000 --- a/test/test_http_profile.py +++ /dev/null @@ -1,352 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_profile import HTTPProfile - -class TestHTTPProfile(unittest.TestCase): - """HTTPProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPProfile: - """Test HTTPProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPProfile` - """ - model = HTTPProfile() - if include_optional: - return HTTPProfile( - additional_headers = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - connection_persistence = 'ConnectionPersistenceStandard', - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = 'HTTP11', - headers = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return HTTPProfile( - description = '', - name = '', - ) - """ - - def testHTTPProfile(self): - """Test HTTPProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_req_meta.py b/test/test_http_req_meta.py deleted file mode 100644 index 232ecc6..0000000 --- a/test/test_http_req_meta.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_req_meta import HTTPReqMeta - -class TestHTTPReqMeta(unittest.TestCase): - """HTTPReqMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPReqMeta: - """Test HTTPReqMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPReqMeta` - """ - model = HTTPReqMeta() - if include_optional: - return HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '' - ) - else: - return HTTPReqMeta( - ) - """ - - def testHTTPReqMeta(self): - """Test HTTPReqMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_res_meta.py b/test/test_http_res_meta.py deleted file mode 100644 index f040dca..0000000 --- a/test/test_http_res_meta.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_res_meta import HTTPResMeta - -class TestHTTPResMeta(unittest.TestCase): - """HTTPResMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPResMeta: - """Test HTTPResMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPResMeta` - """ - model = HTTPResMeta() - if include_optional: - return HTTPResMeta( - headers = { - 'key' : [ - '' - ] - }, - size = 56, - status = '', - status_code = 56, - version = '' - ) - else: - return HTTPResMeta( - ) - """ - - def testHTTPResMeta(self): - """Test HTTPResMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_version.py b/test/test_http_version.py deleted file mode 100644 index 54e866a..0000000 --- a/test/test_http_version.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_version import HTTPVersion - -class TestHTTPVersion(unittest.TestCase): - """HTTPVersion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHTTPVersion(self): - """Test HTTPVersion""" - # inst = HTTPVersion() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_id_p_signature_algo.py b/test/test_id_p_signature_algo.py deleted file mode 100644 index 2e1c990..0000000 --- a/test/test_id_p_signature_algo.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.id_p_signature_algo import IdPSignatureAlgo - -class TestIdPSignatureAlgo(unittest.TestCase): - """IdPSignatureAlgo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdPSignatureAlgo(self): - """Test IdPSignatureAlgo""" - # inst = IdPSignatureAlgo() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_import_all_operation.py b/test/test_import_all_operation.py deleted file mode 100644 index 5586973..0000000 --- a/test/test_import_all_operation.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.import_all_operation import ImportAllOperation - -class TestImportAllOperation(unittest.TestCase): - """ImportAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportAllOperation: - """Test ImportAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImportAllOperation` - """ - model = ImportAllOperation() - if include_optional: - return ImportAllOperation( - configs = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ] - ) - else: - return ImportAllOperation( - ) - """ - - def testImportAllOperation(self): - """Test ImportAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_import_offline_license_result.py b/test/test_import_offline_license_result.py deleted file mode 100644 index 9344fc3..0000000 --- a/test/test_import_offline_license_result.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.import_offline_license_result import ImportOfflineLicenseResult - -class TestImportOfflineLicenseResult(unittest.TestCase): - """ImportOfflineLicenseResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportOfflineLicenseResult: - """Test ImportOfflineLicenseResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImportOfflineLicenseResult` - """ - model = ImportOfflineLicenseResult() - if include_optional: - return ImportOfflineLicenseResult( - confirmation_code = '', - is_deactivation = True, - receipt = cyperf.models.license_receipt.license-receipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', ) - ) - else: - return ImportOfflineLicenseResult( - confirmation_code = '', - is_deactivation = True, - receipt = cyperf.models.license_receipt.license-receipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', ), - ) - """ - - def testImportOfflineLicenseResult(self): - """Test ImportOfflineLicenseResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ingest_operation.py b/test/test_ingest_operation.py deleted file mode 100644 index 84a26d2..0000000 --- a/test/test_ingest_operation.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ingest_operation import IngestOperation - -class TestIngestOperation(unittest.TestCase): - """IngestOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IngestOperation: - """Test IngestOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IngestOperation` - """ - model = IngestOperation() - if include_optional: - return IngestOperation( - plugin_stats = cyperf.models.plugin_stats.PluginStats( - plugin = '', - stats = [ - { - 'key' : null - } - ], - version = '', ) - ) - else: - return IngestOperation( - ) - """ - - def testIngestOperation(self): - """Test IngestOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inner_ip_range.py b/test/test_inner_ip_range.py deleted file mode 100644 index 363a0e4..0000000 --- a/test/test_inner_ip_range.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.inner_ip_range import InnerIPRange - -class TestInnerIPRange(unittest.TestCase): - """InnerIPRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InnerIPRange: - """Test InnerIPRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `InnerIPRange` - """ - model = InnerIPRange() - if include_optional: - return InnerIPRange( - network_tags = [ - '' - ] - ) - else: - return InnerIPRange( - ) - """ - - def testInnerIPRange(self): - """Test InnerIPRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_interface.py b/test/test_interface.py deleted file mode 100644 index 0fe5b5e..0000000 --- a/test/test_interface.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.interface import Interface - -class TestInterface(unittest.TestCase): - """Interface unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Interface: - """Test Interface - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Interface` - """ - model = Interface() - if include_optional: - return Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '' - ) - else: - return Interface( - ) - """ - - def testInterface(self): - """Test Interface""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_mask.py b/test/test_ip_mask.py deleted file mode 100644 index 5551f9e..0000000 --- a/test/test_ip_mask.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_mask import IpMask - -class TestIpMask(unittest.TestCase): - """IpMask unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IpMask: - """Test IpMask - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IpMask` - """ - model = IpMask() - if include_optional: - return IpMask( - ip = '', - net_mask = 56 - ) - else: - return IpMask( - ) - """ - - def testIpMask(self): - """Test IpMask""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_network.py b/test/test_ip_network.py deleted file mode 100644 index d766f96..0000000 --- a/test/test_ip_network.py +++ /dev/null @@ -1,233 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_network import IPNetwork - -class TestIPNetwork(unittest.TestCase): - """IPNetwork unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPNetwork: - """Test IPNetwork - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPNetwork` - """ - model = IPNetwork() - if include_optional: - return IPNetwork( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ], - dns_resolver = cyperf.models.dns_resolver.DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ], ), - dns_server = cyperf.models.dns_server.DNSServer( - automatic = True, - enabled = True, - ip_to_resolve_to = '::02:84:9:0cc0:F:CCf', - port = 56, ), - dut_connections = [ - '' - ], - emulated_router = None, - eth_range = None, - ip_ranges = [ - cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ) - ], - ip_sec_stacks = [ - cyperf.models.ip_sec_stack.IPSecStack( - ca_certificate_file = null, - emulated_sub_config = null, - enable_rekey = True, - ip_sec_range = null, - ip_sec_stack_name = 'YBuLd', - local_sub_config = null, - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - outer_ip_range = null, - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - retry_interval = 56, - retry_interval_increment = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - mac_dtls_stacks = [ - cyperf.models.mac_dtls_stack.MacDtlsStack( - dtls_enabled = True, - dtls_range_name = 'YBuLd', - epoch = 56, - epoch_incr = 56, - ip_range = null, - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - network_meshing = null, - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - vlan_range = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - tunnel_stacks = [ - cyperf.models.tunnel_stack.TunnelStack( - inner_ip_range = null, - outer_ip_range = null, - tunnel_range = null, - tunnel_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - active = True, - agent_assignments = cyperf.models.agent_assignments.AgentAssignments( - by_id = [ - null - ], - by_port = [ - null - ], - by_tag = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - min_agents = 56 - ) - else: - return IPNetwork( - name = 'YBuLd', - id = '', - ) - """ - - def testIPNetwork(self): - """Test IPNetwork""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_preference.py b/test/test_ip_preference.py deleted file mode 100644 index 61305ac..0000000 --- a/test/test_ip_preference.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_preference import IpPreference - -class TestIpPreference(unittest.TestCase): - """IpPreference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIpPreference(self): - """Test IpPreference""" - # inst = IpPreference() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_range.py b/test/test_ip_range.py deleted file mode 100644 index e4bb376..0000000 --- a/test/test_ip_range.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_range import IPRange - -class TestIPRange(unittest.TestCase): - """IPRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPRange: - """Test IPRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPRange` - """ - model = IPRange() - if include_optional: - return IPRange( - automatic_ip_type = 'BOTH_IPV4_IPV6', - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = 'IPV4', - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ] - ) - else: - return IPRange( - gw_auto = True, - ip_auto = True, - ip_range_name = 'YBuLd', - ip_ver = 'IPV4', - mss_auto = True, - net_mask_auto = True, - ) - """ - - def testIPRange(self): - """Test IPRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_sec_range.py b/test/test_ip_sec_range.py deleted file mode 100644 index db8a832..0000000 --- a/test/test_ip_sec_range.py +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_sec_range import IPSecRange - -class TestIPSecRange(unittest.TestCase): - """IPSecRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPSecRange: - """Test IPSecRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPSecRange` - """ - model = IPSecRange() - if include_optional: - return IPSecRange( - var_auth_settings = cyperf.models.authentication_settings.AuthenticationSettings( - auth_method = 'PRE-SHARED-KEY', - certificate_file = null, - key_file = null, - key_file_password = '', - shared_key = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ike_phase1_config = cyperf.models.p1_config.P1Config( - dh_group = null, - enc_algorithm = null, - hash_algorithm = null, - initial_contact = True, - lifetime = 56, - prf_algorithm = null, ), - ike_phase2_config = cyperf.models.p2_config.P2Config( - enc_algorithm = null, - hash_algorithm = null, - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = null, ), - ip_sec_range_name = 'YBuLd', - multi_p2_over_p1 = True, - protected_sub_config = cyperf.models.protected_subnet_config.ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf', ), - public_peer = '02::84', - public_peer_increment = '02::84', - remote_access = cyperf.models.remote_access.RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_start = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56, ), - remote_sub_config = cyperf.models.remote_subnet_config.RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf', ), - test_scenario = 'REMOTE-ACCESS', - timers = cyperf.models.timers.Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56, ), - tunnel_count_per_outer_ip = 56, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return IPSecRange( - ip_sec_range_name = 'YBuLd', - public_peer = '02::84', - public_peer_increment = '02::84', - test_scenario = 'REMOTE-ACCESS', - tunnel_count_per_outer_ip = 56, - id = '', - ) - """ - - def testIPSecRange(self): - """Test IPSecRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_sec_stack.py b/test/test_ip_sec_stack.py deleted file mode 100644 index 07f98fd..0000000 --- a/test/test_ip_sec_stack.py +++ /dev/null @@ -1,259 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_sec_stack import IPSecStack - -class TestIPSecStack(unittest.TestCase): - """IPSecStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPSecStack: - """Test IPSecStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPSecStack` - """ - model = IPSecStack() - if include_optional: - return IPSecStack( - ca_certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - emulated_sub_config = cyperf.models.emulated_subnet_config.EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], ), - enable_rekey = True, - ip_sec_range = cyperf.models.ip_sec_range.IPSecRange( - auth_settings = null, - ike_phase1_config = null, - ike_phase2_config = null, - ip_sec_range_name = 'YBuLd', - multi_p2_over_p1 = True, - protected_sub_config = null, - public_peer = '02::84', - public_peer_increment = '02::84', - remote_access = null, - remote_sub_config = null, - test_scenario = 'REMOTE-ACCESS', - timers = null, - tunnel_count_per_outer_ip = 56, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_sec_stack_name = 'YBuLd', - local_sub_config = cyperf.models.local_subnet_config.LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], ), - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - outer_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - retry_interval = 56, - retry_interval_increment = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return IPSecStack( - enable_rekey = True, - ip_sec_stack_name = 'YBuLd', - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - ) - """ - - def testIPSecStack(self): - """Test IPSecStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_ver.py b/test/test_ip_ver.py deleted file mode 100644 index 6c65b16..0000000 --- a/test/test_ip_ver.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_ver import IpVer - -class TestIpVer(unittest.TestCase): - """IpVer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIpVer(self): - """Test IpVer""" - # inst = IpVer() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license.py b/test/test_license.py deleted file mode 100644 index cf72d4b..0000000 --- a/test/test_license.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license import License - -class TestLicense(unittest.TestCase): - """License unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> License: - """Test License - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `License` - """ - model = License() - if include_optional: - return License( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56 - ) - else: - return License( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, - ) - """ - - def testLicense(self): - """Test License""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_receipt.py b/test/test_license_receipt.py deleted file mode 100644 index 97da96e..0000000 --- a/test/test_license_receipt.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license_receipt import LicenseReceipt - -class TestLicenseReceipt(unittest.TestCase): - """LicenseReceipt unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LicenseReceipt: - """Test LicenseReceipt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LicenseReceipt` - """ - model = LicenseReceipt() - if include_optional: - return LicenseReceipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation' - ) - else: - return LicenseReceipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', - ) - """ - - def testLicenseReceipt(self): - """Test LicenseReceipt""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_server_metadata.py b/test/test_license_server_metadata.py deleted file mode 100644 index 679a3ae..0000000 --- a/test/test_license_server_metadata.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license_server_metadata import LicenseServerMetadata - -class TestLicenseServerMetadata(unittest.TestCase): - """LicenseServerMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LicenseServerMetadata: - """Test LicenseServerMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LicenseServerMetadata` - """ - model = LicenseServerMetadata() - if include_optional: - return LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '' - ) - else: - return LicenseServerMetadata( - ) - """ - - def testLicenseServerMetadata(self): - """Test LicenseServerMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_servers_api.py b/test/test_license_servers_api.py deleted file mode 100644 index 7a46f03..0000000 --- a/test/test_license_servers_api.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.license_servers_api import LicenseServersApi - - -class TestLicenseServersApi(unittest.TestCase): - """LicenseServersApi unit test stubs""" - - def setUp(self) -> None: - self.api = LicenseServersApi() - - def tearDown(self) -> None: - pass - - def test_create_license_servers(self) -> None: - """Test case for create_license_servers - - """ - pass - - def test_delete_license_server(self) -> None: - """Test case for delete_license_server - - """ - pass - - def test_get_license_server_by_id(self) -> None: - """Test case for get_license_server_by_id - - """ - pass - - def test_get_license_servers(self) -> None: - """Test case for get_license_servers - - """ - pass - - def test_patch_license_server(self) -> None: - """Test case for patch_license_server - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_licensing_api.py b/test/test_licensing_api.py deleted file mode 100644 index 4487903..0000000 --- a/test/test_licensing_api.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.licensing_api import LicensingApi - - -class TestLicensingApi(unittest.TestCase): - """LicensingApi unit test stubs""" - - def setUp(self) -> None: - self.api = LicensingApi() - - def tearDown(self) -> None: - pass - - def test_activate_licenses(self) -> None: - """Test case for activate_licenses - - Performs an online request to KSM and activates the requested licenses. - """ - pass - - def test_deactivate_licenses(self) -> None: - """Test case for deactivate_licenses - - Performs an online request to KSM to deactivate the requested licenses. - """ - pass - - def test_generate_offline_request(self) -> None: - """Test case for generate_offline_request - - Generates an offline request that can be used on the offline licensing portal. - """ - pass - - def test_get_activation_code_info(self) -> None: - """Test case for get_activation_code_info - - Retrieves the activation code info from KSM. - """ - pass - - def test_get_activation_code_info_list(self) -> None: - """Test case for get_activation_code_info_list - - Retrieves the activation code info list from KSM. - """ - pass - - def test_get_async_operation_result(self) -> None: - """Test case for get_async_operation_result - - Returns the result of async operation. - """ - pass - - def test_get_async_operation_status(self) -> None: - """Test case for get_async_operation_status - - Returns the status of an ongoing async operation. - """ - pass - - def test_get_counted_feature_stats(self) -> None: - """Test case for get_counted_feature_stats - - Retrieves the counted feature stats. - """ - pass - - def test_get_entitlement_code_info(self) -> None: - """Test case for get_entitlement_code_info - - Retrieves the activations codes of the supplied entitlement code from KSM. - """ - pass - - def test_get_hostid(self) -> None: - """Test case for get_hostid - - Retrieves the host ID of the license server. - """ - pass - - def test_get_installed_licenses(self) -> None: - """Test case for get_installed_licenses - - Returns the installed licenses. - """ - pass - - def test_get_license(self) -> None: - """Test case for get_license - - Returns the requested license. - """ - pass - - def test_get_license_async_operation_result(self) -> None: - """Test case for get_license_async_operation_result - - Returns the result of async operation. - """ - pass - - def test_get_license_async_operation_status(self) -> None: - """Test case for get_license_async_operation_status - - Returns the status of an ongoing async operation. - """ - pass - - def test_import_offline_license(self) -> None: - """Test case for import_offline_license - - Installs the offline license. - """ - pass - - def test_remove_reservation(self) -> None: - """Test case for remove_reservation - - Remove previously reserved features, thus making them available for checkout by other users. - """ - pass - - def test_sync_licenses(self) -> None: - """Test case for sync_licenses - - Synchronize local licenses with KSM. - """ - pass - - def test_test_backend_connectivity(self) -> None: - """Test case for test_backend_connectivity - - Tests connection of the license server with KSM. - """ - pass - - def test_update_reservation(self) -> None: - """Test case for update_reservation - - Retain over a period of time specific counts of installed features, that can be consumed only by current user. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_link.py b/test/test_link.py deleted file mode 100644 index b8ca676..0000000 --- a/test/test_link.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.link import Link - -class TestLink(unittest.TestCase): - """Link unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Link: - """Test Link - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Link` - """ - model = Link() - if include_optional: - return Link( - href = '', - method = '', - type = '' - ) - else: - return Link( - href = '', - method = '', - type = '', - ) - """ - - def testLink(self): - """Test Link""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_load_config_operation.py b/test/test_load_config_operation.py deleted file mode 100644 index 10afb43..0000000 --- a/test/test_load_config_operation.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.load_config_operation import LoadConfigOperation - -class TestLoadConfigOperation(unittest.TestCase): - """LoadConfigOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LoadConfigOperation: - """Test LoadConfigOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LoadConfigOperation` - """ - model = LoadConfigOperation() - if include_optional: - return LoadConfigOperation( - config_url = '' - ) - else: - return LoadConfigOperation( - ) - """ - - def testLoadConfigOperation(self): - """Test LoadConfigOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_local_subnet_config.py b/test/test_local_subnet_config.py deleted file mode 100644 index 2299c33..0000000 --- a/test/test_local_subnet_config.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.local_subnet_config import LocalSubnetConfig - -class TestLocalSubnetConfig(unittest.TestCase): - """LocalSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LocalSubnetConfig: - """Test LocalSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LocalSubnetConfig` - """ - model = LocalSubnetConfig() - if include_optional: - return LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ] - ) - else: - return LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], - ) - """ - - def testLocalSubnetConfig(self): - """Test LocalSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_log_config.py b/test/test_log_config.py deleted file mode 100644 index 175212f..0000000 --- a/test/test_log_config.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.log_config import LogConfig - -class TestLogConfig(unittest.TestCase): - """LogConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LogConfig: - """Test LogConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LogConfig` - """ - model = LogConfig() - if include_optional: - return LogConfig( - level = '' - ) - else: - return LogConfig( - ) - """ - - def testLogConfig(self): - """Test LogConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_log_level.py b/test/test_log_level.py deleted file mode 100644 index 23faf5d..0000000 --- a/test/test_log_level.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.log_level import LogLevel - -class TestLogLevel(unittest.TestCase): - """LogLevel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLogLevel(self): - """Test LogLevel""" - # inst = LogLevel() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mac_dtls_stack.py b/test/test_mac_dtls_stack.py deleted file mode 100644 index ae70a03..0000000 --- a/test/test_mac_dtls_stack.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mac_dtls_stack import MacDtlsStack - -class TestMacDtlsStack(unittest.TestCase): - """MacDtlsStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MacDtlsStack: - """Test MacDtlsStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MacDtlsStack` - """ - model = MacDtlsStack() - if include_optional: - return MacDtlsStack( - dtls_enabled = True, - dtls_range_name = 'YBuLd', - epoch = 56, - epoch_incr = 56, - ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - network_meshing = cyperf.models.network_meshing.NetworkMeshing( - dst_ips_per_group = 56, - mapping_type = null, - src_vlans_per_group = 56, ), - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return MacDtlsStack( - dtls_range_name = 'YBuLd', - epoch = 56, - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - id = '', - ) - """ - - def testMacDtlsStack(self): - """Test MacDtlsStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mapping_type.py b/test/test_mapping_type.py deleted file mode 100644 index 7cdd7ab..0000000 --- a/test/test_mapping_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mapping_type import MappingType - -class TestMappingType(unittest.TestCase): - """MappingType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMappingType(self): - """Test MappingType""" - # inst = MappingType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_marked_as_deleted.py b/test/test_marked_as_deleted.py deleted file mode 100644 index fe18eb4..0000000 --- a/test/test_marked_as_deleted.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.marked_as_deleted import MarkedAsDeleted - -class TestMarkedAsDeleted(unittest.TestCase): - """MarkedAsDeleted unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MarkedAsDeleted: - """Test MarkedAsDeleted - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MarkedAsDeleted` - """ - model = MarkedAsDeleted() - if include_optional: - return MarkedAsDeleted( - delete_progress = 56, - value = True - ) - else: - return MarkedAsDeleted( - ) - """ - - def testMarkedAsDeleted(self): - """Test MarkedAsDeleted""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_media_file.py b/test/test_media_file.py deleted file mode 100644 index 4f876ec..0000000 --- a/test/test_media_file.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.media_file import MediaFile - -class TestMediaFile(unittest.TestCase): - """MediaFile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MediaFile: - """Test MediaFile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MediaFile` - """ - model = MediaFile() - if include_optional: - return MediaFile( - file_value = cyperf.models.file_value.FileValue( - file_name = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '', ), - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return MediaFile( - ) - """ - - def testMediaFile(self): - """Test MediaFile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_media_track.py b/test/test_media_track.py deleted file mode 100644 index 3331ab7..0000000 --- a/test/test_media_track.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.media_track import MediaTrack - -class TestMediaTrack(unittest.TestCase): - """MediaTrack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MediaTrack: - """Test MediaTrack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MediaTrack` - """ - model = MediaTrack() - if include_optional: - return MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = 'VIDEO', - id = '' - ) - else: - return MediaTrack( - track_id = '', - track_type = 'VIDEO', - id = '', - ) - """ - - def testMediaTrack(self): - """Test MediaTrack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_metadata.py b/test/test_metadata.py deleted file mode 100644 index 60f1493..0000000 --- a/test/test_metadata.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.metadata import Metadata - -class TestMetadata(unittest.TestCase): - """Metadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Metadata: - """Test Metadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Metadata` - """ - model = Metadata() - if include_optional: - return Metadata( - direction = '', - is_banner = True, - 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 = '' - ) - else: - return Metadata( - ) - """ - - def testMetadata(self): - """Test Metadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mos_mode.py b/test/test_mos_mode.py deleted file mode 100644 index cdceeea..0000000 --- a/test/test_mos_mode.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mos_mode import MosMode - -class TestMosMode(unittest.TestCase): - """MosMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMosMode(self): - """Test MosMode""" - # inst = MosMode() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_name_id_format.py b/test/test_name_id_format.py deleted file mode 100644 index 590f379..0000000 --- a/test/test_name_id_format.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.name_id_format import NameIdFormat - -class TestNameIdFormat(unittest.TestCase): - """NameIdFormat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNameIdFormat(self): - """Test NameIdFormat""" - # inst = NameIdFormat() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_name_server.py b/test/test_name_server.py deleted file mode 100644 index e6e3818..0000000 --- a/test/test_name_server.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.name_server import NameServer - -class TestNameServer(unittest.TestCase): - """NameServer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NameServer: - """Test NameServer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NameServer` - """ - model = NameServer() - if include_optional: - return NameServer( - name = '4.207.188.200' - ) - else: - return NameServer( - ) - """ - - def testNameServer(self): - """Test NameServer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_mapping.py b/test/test_network_mapping.py deleted file mode 100644 index 428b824..0000000 --- a/test/test_network_mapping.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_mapping import NetworkMapping - -class TestNetworkMapping(unittest.TestCase): - """NetworkMapping unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkMapping: - """Test NetworkMapping - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkMapping` - """ - model = NetworkMapping() - if include_optional: - return NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ] - ) - else: - return NetworkMapping( - client_network_tags = [ - '' - ], - server_network_tags = [ - '' - ], - ) - """ - - def testNetworkMapping(self): - """Test NetworkMapping""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_meshing.py b/test/test_network_meshing.py deleted file mode 100644 index 9a8c032..0000000 --- a/test/test_network_meshing.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_meshing import NetworkMeshing - -class TestNetworkMeshing(unittest.TestCase): - """NetworkMeshing unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkMeshing: - """Test NetworkMeshing - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkMeshing` - """ - model = NetworkMeshing() - if include_optional: - return NetworkMeshing( - dst_ips_per_group = 56, - mapping_type = 'FULL_MESH', - src_vlans_per_group = 56 - ) - else: - return NetworkMeshing( - ) - """ - - def testNetworkMeshing(self): - """Test NetworkMeshing""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_profile.py b/test/test_network_profile.py deleted file mode 100644 index a63a040..0000000 --- a/test/test_network_profile.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_profile import NetworkProfile - -class TestNetworkProfile(unittest.TestCase): - """NetworkProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkProfile: - """Test NetworkProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkProfile` - """ - model = NetworkProfile() - if include_optional: - return NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return NetworkProfile( - id = '', - ) - """ - - def testNetworkProfile(self): - """Test NetworkProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_segment_base.py b/test/test_network_segment_base.py deleted file mode 100644 index e5dfa9d..0000000 --- a/test/test_network_segment_base.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_segment_base import NetworkSegmentBase - -class TestNetworkSegmentBase(unittest.TestCase): - """NetworkSegmentBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkSegmentBase: - """Test NetworkSegmentBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkSegmentBase` - """ - model = NetworkSegmentBase() - if include_optional: - return NetworkSegmentBase( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ] - ) - else: - return NetworkSegmentBase( - name = 'YBuLd', - id = '', - ) - """ - - def testNetworkSegmentBase(self): - """Test NetworkSegmentBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_nodes_by_controller.py b/test/test_nodes_by_controller.py deleted file mode 100644 index 098a652..0000000 --- a/test/test_nodes_by_controller.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.nodes_by_controller import NodesByController - -class TestNodesByController(unittest.TestCase): - """NodesByController unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NodesByController: - """Test NodesByController - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NodesByController` - """ - model = NodesByController() - if include_optional: - return NodesByController( - compute_nodes = [ - '' - ], - controller_id = '' - ) - else: - return NodesByController( - ) - """ - - def testNodesByController(self): - """Test NodesByController""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_nodes_power_cycle_operation.py b/test/test_nodes_power_cycle_operation.py deleted file mode 100644 index 3b2caaf..0000000 --- a/test/test_nodes_power_cycle_operation.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation - -class TestNodesPowerCycleOperation(unittest.TestCase): - """NodesPowerCycleOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NodesPowerCycleOperation: - """Test NodesPowerCycleOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NodesPowerCycleOperation` - """ - model = NodesPowerCycleOperation() - if include_optional: - return NodesPowerCycleOperation( - controllers = [ - cyperf.models.nodes_by_controller.NodesByController( - compute_nodes = [ - '' - ], - controller_id = '', ) - ] - ) - else: - return NodesPowerCycleOperation( - ) - """ - - def testNodesPowerCycleOperation(self): - """Test NodesPowerCycleOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notification.py b/test/test_notification.py deleted file mode 100644 index ecf5233..0000000 --- a/test/test_notification.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.notification import Notification - -class TestNotification(unittest.TestCase): - """Notification unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Notification: - """Test Notification - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Notification` - """ - model = Notification() - if include_optional: - return Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56 - ) - else: - return Notification( - ) - """ - - def testNotification(self): - """Test Notification""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notification_counts.py b/test/test_notification_counts.py deleted file mode 100644 index 6ecab87..0000000 --- a/test/test_notification_counts.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.notification_counts import NotificationCounts - -class TestNotificationCounts(unittest.TestCase): - """NotificationCounts unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NotificationCounts: - """Test NotificationCounts - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NotificationCounts` - """ - model = NotificationCounts() - if include_optional: - return NotificationCounts( - all = 56, - error = 56, - info = 56, - warning = 56 - ) - else: - return NotificationCounts( - ) - """ - - def testNotificationCounts(self): - """Test NotificationCounts""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notifications_api.py b/test/test_notifications_api.py deleted file mode 100644 index b6946d8..0000000 --- a/test/test_notifications_api.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.notifications_api import NotificationsApi - - -class TestNotificationsApi(unittest.TestCase): - """NotificationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = NotificationsApi() - - def tearDown(self) -> None: - pass - - def test_delete_notification(self) -> None: - """Test case for delete_notification - - """ - pass - - def test_get_notification_by_id(self) -> None: - """Test case for get_notification_by_id - - """ - pass - - def test_get_notification_counts(self) -> None: - """Test case for get_notification_counts - - """ - pass - - def test_get_notifications(self) -> None: - """Test case for get_notifications - - """ - pass - - def test_poll_notifications_cleanup(self) -> None: - """Test case for poll_notifications_cleanup - - """ - pass - - def test_poll_notifications_dismiss(self) -> None: - """Test case for poll_notifications_dismiss - - """ - pass - - def test_start_notifications_cleanup(self) -> None: - """Test case for start_notifications_cleanup - - """ - pass - - def test_start_notifications_dismiss(self) -> None: - """Test case for start_notifications_dismiss - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ntp_info.py b/test/test_ntp_info.py deleted file mode 100644 index 2487c42..0000000 --- a/test/test_ntp_info.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ntp_info import NtpInfo - -class TestNtpInfo(unittest.TestCase): - """NtpInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NtpInfo: - """Test NtpInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NtpInfo` - """ - model = NtpInfo() - if include_optional: - return NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '' - ) - else: - return NtpInfo( - ) - """ - - def testNtpInfo(self): - """Test NtpInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_type.py b/test/test_objective_type.py deleted file mode 100644 index 8c917d4..0000000 --- a/test/test_objective_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_type import ObjectiveType - -class TestObjectiveType(unittest.TestCase): - """ObjectiveType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testObjectiveType(self): - """Test ObjectiveType""" - # inst = ObjectiveType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_unit.py b/test/test_objective_unit.py deleted file mode 100644 index 81cddbb..0000000 --- a/test/test_objective_unit.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_unit import ObjectiveUnit - -class TestObjectiveUnit(unittest.TestCase): - """ObjectiveUnit unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testObjectiveUnit(self): - """Test ObjectiveUnit""" - # inst = ObjectiveUnit() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_value_entry.py b/test/test_objective_value_entry.py deleted file mode 100644 index 1c3e8fb..0000000 --- a/test/test_objective_value_entry.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_value_entry import ObjectiveValueEntry - -class TestObjectiveValueEntry(unittest.TestCase): - """ObjectiveValueEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectiveValueEntry: - """Test ObjectiveValueEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ObjectiveValueEntry` - """ - model = ObjectiveValueEntry() - if include_optional: - return ObjectiveValueEntry( - unit = '', - value = 1.337, - id = '' - ) - else: - return ObjectiveValueEntry( - value = 1.337, - id = '', - ) - """ - - def testObjectiveValueEntry(self): - """Test ObjectiveValueEntry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objectives_and_timeline.py b/test/test_objectives_and_timeline.py deleted file mode 100644 index 0afc88d..0000000 --- a/test/test_objectives_and_timeline.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline - -class TestObjectivesAndTimeline(unittest.TestCase): - """ObjectivesAndTimeline unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectivesAndTimeline: - """Test ObjectivesAndTimeline - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ObjectivesAndTimeline` - """ - model = ObjectivesAndTimeline() - if include_optional: - return ObjectivesAndTimeline( - advanced_settings = cyperf.models.advanced_settings.AdvancedSettings( - agent_optimization_mode = null, - agent_streaming_purpose_cpu_percent = 56, - automatic_cpu_percent = True, - connection_graceful_stop_timeout = 56, - warm_up_period = 56, ), - primary_objective = cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = null, - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - secondary_objective = cyperf.models.secondary_objective.SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - max_simulated_users_per_interval = 56, - objective_unit = '', - objective_value = 1.337, - type = null, ), - secondary_objectives = [ - cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = null, - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ObjectivesAndTimeline( - ) - """ - - def testObjectivesAndTimeline(self): - """Test ObjectivesAndTimeline""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_open_api_definitions.py b/test/test_open_api_definitions.py deleted file mode 100644 index 9ecd15e..0000000 --- a/test/test_open_api_definitions.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.open_api_definitions import OpenAPIDefinitions - -class TestOpenAPIDefinitions(unittest.TestCase): - """OpenAPIDefinitions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> OpenAPIDefinitions: - """Test OpenAPIDefinitions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `OpenAPIDefinitions` - """ - model = OpenAPIDefinitions() - if include_optional: - return OpenAPIDefinitions( - open_api_definitions = { - 'key' : null - } - ) - else: - return OpenAPIDefinitions( - ) - """ - - def testOpenAPIDefinitions(self): - """Test OpenAPIDefinitions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_p1_config.py b/test/test_p1_config.py deleted file mode 100644 index 3986ddd..0000000 --- a/test/test_p1_config.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.p1_config import P1Config - -class TestP1Config(unittest.TestCase): - """P1Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> P1Config: - """Test P1Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `P1Config` - """ - model = P1Config() - if include_optional: - return P1Config( - dh_group = 'MODP 768', - enc_algorithm = 'DES CBC', - hash_algorithm = 'HMAC MD5', - initial_contact = True, - lifetime = 56, - prf_algorithm = 'HMAC MD5' - ) - else: - return P1Config( - dh_group = 'MODP 768', - enc_algorithm = 'DES CBC', - hash_algorithm = 'HMAC MD5', - initial_contact = True, - lifetime = 56, - prf_algorithm = 'HMAC MD5', - ) - """ - - def testP1Config(self): - """Test P1Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_p2_config.py b/test/test_p2_config.py deleted file mode 100644 index c93e556..0000000 --- a/test/test_p2_config.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.p2_config import P2Config - -class TestP2Config(unittest.TestCase): - """P2Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> P2Config: - """Test P2Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `P2Config` - """ - model = P2Config() - if include_optional: - return P2Config( - enc_algorithm = 'NONE', - hash_algorithm = 'HMAC MD5 96', - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = 'MODP 768' - ) - else: - return P2Config( - enc_algorithm = 'NONE', - hash_algorithm = 'HMAC MD5 96', - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = 'MODP 768', - ) - """ - - def testP2Config(self): - """Test P2Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pair.py b/test/test_pair.py deleted file mode 100644 index 346c4bb..0000000 --- a/test/test_pair.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pair import Pair - -class TestPair(unittest.TestCase): - """Pair unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Pair: - """Test Pair - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Pair` - """ - model = Pair() - if include_optional: - return Pair( - id = 56, - key = '', - value = '' - ) - else: - return Pair( - ) - """ - - def testPair(self): - """Test Pair""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pangp_encapsulation.py b/test/test_pangp_encapsulation.py deleted file mode 100644 index c7e3b35..0000000 --- a/test/test_pangp_encapsulation.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pangp_encapsulation import PANGPEncapsulation - -class TestPANGPEncapsulation(unittest.TestCase): - """PANGPEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PANGPEncapsulation: - """Test PANGPEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PANGPEncapsulation` - """ - model = PANGPEncapsulation() - if include_optional: - return PANGPEncapsulation( - esp_over_udp_enabled = True, - esp_over_udp_settings = cyperf.models.esp_over_udp_settings.ESPOverUDPSettings( - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PANGPEncapsulation( - esp_over_udp_enabled = True, - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - ) - """ - - def testPANGPEncapsulation(self): - """Test PANGPEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pangp_settings.py b/test/test_pangp_settings.py deleted file mode 100644 index 893aa83..0000000 --- a/test/test_pangp_settings.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pangp_settings import PANGPSettings - -class TestPANGPSettings(unittest.TestCase): - """PANGPSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PANGPSettings: - """Test PANGPSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PANGPSettings` - """ - model = PANGPSettings() - if include_optional: - return PANGPSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - esp_probe_retry_timeout = 56, - esp_probe_timeout = 56, - gp_client_version = '', - is_portal = True, - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - pangp_encapsulation = cyperf.models.pangp_encapsulation.PANGPEncapsulation( - esp_over_udp_enabled = True, - esp_over_udp_settings = null, - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - portal_hostname = '02::84', - vpn_gateway = '', - vpn_gateways = [ - '' - ] - ) - else: - return PANGPSettings( - portal_hostname = '02::84', - vpn_gateways = [ - '' - ], - ) - """ - - def testPANGPSettings(self): - """Test PANGPSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata.py b/test/test_param_metadata.py deleted file mode 100644 index 93a6575..0000000 --- a/test/test_param_metadata.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata import ParamMetadata - -class TestParamMetadata(unittest.TestCase): - """ParamMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadata: - """Test ParamMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadata` - """ - model = ParamMetadata() - if include_optional: - return ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ) - ) - else: - return ParamMetadata( - ) - """ - - def testParamMetadata(self): - """Test ParamMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info.py b/test/test_param_metadata_type_info.py deleted file mode 100644 index 4f24ec5..0000000 --- a/test/test_param_metadata_type_info.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo - -class TestParamMetadataTypeInfo(unittest.TestCase): - """ParamMetadataTypeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfo: - """Test ParamMetadataTypeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfo` - """ - model = ParamMetadataTypeInfo() - if include_optional: - return ParamMetadataTypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ) - ) - else: - return ParamMetadataTypeInfo( - ) - """ - - def testParamMetadataTypeInfo(self): - """Test ParamMetadataTypeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2.py b/test/test_param_metadata_type_info_array_v2.py deleted file mode 100644 index a7c4abd..0000000 --- a/test/test_param_metadata_type_info_array_v2.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_array_v2 import ParamMetadataTypeInfoArrayV2 - -class TestParamMetadataTypeInfoArrayV2(unittest.TestCase): - """ParamMetadataTypeInfoArrayV2 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoArrayV2: - """Test ParamMetadataTypeInfoArrayV2 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoArrayV2` - """ - model = ParamMetadataTypeInfoArrayV2() - if include_optional: - return ParamMetadataTypeInfoArrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ] - ) - else: - return ParamMetadataTypeInfoArrayV2( - ) - """ - - def testParamMetadataTypeInfoArrayV2(self): - """Test ParamMetadataTypeInfoArrayV2""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2_elements_inner.py b/test/test_param_metadata_type_info_array_v2_elements_inner.py deleted file mode 100644 index da57742..0000000 --- a/test/test_param_metadata_type_info_array_v2_elements_inner.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_array_v2_elements_inner import ParamMetadataTypeInfoArrayV2ElementsInner - -class TestParamMetadataTypeInfoArrayV2ElementsInner(unittest.TestCase): - """ParamMetadataTypeInfoArrayV2ElementsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoArrayV2ElementsInner: - """Test ParamMetadataTypeInfoArrayV2ElementsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoArrayV2ElementsInner` - """ - model = ParamMetadataTypeInfoArrayV2ElementsInner() - if include_optional: - return ParamMetadataTypeInfoArrayV2ElementsInner( - id = '', - type = '' - ) - else: - return ParamMetadataTypeInfoArrayV2ElementsInner( - ) - """ - - def testParamMetadataTypeInfoArrayV2ElementsInner(self): - """Test ParamMetadataTypeInfoArrayV2ElementsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_int.py b/test/test_param_metadata_type_info_int.py deleted file mode 100644 index 2d83a79..0000000 --- a/test/test_param_metadata_type_info_int.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_int import ParamMetadataTypeInfoInt - -class TestParamMetadataTypeInfoInt(unittest.TestCase): - """ParamMetadataTypeInfoInt unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoInt: - """Test ParamMetadataTypeInfoInt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoInt` - """ - model = ParamMetadataTypeInfoInt() - if include_optional: - return ParamMetadataTypeInfoInt( - max_value = 56, - min_value = 56 - ) - else: - return ParamMetadataTypeInfoInt( - ) - """ - - def testParamMetadataTypeInfoInt(self): - """Test ParamMetadataTypeInfoInt""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_media.py b/test/test_param_metadata_type_info_media.py deleted file mode 100644 index 97ae37d..0000000 --- a/test/test_param_metadata_type_info_media.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_media import ParamMetadataTypeInfoMedia - -class TestParamMetadataTypeInfoMedia(unittest.TestCase): - """ParamMetadataTypeInfoMedia unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoMedia: - """Test ParamMetadataTypeInfoMedia - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoMedia` - """ - model = ParamMetadataTypeInfoMedia() - if include_optional: - return ParamMetadataTypeInfoMedia( - track_id = '', - track_type = '' - ) - else: - return ParamMetadataTypeInfoMedia( - ) - """ - - def testParamMetadataTypeInfoMedia(self): - """Test ParamMetadataTypeInfoMedia""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_string.py b/test/test_param_metadata_type_info_string.py deleted file mode 100644 index 02e9038..0000000 --- a/test/test_param_metadata_type_info_string.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_string import ParamMetadataTypeInfoString - -class TestParamMetadataTypeInfoString(unittest.TestCase): - """ParamMetadataTypeInfoString unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoString: - """Test ParamMetadataTypeInfoString - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoString` - """ - model = ParamMetadataTypeInfoString() - if include_optional: - return ParamMetadataTypeInfoString( - charset = '', - max_length = 56, - min_length = 56 - ) - else: - return ParamMetadataTypeInfoString( - ) - """ - - def testParamMetadataTypeInfoString(self): - """Test ParamMetadataTypeInfoString""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_source_type.py b/test/test_param_source_type.py deleted file mode 100644 index b70f824..0000000 --- a/test/test_param_source_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_source_type import ParamSourceType - -class TestParamSourceType(unittest.TestCase): - """ParamSourceType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testParamSourceType(self): - """Test ParamSourceType""" - # inst = ParamSourceType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_type.py b/test/test_param_type.py deleted file mode 100644 index aa32223..0000000 --- a/test/test_param_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_type import ParamType - -class TestParamType(unittest.TestCase): - """ParamType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testParamType(self): - """Test ParamType""" - # inst = ParamType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter.py b/test/test_parameter.py deleted file mode 100644 index 0e68c9d..0000000 --- a/test/test_parameter.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter import Parameter - -class TestParameter(unittest.TestCase): - """Parameter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Parameter: - """Test Parameter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Parameter` - """ - model = Parameter() - if include_optional: - return Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - var_field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '' - ) - else: - return Parameter( - ) - """ - - def testParameter(self): - """Test Parameter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter_match.py b/test/test_parameter_match.py deleted file mode 100644 index 0b86ae0..0000000 --- a/test/test_parameter_match.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter_match import ParameterMatch - -class TestParameterMatch(unittest.TestCase): - """ParameterMatch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterMatch: - """Test ParameterMatch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParameterMatch` - """ - model = ParameterMatch() - if include_optional: - return ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ) - ) - else: - return ParameterMatch( - ) - """ - - def testParameterMatch(self): - """Test ParameterMatch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter_metadata.py b/test/test_parameter_metadata.py deleted file mode 100644 index 8755f14..0000000 --- a/test/test_parameter_metadata.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter_metadata import ParameterMetadata - -class TestParameterMetadata(unittest.TestCase): - """ParameterMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterMetadata: - """Test ParameterMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParameterMetadata` - """ - model = ParameterMetadata() - if include_optional: - return ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ParameterMetadata( - ) - """ - - def testParameterMetadata(self): - """Test ParameterMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_params.py b/test/test_params.py deleted file mode 100644 index abfce3c..0000000 --- a/test/test_params.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.params import Params - -class TestParams(unittest.TestCase): - """Params unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Params: - """Test Params - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Params` - """ - model = Params() - if include_optional: - return Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = cyperf.models.file_value.FileValue( - file_name = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '', ), - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '' - ) - else: - return Params( - id = '', - ) - """ - - def testParams(self): - """Test Params""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_params_enum.py b/test/test_params_enum.py deleted file mode 100644 index 0305d82..0000000 --- a/test/test_params_enum.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.params_enum import ParamsEnum - -class TestParamsEnum(unittest.TestCase): - """ParamsEnum unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamsEnum: - """Test ParamsEnum - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamsEnum` - """ - model = ParamsEnum() - if include_optional: - return ParamsEnum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ] - ) - else: - return ParamsEnum( - ) - """ - - def testParamsEnum(self): - """Test ParamsEnum""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payload_meta.py b/test/test_payload_meta.py deleted file mode 100644 index fa751ad..0000000 --- a/test/test_payload_meta.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.payload_meta import PayloadMeta - -class TestPayloadMeta(unittest.TestCase): - """PayloadMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PayloadMeta: - """Test PayloadMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PayloadMeta` - """ - model = PayloadMeta() - if include_optional: - return PayloadMeta( - byte_size = 56, - content_file_url = '', - file_name = '', - location = '', - md5sum = '', - resource_url = '' - ) - else: - return PayloadMeta( - ) - """ - - def testPayloadMeta(self): - """Test PayloadMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payload_metadata.py b/test/test_payload_metadata.py deleted file mode 100644 index 38d6d5f..0000000 --- a/test/test_payload_metadata.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.payload_metadata import PayloadMetadata - -class TestPayloadMetadata(unittest.TestCase): - """PayloadMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PayloadMetadata: - """Test PayloadMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PayloadMetadata` - """ - model = PayloadMetadata() - if include_optional: - return PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '' - ) - else: - return PayloadMetadata( - ) - """ - - def testPayloadMetadata(self): - """Test PayloadMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pep_dut.py b/test/test_pep_dut.py deleted file mode 100644 index de969ef..0000000 --- a/test/test_pep_dut.py +++ /dev/null @@ -1,371 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pep_dut import PepDUT - -class TestPepDUT(unittest.TestCase): - """PepDUT unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PepDUT: - """Test PepDUT - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PepDUT` - """ - model = PepDUT() - if include_optional: - return PepDUT( - auth_method = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = '252.7.188.200', - idp_type = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - is_explicit_proxy = True, - pep_host = '252.7.188.200', - pep_port = 56, - simulated_id_p = cyperf.models.simulated_id_p.SimulatedIdP( - assertion_signature = True, - audience_uri = '', - cert_config = null, - name_id_format = null, - response_signature = True, - signature_algorithm = null, - single_sign_on_url = '', - xml_metadata = [ - 'YQ==' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PepDUT( - ) - """ - - def testPepDUT(self): - """Test PepDUT""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pfs_p2_group.py b/test/test_pfs_p2_group.py deleted file mode 100644 index 93259d4..0000000 --- a/test/test_pfs_p2_group.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pfs_p2_group import PfsP2Group - -class TestPfsP2Group(unittest.TestCase): - """PfsP2Group unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPfsP2Group(self): - """Test PfsP2Group""" - # inst = PfsP2Group() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_plugin.py b/test/test_plugin.py deleted file mode 100644 index 2b9e0b8..0000000 --- a/test/test_plugin.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.plugin import Plugin - -class TestPlugin(unittest.TestCase): - """Plugin unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Plugin: - """Test Plugin - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Plugin` - """ - model = Plugin() - if include_optional: - return Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '' - ) - else: - return Plugin( - ) - """ - - def testPlugin(self): - """Test Plugin""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_plugin_stats.py b/test/test_plugin_stats.py deleted file mode 100644 index 94ab15d..0000000 --- a/test/test_plugin_stats.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.plugin_stats import PluginStats - -class TestPluginStats(unittest.TestCase): - """PluginStats unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PluginStats: - """Test PluginStats - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PluginStats` - """ - model = PluginStats() - if include_optional: - return PluginStats( - plugin = '', - stats = [ - { - 'key' : null - } - ], - version = '' - ) - else: - return PluginStats( - ) - """ - - def testPluginStats(self): - """Test PluginStats""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_port.py b/test/test_port.py deleted file mode 100644 index 8593898..0000000 --- a/test/test_port.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.port import Port - -class TestPort(unittest.TestCase): - """Port unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Port: - """Test Port - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Port` - """ - model = Port() - if include_optional: - return Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - traffic_status = '' - ) - else: - return Port( - ) - """ - - def testPort(self): - """Test Port""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_port_settings.py b/test/test_port_settings.py deleted file mode 100644 index f898387..0000000 --- a/test/test_port_settings.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.port_settings import PortSettings - -class TestPortSettings(unittest.TestCase): - """PortSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortSettings: - """Test PortSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortSettings` - """ - model = PortSettings() - if include_optional: - return PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - effective_ports = cyperf.models.effective_ports.EffectivePorts( - effective_destination_port = '', - effective_forward_proxy_port = '', - effective_server_port = '', ), - forward_proxy_port = 56, - readonly = True, - server_listen_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - forward_proxy_port = 56, - server_listen_port = 56, - ) - """ - - def testPortSettings(self): - """Test PortSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ports_by_controller.py b/test/test_ports_by_controller.py deleted file mode 100644 index db5ecf2..0000000 --- a/test/test_ports_by_controller.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ports_by_controller import PortsByController - -class TestPortsByController(unittest.TestCase): - """PortsByController unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortsByController: - """Test PortsByController - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortsByController` - """ - model = PortsByController() - if include_optional: - return PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '' - ) - else: - return PortsByController( - ) - """ - - def testPortsByController(self): - """Test PortsByController""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ports_by_node.py b/test/test_ports_by_node.py deleted file mode 100644 index 6e69c4e..0000000 --- a/test/test_ports_by_node.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ports_by_node import PortsByNode - -class TestPortsByNode(unittest.TestCase): - """PortsByNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortsByNode: - """Test PortsByNode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortsByNode` - """ - model = PortsByNode() - if include_optional: - return PortsByNode( - compute_node_id = '', - ports = [ - '' - ] - ) - else: - return PortsByNode( - ) - """ - - def testPortsByNode(self): - """Test PortsByNode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prepare_test_operation.py b/test/test_prepare_test_operation.py deleted file mode 100644 index 3fb392e..0000000 --- a/test/test_prepare_test_operation.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prepare_test_operation import PrepareTestOperation - -class TestPrepareTestOperation(unittest.TestCase): - """PrepareTestOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PrepareTestOperation: - """Test PrepareTestOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PrepareTestOperation` - """ - model = PrepareTestOperation() - if include_optional: - return PrepareTestOperation( - options = cyperf.models.prepared_test_options.PreparedTestOptions( - add_activity_meta = True, - datasource_for_ui_views = '', - extra_tags = { - 'key' : [ - '' - ] - }, - filter_by_properties = { - 'key' : '' - }, - format_protocol_name = True, - override_properties = { - 'key' : '' - }, ), - message = '', - new_state = '', - old_state = '', - owner = '', - owner_id = '', - reason = '', - test_id = '', - timestamp = 56 - ) - else: - return PrepareTestOperation( - ) - """ - - def testPrepareTestOperation(self): - """Test PrepareTestOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prepared_test_options.py b/test/test_prepared_test_options.py deleted file mode 100644 index a2a3135..0000000 --- a/test/test_prepared_test_options.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prepared_test_options import PreparedTestOptions - -class TestPreparedTestOptions(unittest.TestCase): - """PreparedTestOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PreparedTestOptions: - """Test PreparedTestOptions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PreparedTestOptions` - """ - model = PreparedTestOptions() - if include_optional: - return PreparedTestOptions( - add_activity_meta = True, - datasource_for_ui_views = '', - extra_tags = { - 'key' : [ - '' - ] - }, - filter_by_properties = { - 'key' : '' - }, - format_protocol_name = True, - override_properties = { - 'key' : '' - } - ) - else: - return PreparedTestOptions( - ) - """ - - def testPreparedTestOptions(self): - """Test PreparedTestOptions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prf_p1_algorithm.py b/test/test_prf_p1_algorithm.py deleted file mode 100644 index 3a19c0e..0000000 --- a/test/test_prf_p1_algorithm.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prf_p1_algorithm import PrfP1Algorithm - -class TestPrfP1Algorithm(unittest.TestCase): - """PrfP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPrfP1Algorithm(self): - """Test PrfP1Algorithm""" - # inst = PrfP1Algorithm() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_protected_subnet_config.py b/test/test_protected_subnet_config.py deleted file mode 100644 index 8e0d55f..0000000 --- a/test/test_protected_subnet_config.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.protected_subnet_config import ProtectedSubnetConfig - -class TestProtectedSubnetConfig(unittest.TestCase): - """ProtectedSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProtectedSubnetConfig: - """Test ProtectedSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProtectedSubnetConfig` - """ - model = ProtectedSubnetConfig() - if include_optional: - return ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf' - ) - else: - return ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf', - ) - """ - - def testProtectedSubnetConfig(self): - """Test ProtectedSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reboot_operation_input.py b/test/test_reboot_operation_input.py deleted file mode 100644 index baa9fc0..0000000 --- a/test/test_reboot_operation_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reboot_operation_input import RebootOperationInput - -class TestRebootOperationInput(unittest.TestCase): - """RebootOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RebootOperationInput: - """Test RebootOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RebootOperationInput` - """ - model = RebootOperationInput() - if include_optional: - return RebootOperationInput( - agents = [ - cyperf.models.agent_to_be_rebooted.AgentToBeRebooted( - agent_id = '', ) - ], - soft_reboot = True - ) - else: - return RebootOperationInput( - ) - """ - - def testRebootOperationInput(self): - """Test RebootOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reboot_ports_operation.py b/test/test_reboot_ports_operation.py deleted file mode 100644 index 7801173..0000000 --- a/test/test_reboot_ports_operation.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reboot_ports_operation import RebootPortsOperation - -class TestRebootPortsOperation(unittest.TestCase): - """RebootPortsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RebootPortsOperation: - """Test RebootPortsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RebootPortsOperation` - """ - model = RebootPortsOperation() - if include_optional: - return RebootPortsOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ] - ) - else: - return RebootPortsOperation( - ) - """ - - def testRebootPortsOperation(self): - """Test RebootPortsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reference.py b/test/test_reference.py deleted file mode 100644 index c8ab40c..0000000 --- a/test/test_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reference import Reference - -class TestReference(unittest.TestCase): - """Reference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Reference: - """Test Reference - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Reference` - """ - model = Reference() - if include_optional: - return Reference( - type = '', - value = '' - ) - else: - return Reference( - ) - """ - - def testReference(self): - """Test Reference""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_regex_match.py b/test/test_regex_match.py deleted file mode 100644 index 057ab0e..0000000 --- a/test/test_regex_match.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.regex_match import RegexMatch - -class TestRegexMatch(unittest.TestCase): - """RegexMatch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RegexMatch: - """Test RegexMatch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RegexMatch` - """ - model = RegexMatch() - if include_optional: - return RegexMatch( - patterns = [ - '' - ] - ) - else: - return RegexMatch( - ) - """ - - def testRegexMatch(self): - """Test RegexMatch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_release_operation_input.py b/test/test_release_operation_input.py deleted file mode 100644 index 12acc4c..0000000 --- a/test/test_release_operation_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.release_operation_input import ReleaseOperationInput - -class TestReleaseOperationInput(unittest.TestCase): - """ReleaseOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReleaseOperationInput: - """Test ReleaseOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReleaseOperationInput` - """ - model = ReleaseOperationInput() - if include_optional: - return ReleaseOperationInput( - agents_data = [ - cyperf.models.agent_release.AgentRelease( - agent_id = '', ) - ], - session_id = '' - ) - else: - return ReleaseOperationInput( - ) - """ - - def testReleaseOperationInput(self): - """Test ReleaseOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_remote_access.py b/test/test_remote_access.py deleted file mode 100644 index 0c0094d..0000000 --- a/test/test_remote_access.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.remote_access import RemoteAccess - -class TestRemoteAccess(unittest.TestCase): - """RemoteAccess unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RemoteAccess: - """Test RemoteAccess - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RemoteAccess` - """ - model = RemoteAccess() - if include_optional: - return RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_start = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56 - ) - else: - return RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56, - ) - """ - - def testRemoteAccess(self): - """Test RemoteAccess""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_remote_subnet_config.py b/test/test_remote_subnet_config.py deleted file mode 100644 index aba3aa0..0000000 --- a/test/test_remote_subnet_config.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.remote_subnet_config import RemoteSubnetConfig - -class TestRemoteSubnetConfig(unittest.TestCase): - """RemoteSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RemoteSubnetConfig: - """Test RemoteSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RemoteSubnetConfig` - """ - model = RemoteSubnetConfig() - if include_optional: - return RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf' - ) - else: - return RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf', - ) - """ - - def testRemoteSubnetConfig(self): - """Test RemoteSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rename_input.py b/test/test_rename_input.py deleted file mode 100644 index 5961d32..0000000 --- a/test/test_rename_input.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rename_input import RenameInput - -class TestRenameInput(unittest.TestCase): - """RenameInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RenameInput: - """Test RenameInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RenameInput` - """ - model = RenameInput() - if include_optional: - return RenameInput( - new_action_name = '', - old_action_name = '' - ) - else: - return RenameInput( - ) - """ - - def testRenameInput(self): - """Test RenameInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reorder_action_input.py b/test/test_reorder_action_input.py deleted file mode 100644 index 75dbebf..0000000 --- a/test/test_reorder_action_input.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reorder_action_input import ReorderActionInput - -class TestReorderActionInput(unittest.TestCase): - """ReorderActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReorderActionInput: - """Test ReorderActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReorderActionInput` - """ - model = ReorderActionInput() - if include_optional: - return ReorderActionInput( - action_idx = 56, - action_name = '' - ) - else: - return ReorderActionInput( - ) - """ - - def testReorderActionInput(self): - """Test ReorderActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reorder_exchanges_input.py b/test/test_reorder_exchanges_input.py deleted file mode 100644 index 3946765..0000000 --- a/test/test_reorder_exchanges_input.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reorder_exchanges_input import ReorderExchangesInput - -class TestReorderExchangesInput(unittest.TestCase): - """ReorderExchangesInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReorderExchangesInput: - """Test ReorderExchangesInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReorderExchangesInput` - """ - model = ReorderExchangesInput() - if include_optional: - return ReorderExchangesInput( - action_name = '', - exchanges_order = [ - cyperf.models.exchange_order.ExchangeOrder( - exchange_id = '', - exchange_idx = 56, ) - ], - flow_idx = 56 - ) - else: - return ReorderExchangesInput( - ) - """ - - def testReorderExchangesInput(self): - """Test ReorderExchangesInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_replay_capture.py b/test/test_replay_capture.py deleted file mode 100644 index 50fc4dc..0000000 --- a/test/test_replay_capture.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.replay_capture import ReplayCapture - -class TestReplayCapture(unittest.TestCase): - """ReplayCapture unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReplayCapture: - """Test ReplayCapture - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReplayCapture` - """ - model = ReplayCapture() - if include_optional: - return ReplayCapture( - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - owner = '', - owner_id = '' - ) - else: - return ReplayCapture( - ) - """ - - def testReplayCapture(self): - """Test ReplayCapture""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reports_api.py b/test/test_reports_api.py deleted file mode 100644 index 51b86ab..0000000 --- a/test/test_reports_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.reports_api import ReportsApi - - -class TestReportsApi(unittest.TestCase): - """ReportsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ReportsApi() - - def tearDown(self) -> None: - pass - - def test_download_pdf(self) -> None: - """Test case for download_pdf - - """ - pass - - def test_get_result_download_csv_by_id(self) -> None: - """Test case for get_result_download_csv_by_id - - """ - pass - - def test_poll_result_generate_csv(self) -> None: - """Test case for poll_result_generate_csv - - """ - pass - - def test_poll_result_generate_pdf(self) -> None: - """Test case for poll_result_generate_pdf - - """ - pass - - def test_start_result_generate_csv(self) -> None: - """Test case for start_result_generate_csv - - """ - pass - - def test_start_result_generate_pdf(self) -> None: - """Test case for start_result_generate_pdf - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_required_file_types.py b/test/test_required_file_types.py deleted file mode 100644 index e9f600b..0000000 --- a/test/test_required_file_types.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.required_file_types import RequiredFileTypes - -class TestRequiredFileTypes(unittest.TestCase): - """RequiredFileTypes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RequiredFileTypes: - """Test RequiredFileTypes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RequiredFileTypes` - """ - model = RequiredFileTypes() - if include_optional: - return RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True - ) - else: - return RequiredFileTypes( - ) - """ - - def testRequiredFileTypes(self): - """Test RequiredFileTypes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reserve_operation_input.py b/test/test_reserve_operation_input.py deleted file mode 100644 index 3c21316..0000000 --- a/test/test_reserve_operation_input.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reserve_operation_input import ReserveOperationInput - -class TestReserveOperationInput(unittest.TestCase): - """ReserveOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReserveOperationInput: - """Test ReserveOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReserveOperationInput` - """ - model = ReserveOperationInput() - if include_optional: - return ReserveOperationInput( - agents_data = [ - cyperf.models.agent_reservation.AgentReservation( - agent_id = '', - agent_payload_names = [ - '' - ], - general_purpose_cpu_percent = 56, - interfaces = [ - '' - ], - ip_address_version_used = '', - optimization_mode = '', ) - ], - force = True, - owner = '', - owner_id = '', - payloads = { - 'key' : cyperf.models.payload_meta.PayloadMeta( - byte_size = 56, - content_file_url = '', - file_name = '', - location = '', - md5sum = '', - resource_url = '', ) - }, - session_id = '', - session_name = '' - ) - else: - return ReserveOperationInput( - ) - """ - - def testReserveOperationInput(self): - """Test ReserveOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_result_file_metadata.py b/test/test_result_file_metadata.py deleted file mode 100644 index eebd4ad..0000000 --- a/test/test_result_file_metadata.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.result_file_metadata import ResultFileMetadata - -class TestResultFileMetadata(unittest.TestCase): - """ResultFileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultFileMetadata: - """Test ResultFileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultFileMetadata` - """ - model = ResultFileMetadata() - if include_optional: - return ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '' - ) - else: - return ResultFileMetadata( - ) - """ - - def testResultFileMetadata(self): - """Test ResultFileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_result_metadata.py b/test/test_result_metadata.py deleted file mode 100644 index ec67e6d..0000000 --- a/test/test_result_metadata.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.result_metadata import ResultMetadata - -class TestResultMetadata(unittest.TestCase): - """ResultMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultMetadata: - """Test ResultMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultMetadata` - """ - model = ResultMetadata() - if include_optional: - return ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = None, - download_diagnostic = None, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ] - ) - else: - return ResultMetadata( - ) - """ - - def testResultMetadata(self): - """Test ResultMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_results_group.py b/test/test_results_group.py deleted file mode 100644 index 7ff2d8f..0000000 --- a/test/test_results_group.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.results_group import ResultsGroup - -class TestResultsGroup(unittest.TestCase): - """ResultsGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultsGroup: - """Test ResultsGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultsGroup` - """ - model = ResultsGroup() - if include_optional: - return ResultsGroup( - name = '', - results = [ - '' - ] - ) - else: - return ResultsGroup( - ) - """ - - def testResultsGroup(self): - """Test ResultsGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_encryption_mode.py b/test/test_rtp_encryption_mode.py deleted file mode 100644 index 7d41eae..0000000 --- a/test/test_rtp_encryption_mode.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_encryption_mode import RTPEncryptionMode - -class TestRTPEncryptionMode(unittest.TestCase): - """RTPEncryptionMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRTPEncryptionMode(self): - """Test RTPEncryptionMode""" - # inst = RTPEncryptionMode() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_profile.py b/test/test_rtp_profile.py deleted file mode 100644 index 68ddc5e..0000000 --- a/test/test_rtp_profile.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_profile import RTPProfile - -class TestRTPProfile(unittest.TestCase): - """RTPProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RTPProfile: - """Test RTPProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RTPProfile` - """ - model = RTPProfile() - if include_optional: - return RTPProfile( - encryption_mode = 'ZOOM', - mos_mode = 'DISABLED', - profile_id = '' - ) - else: - return RTPProfile( - encryption_mode = 'ZOOM', - mos_mode = 'DISABLED', - profile_id = '', - ) - """ - - def testRTPProfile(self): - """Test RTPProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_profile_meta.py b/test/test_rtp_profile_meta.py deleted file mode 100644 index 52f6a5a..0000000 --- a/test/test_rtp_profile_meta.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_profile_meta import RTPProfileMeta - -class TestRTPProfileMeta(unittest.TestCase): - """RTPProfileMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RTPProfileMeta: - """Test RTPProfileMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RTPProfileMeta` - """ - model = RTPProfileMeta() - if include_optional: - return RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True - ) - else: - return RTPProfileMeta( - ) - """ - - def testRTPProfileMeta(self): - """Test RTPProfileMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_save_config_operation.py b/test/test_save_config_operation.py deleted file mode 100644 index 6204a5b..0000000 --- a/test/test_save_config_operation.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.save_config_operation import SaveConfigOperation - -class TestSaveConfigOperation(unittest.TestCase): - """SaveConfigOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SaveConfigOperation: - """Test SaveConfigOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SaveConfigOperation` - """ - model = SaveConfigOperation() - if include_optional: - return SaveConfigOperation( - name = '' - ) - else: - return SaveConfigOperation( - ) - """ - - def testSaveConfigOperation(self): - """Test SaveConfigOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_scenario.py b/test/test_scenario.py deleted file mode 100644 index 4bd549c..0000000 --- a/test/test_scenario.py +++ /dev/null @@ -1,451 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.scenario import Scenario - -class TestScenario(unittest.TestCase): - """Scenario unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Scenario: - """Test Scenario - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Scenario` - """ - model = Scenario() - if include_optional: - return Scenario( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Scenario( - ) - """ - - def testScenario(self): - """Test Scenario""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_secondary_objective.py b/test/test_secondary_objective.py deleted file mode 100644 index b085c58..0000000 --- a/test/test_secondary_objective.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.secondary_objective import SecondaryObjective - -class TestSecondaryObjective(unittest.TestCase): - """SecondaryObjective unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecondaryObjective: - """Test SecondaryObjective - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SecondaryObjective` - """ - model = SecondaryObjective() - if include_optional: - return SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - max_simulated_users_per_interval = 56, - objective_unit = '', - objective_value = 1.337, - type = 'Simulated users' - ) - else: - return SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - objective_unit = '', - objective_value = 1.337, - type = 'Simulated users', - ) - """ - - def testSecondaryObjective(self): - """Test SecondaryObjective""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_segment_type.py b/test/test_segment_type.py deleted file mode 100644 index 5126fb8..0000000 --- a/test/test_segment_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.segment_type import SegmentType - -class TestSegmentType(unittest.TestCase): - """SegmentType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSegmentType(self): - """Test SegmentType""" - # inst = SegmentType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_selected_env.py b/test/test_selected_env.py deleted file mode 100644 index 19cf20f..0000000 --- a/test/test_selected_env.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.selected_env import SelectedEnv - -class TestSelectedEnv(unittest.TestCase): - """SelectedEnv unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelectedEnv: - """Test SelectedEnv - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SelectedEnv` - """ - model = SelectedEnv() - if include_optional: - return SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - token = '' - ) - else: - return SelectedEnv( - ) - """ - - def testSelectedEnv(self): - """Test SelectedEnv""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session.py b/test/test_session.py deleted file mode 100644 index 8ab680f..0000000 --- a/test/test_session.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session import Session - -class TestSession(unittest.TestCase): - """Session unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Session: - """Test Session - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Session` - """ - model = Session() - if include_optional: - return Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ) - ) - else: - return Session( - ) - """ - - def testSession(self): - """Test Session""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session_reuse_method_tls12.py b/test/test_session_reuse_method_tls12.py deleted file mode 100644 index ffcf13e..0000000 --- a/test/test_session_reuse_method_tls12.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 - -class TestSessionReuseMethodTLS12(unittest.TestCase): - """SessionReuseMethodTLS12 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSessionReuseMethodTLS12(self): - """Test SessionReuseMethodTLS12""" - # inst = SessionReuseMethodTLS12() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session_reuse_method_tls13.py b/test/test_session_reuse_method_tls13.py deleted file mode 100644 index 925b372..0000000 --- a/test/test_session_reuse_method_tls13.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 - -class TestSessionReuseMethodTLS13(unittest.TestCase): - """SessionReuseMethodTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSessionReuseMethodTLS13(self): - """Test SessionReuseMethodTLS13""" - # inst = SessionReuseMethodTLS13() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sessions_api.py b/test/test_sessions_api.py deleted file mode 100644 index a806656..0000000 --- a/test/test_sessions_api.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.sessions_api import SessionsApi - - -class TestSessionsApi(unittest.TestCase): - """SessionsApi unit test stubs""" - - def setUp(self) -> None: - self.api = SessionsApi() - - def tearDown(self) -> None: - pass - - def test_create_session_meta(self) -> None: - """Test case for create_session_meta - - """ - pass - - def test_create_sessions(self) -> None: - """Test case for create_sessions - - """ - pass - - def test_delete_session(self) -> None: - """Test case for delete_session - - """ - pass - - def test_delete_session_meta(self) -> None: - """Test case for delete_session_meta - - """ - pass - - def test_get_config_docs(self) -> None: - """Test case for get_config_docs - - """ - pass - - def test_get_config_granular_stats(self) -> None: - """Test case for get_config_granular_stats - - """ - pass - - def test_get_config_granular_stats_filters(self) -> None: - """Test case for get_config_granular_stats_filters - - """ - pass - - def test_get_session_by_id(self) -> None: - """Test case for get_session_by_id - - """ - pass - - def test_get_session_config(self) -> None: - """Test case for get_session_config - - """ - pass - - def test_get_session_meta(self) -> None: - """Test case for get_session_meta - - """ - pass - - def test_get_session_meta_by_id(self) -> None: - """Test case for get_session_meta_by_id - - """ - pass - - def test_get_session_test(self) -> None: - """Test case for get_session_test - - """ - pass - - def test_get_sessions(self) -> None: - """Test case for get_sessions - - """ - pass - - def test_patch_session(self) -> None: - """Test case for patch_session - - """ - pass - - def test_patch_session_meta(self) -> None: - """Test case for patch_session_meta - - """ - pass - - def test_patch_session_test(self) -> None: - """Test case for patch_session_test - - """ - pass - - def test_poll_config_add_applications(self) -> None: - """Test case for poll_config_add_applications - - """ - pass - - def test_poll_session_config_granular_stats_default_dashboards(self) -> None: - """Test case for poll_session_config_granular_stats_default_dashboards - - """ - pass - - def test_poll_session_config_save(self) -> None: - """Test case for poll_session_config_save - - """ - pass - - def test_poll_session_load_config(self) -> None: - """Test case for poll_session_load_config - - """ - pass - - def test_poll_session_prepare_test(self) -> None: - """Test case for poll_session_prepare_test - - """ - pass - - def test_poll_session_test_end(self) -> None: - """Test case for poll_session_test_end - - """ - pass - - def test_poll_session_test_init(self) -> None: - """Test case for poll_session_test_init - - """ - pass - - def test_poll_session_touch(self) -> None: - """Test case for poll_session_touch - - """ - pass - - def test_poll_sessions_batch_delete(self) -> None: - """Test case for poll_sessions_batch_delete - - """ - pass - - def test_start_config_add_applications(self) -> None: - """Test case for start_config_add_applications - - """ - pass - - def test_start_session_config_granular_stats_default_dashboards(self) -> None: - """Test case for start_session_config_granular_stats_default_dashboards - - """ - pass - - def test_start_session_config_save(self) -> None: - """Test case for start_session_config_save - - """ - pass - - def test_start_session_load_config(self) -> None: - """Test case for start_session_load_config - - """ - pass - - def test_start_session_prepare_test(self) -> None: - """Test case for start_session_prepare_test - - """ - pass - - def test_start_session_test_end(self) -> None: - """Test case for start_session_test_end - - """ - pass - - def test_start_session_test_init(self) -> None: - """Test case for start_session_test_init - - """ - pass - - def test_start_session_touch(self) -> None: - """Test case for start_session_touch - - """ - pass - - def test_start_sessions_batch_delete(self) -> None: - """Test case for start_sessions_batch_delete - - """ - pass - - def test_update_session(self) -> None: - """Test case for update_session - - """ - pass - - def test_update_session_config(self) -> None: - """Test case for update_session_config - - """ - pass - - def test_update_session_meta(self) -> None: - """Test case for update_session_meta - - """ - pass - - def test_update_session_test(self) -> None: - """Test case for update_session_test - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_aggregation_mode_operation.py b/test/test_set_aggregation_mode_operation.py deleted file mode 100644 index 2cfc0af..0000000 --- a/test/test_set_aggregation_mode_operation.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation - -class TestSetAggregationModeOperation(unittest.TestCase): - """SetAggregationModeOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetAggregationModeOperation: - """Test SetAggregationModeOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetAggregationModeOperation` - """ - model = SetAggregationModeOperation() - if include_optional: - return SetAggregationModeOperation( - aggregated = True, - controllers = [ - cyperf.models.nodes_by_controller.NodesByController( - compute_nodes = [ - '' - ], - controller_id = '', ) - ] - ) - else: - return SetAggregationModeOperation( - ) - """ - - def testSetAggregationModeOperation(self): - """Test SetAggregationModeOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_app_operation.py b/test/test_set_app_operation.py deleted file mode 100644 index 2df4c77..0000000 --- a/test/test_set_app_operation.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_app_operation import SetAppOperation - -class TestSetAppOperation(unittest.TestCase): - """SetAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetAppOperation: - """Test SetAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetAppOperation` - """ - model = SetAppOperation() - if include_optional: - return SetAppOperation( - app_id = '', - controllers = [ - '' - ], - force = True - ) - else: - return SetAppOperation( - ) - """ - - def testSetAppOperation(self): - """Test SetAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_dpdk_mode_operation_input.py b/test/test_set_dpdk_mode_operation_input.py deleted file mode 100644 index 86a72fc..0000000 --- a/test/test_set_dpdk_mode_operation_input.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput - -class TestSetDpdkModeOperationInput(unittest.TestCase): - """SetDpdkModeOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetDpdkModeOperationInput: - """Test SetDpdkModeOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetDpdkModeOperationInput` - """ - model = SetDpdkModeOperationInput() - if include_optional: - return SetDpdkModeOperationInput( - agent_ids = [ - '' - ], - enabled = True - ) - else: - return SetDpdkModeOperationInput( - ) - """ - - def testSetDpdkModeOperationInput(self): - """Test SetDpdkModeOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_link_state_operation.py b/test/test_set_link_state_operation.py deleted file mode 100644 index 899ea85..0000000 --- a/test/test_set_link_state_operation.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_link_state_operation import SetLinkStateOperation - -class TestSetLinkStateOperation(unittest.TestCase): - """SetLinkStateOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetLinkStateOperation: - """Test SetLinkStateOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetLinkStateOperation` - """ - model = SetLinkStateOperation() - if include_optional: - return SetLinkStateOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ], - link = 'DOWN' - ) - else: - return SetLinkStateOperation( - ) - """ - - def testSetLinkStateOperation(self): - """Test SetLinkStateOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_ntp_operation_input.py b/test/test_set_ntp_operation_input.py deleted file mode 100644 index ac6adea..0000000 --- a/test/test_set_ntp_operation_input.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_ntp_operation_input import SetNtpOperationInput - -class TestSetNtpOperationInput(unittest.TestCase): - """SetNtpOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetNtpOperationInput: - """Test SetNtpOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetNtpOperationInput` - """ - model = SetNtpOperationInput() - if include_optional: - return SetNtpOperationInput( - agent_ids = [ - '' - ], - servers = [ - '' - ] - ) - else: - return SetNtpOperationInput( - ) - """ - - def testSetNtpOperationInput(self): - """Test SetNtpOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_simulated_id_p.py b/test/test_simulated_id_p.py deleted file mode 100644 index e62e30d..0000000 --- a/test/test_simulated_id_p.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.simulated_id_p import SimulatedIdP - -class TestSimulatedIdP(unittest.TestCase): - """SimulatedIdP unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimulatedIdP: - """Test SimulatedIdP - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SimulatedIdP` - """ - model = SimulatedIdP() - if include_optional: - return SimulatedIdP( - assertion_signature = True, - audience_uri = '', - cert_config = cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ), - name_id_format = 'emailAddress', - response_signature = True, - signature_algorithm = 'SHA256_SIGN', - single_sign_on_url = '', - xml_metadata = [ - 'YQ==' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return SimulatedIdP( - assertion_signature = True, - audience_uri = '', - name_id_format = 'emailAddress', - response_signature = True, - single_sign_on_url = '', - ) - """ - - def testSimulatedIdP(self): - """Test SimulatedIdP""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_snapshot.py b/test/test_snapshot.py deleted file mode 100644 index 0c67c07..0000000 --- a/test/test_snapshot.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.snapshot import Snapshot - -class TestSnapshot(unittest.TestCase): - """Snapshot unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Snapshot: - """Test Snapshot - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Snapshot` - """ - model = Snapshot() - if include_optional: - return Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ] - ) - else: - return Snapshot( - ) - """ - - def testSnapshot(self): - """Test Snapshot""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sort_body_field.py b/test/test_sort_body_field.py deleted file mode 100644 index 8d8d7b7..0000000 --- a/test/test_sort_body_field.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.sort_body_field import SortBodyField - -class TestSortBodyField(unittest.TestCase): - """SortBodyField unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SortBodyField: - """Test SortBodyField - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SortBodyField` - """ - model = SortBodyField() - if include_optional: - return SortBodyField( - var_field = '', - order = '' - ) - else: - return SortBodyField( - ) - """ - - def testSortBodyField(self): - """Test SortBodyField""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_specific_objective.py b/test/test_specific_objective.py deleted file mode 100644 index 2aabbd5..0000000 --- a/test/test_specific_objective.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.specific_objective import SpecificObjective - -class TestSpecificObjective(unittest.TestCase): - """SpecificObjective unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SpecificObjective: - """Test SpecificObjective - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SpecificObjective` - """ - model = SpecificObjective() - if include_optional: - return SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return SpecificObjective( - max_pending_simulated_users = '80728', - type = 'Simulated users', - unit = '', - id = '', - ) - """ - - def testSpecificObjective(self): - """Test SpecificObjective""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_agents_batch_delete_request_inner.py b/test/test_start_agents_batch_delete_request_inner.py deleted file mode 100644 index dd914f4..0000000 --- a/test/test_start_agents_batch_delete_request_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner - -class TestStartAgentsBatchDeleteRequestInner(unittest.TestCase): - """StartAgentsBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartAgentsBatchDeleteRequestInner: - """Test StartAgentsBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartAgentsBatchDeleteRequestInner` - """ - model = StartAgentsBatchDeleteRequestInner() - if include_optional: - return StartAgentsBatchDeleteRequestInner( - id = '' - ) - else: - return StartAgentsBatchDeleteRequestInner( - ) - """ - - def testStartAgentsBatchDeleteRequestInner(self): - """Test StartAgentsBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_batch_delete_request_inner.py b/test/test_start_batch_delete_request_inner.py deleted file mode 100644 index 6a3f5b1..0000000 --- a/test/test_start_batch_delete_request_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_batch_delete_request_inner import StartBatchDeleteRequestInner - -class TestStartBatchDeleteRequestInner(unittest.TestCase): - """StartBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartBatchDeleteRequestInner: - """Test StartBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartBatchDeleteRequestInner` - """ - model = StartBatchDeleteRequestInner() - if include_optional: - return StartBatchDeleteRequestInner( - id = '' - ) - else: - return StartBatchDeleteRequestInner( - ) - """ - - def testStartBatchDeleteRequestInner(self): - """Test StartBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_root_batch_delete_request_inner.py b/test/test_start_root_batch_delete_request_inner.py deleted file mode 100644 index fa328f2..0000000 --- a/test/test_start_root_batch_delete_request_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_root_batch_delete_request_inner import StartRootBatchDeleteRequestInner - -class TestStartRootBatchDeleteRequestInner(unittest.TestCase): - """StartRootBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartRootBatchDeleteRequestInner: - """Test StartRootBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartRootBatchDeleteRequestInner` - """ - model = StartRootBatchDeleteRequestInner() - if include_optional: - return StartRootBatchDeleteRequestInner( - id = '' - ) - else: - return StartRootBatchDeleteRequestInner( - ) - """ - - def testStartRootBatchDeleteRequestInner(self): - """Test StartRootBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stateless_stream.py b/test/test_stateless_stream.py deleted file mode 100644 index 8ff35ba..0000000 --- a/test/test_stateless_stream.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stateless_stream import StatelessStream - -class TestStatelessStream(unittest.TestCase): - """StatelessStream unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StatelessStream: - """Test StatelessStream - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StatelessStream` - """ - model = StatelessStream() - if include_optional: - return StatelessStream( - client_stream_profile = cyperf.models.stream_profile.StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = null, - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56, ), - direction = 'ClientToServer', - is_flood_stream = True, - server_stream_profile = cyperf.models.stream_profile.StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = null, - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return StatelessStream( - ) - """ - - def testStatelessStream(self): - """Test StatelessStream""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_static_arp_entry.py b/test/test_static_arp_entry.py deleted file mode 100644 index cf7456f..0000000 --- a/test/test_static_arp_entry.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.static_arp_entry import StaticARPEntry - -class TestStaticARPEntry(unittest.TestCase): - """StaticARPEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StaticARPEntry: - """Test StaticARPEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StaticARPEntry` - """ - model = StaticARPEntry() - if include_optional: - return StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '' - ) - else: - return StaticARPEntry( - static_arp_entry_name = 'YBuLd', - id = '', - ) - """ - - def testStaticARPEntry(self): - """Test StaticARPEntry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_statistics_api.py b/test/test_statistics_api.py deleted file mode 100644 index db67bac..0000000 --- a/test/test_statistics_api.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.statistics_api import StatisticsApi - - -class TestStatisticsApi(unittest.TestCase): - """StatisticsApi unit test stubs""" - - def setUp(self) -> None: - self.api = StatisticsApi() - - def tearDown(self) -> None: - pass - - def test_create_stats_plugins(self) -> None: - """Test case for create_stats_plugins - - """ - pass - - def test_delete_stats_plugin(self) -> None: - """Test case for delete_stats_plugin - - """ - pass - - def test_get_result_stat_by_id(self) -> None: - """Test case for get_result_stat_by_id - - """ - pass - - def test_get_result_stats(self) -> None: - """Test case for get_result_stats - - """ - pass - - def test_get_stats_plugins(self) -> None: - """Test case for get_stats_plugins - - """ - pass - - def test_poll_stats_plugins_ingest(self) -> None: - """Test case for poll_stats_plugins_ingest - - """ - pass - - def test_start_stats_plugins_ingest(self) -> None: - """Test case for start_stats_plugins_ingest - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stats_result.py b/test/test_stats_result.py deleted file mode 100644 index dd36631..0000000 --- a/test/test_stats_result.py +++ /dev/null @@ -1,150 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stats_result import StatsResult - -class TestStatsResult(unittest.TestCase): - """StatsResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StatsResult: - """Test StatsResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StatsResult` - """ - model = StatsResult() - if include_optional: - return StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ] - ) - else: - return StatsResult( - ) - """ - - def testStatsResult(self): - """Test StatsResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_steady_segment.py b/test/test_steady_segment.py deleted file mode 100644 index 9484c92..0000000 --- a/test/test_steady_segment.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.steady_segment import SteadySegment - -class TestSteadySegment(unittest.TestCase): - """SteadySegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SteadySegment: - """Test SteadySegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SteadySegment` - """ - model = SteadySegment() - if include_optional: - return SteadySegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337 - ) - else: - return SteadySegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - objective_unit = '', - objective_value = 1.337, - ) - """ - - def testSteadySegment(self): - """Test SteadySegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_step_segment.py b/test/test_step_segment.py deleted file mode 100644 index 0d7b4a2..0000000 --- a/test/test_step_segment.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.step_segment import StepSegment - -class TestStepSegment(unittest.TestCase): - """StepSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StepSegment: - """Test StepSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StepSegment` - """ - model = StepSegment() - if include_optional: - return StepSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - enabled = True, - number_of_steps = 56 - ) - else: - return StepSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - enabled = True, - number_of_steps = 56, - ) - """ - - def testStepSegment(self): - """Test StepSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_direction.py b/test/test_stream_direction.py deleted file mode 100644 index 912b0e7..0000000 --- a/test/test_stream_direction.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_direction import StreamDirection - -class TestStreamDirection(unittest.TestCase): - """StreamDirection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStreamDirection(self): - """Test StreamDirection""" - # inst = StreamDirection() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_payload_type.py b/test/test_stream_payload_type.py deleted file mode 100644 index b046e00..0000000 --- a/test/test_stream_payload_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_payload_type import StreamPayloadType - -class TestStreamPayloadType(unittest.TestCase): - """StreamPayloadType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStreamPayloadType(self): - """Test StreamPayloadType""" - # inst = StreamPayloadType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_profile.py b/test/test_stream_profile.py deleted file mode 100644 index 34940ab..0000000 --- a/test/test_stream_profile.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_profile import StreamProfile - -class TestStreamProfile(unittest.TestCase): - """StreamProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StreamProfile: - """Test StreamProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StreamProfile` - """ - model = StreamProfile() - if include_optional: - return StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = 'RANDOM', - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56 - ) - else: - return StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = 'RANDOM', - ) - """ - - def testStreamProfile(self): - """Test StreamProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_supported_group_tls13.py b/test/test_supported_group_tls13.py deleted file mode 100644 index 622a5e6..0000000 --- a/test/test_supported_group_tls13.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 - -class TestSupportedGroupTLS13(unittest.TestCase): - """SupportedGroupTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSupportedGroupTLS13(self): - """Test SupportedGroupTLS13""" - # inst = SupportedGroupTLS13() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_switch_app_operation.py b/test/test_switch_app_operation.py deleted file mode 100644 index 249f93c..0000000 --- a/test/test_switch_app_operation.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.switch_app_operation import SwitchAppOperation - -class TestSwitchAppOperation(unittest.TestCase): - """SwitchAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SwitchAppOperation: - """Test SwitchAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SwitchAppOperation` - """ - model = SwitchAppOperation() - if include_optional: - return SwitchAppOperation( - app_id = '' - ) - else: - return SwitchAppOperation( - ) - """ - - def testSwitchAppOperation(self): - """Test SwitchAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_system_info.py b/test/test_system_info.py deleted file mode 100644 index c65a468..0000000 --- a/test/test_system_info.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.system_info import SystemInfo - -class TestSystemInfo(unittest.TestCase): - """SystemInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SystemInfo: - """Test SystemInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SystemInfo` - """ - model = SystemInfo() - if include_optional: - return SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ] - ) - else: - return SystemInfo( - ) - """ - - def testSystemInfo(self): - """Test SystemInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tcp_profile.py b/test/test_tcp_profile.py deleted file mode 100644 index 24ecc87..0000000 --- a/test/test_tcp_profile.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tcp_profile import TcpProfile - -class TestTcpProfile(unittest.TestCase): - """TcpProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TcpProfile: - """Test TcpProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TcpProfile` - """ - model = TcpProfile() - if include_optional: - return TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True - ) - else: - return TcpProfile( - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - rx_buffer = 56, - tx_buffer = 56, - ) - """ - - def testTcpProfile(self): - """Test TcpProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_info.py b/test/test_test_info.py deleted file mode 100644 index 8e2bc02..0000000 --- a/test/test_test_info.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.test_info import TestInfo - -class TestTestInfo(unittest.TestCase): - """TestInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestInfo: - """Test TestInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestInfo` - """ - model = TestInfo() - if include_optional: - return TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56 - ) - else: - return TestInfo( - ) - """ - - def testTestInfo(self): - """Test TestInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_operations_api.py b/test/test_test_operations_api.py deleted file mode 100644 index a3aa4af..0000000 --- a/test/test_test_operations_api.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.test_operations_api import TestOperationsApi - - -class TestTestOperationsApi(unittest.TestCase): - """TestOperationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = TestOperationsApi() - - def tearDown(self) -> None: - pass - - def test_poll_test_calibrate_start(self) -> None: - """Test case for poll_test_calibrate_start - - """ - pass - - def test_poll_test_calibrate_stop(self) -> None: - """Test case for poll_test_calibrate_stop - - """ - pass - - def test_poll_test_run_abort(self) -> None: - """Test case for poll_test_run_abort - - """ - pass - - def test_poll_test_run_start(self) -> None: - """Test case for poll_test_run_start - - """ - pass - - def test_poll_test_run_stop(self) -> None: - """Test case for poll_test_run_stop - - """ - pass - - def test_start_test_calibrate_start(self) -> None: - """Test case for start_test_calibrate_start - - """ - pass - - def test_start_test_calibrate_stop(self) -> None: - """Test case for start_test_calibrate_stop - - """ - pass - - def test_start_test_run_abort(self) -> None: - """Test case for start_test_run_abort - - """ - pass - - def test_start_test_run_start(self) -> None: - """Test case for start_test_run_start - - """ - pass - - def test_start_test_run_stop(self) -> None: - """Test case for start_test_run_stop - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_results_api.py b/test/test_test_results_api.py deleted file mode 100644 index 1ddff41..0000000 --- a/test/test_test_results_api.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.test_results_api import TestResultsApi - - -class TestTestResultsApi(unittest.TestCase): - """TestResultsApi unit test stubs""" - - def setUp(self) -> None: - self.api = TestResultsApi() - - def tearDown(self) -> None: - pass - - def test_delete_result(self) -> None: - """Test case for delete_result - - """ - pass - - def test_delete_result_file(self) -> None: - """Test case for delete_result_file - - """ - pass - - def test_get_result_by_id(self) -> None: - """Test case for get_result_by_id - - """ - pass - - def test_get_result_download_all_by_id(self) -> None: - """Test case for get_result_download_all_by_id - - """ - pass - - def test_get_result_download_result_config(self) -> None: - """Test case for get_result_download_result_config - - """ - pass - - def test_get_result_file_by_id(self) -> None: - """Test case for get_result_file_by_id - - """ - pass - - def test_get_result_file_content(self) -> None: - """Test case for get_result_file_content - - """ - pass - - def test_get_result_files(self) -> None: - """Test case for get_result_files - - """ - pass - - def test_get_results(self) -> None: - """Test case for get_results - - """ - pass - - def test_get_results_tags(self) -> None: - """Test case for get_results_tags - - """ - pass - - def test_poll_result_generate_all(self) -> None: - """Test case for poll_result_generate_all - - """ - pass - - def test_poll_result_generate_results(self) -> None: - """Test case for poll_result_generate_results - - """ - pass - - def test_poll_result_load(self) -> None: - """Test case for poll_result_load - - """ - pass - - def test_poll_results_batch_delete(self) -> None: - """Test case for poll_results_batch_delete - - """ - pass - - def test_start_result_generate_all(self) -> None: - """Test case for start_result_generate_all - - """ - pass - - def test_start_result_generate_results(self) -> None: - """Test case for start_result_generate_results - - """ - pass - - def test_start_result_load(self) -> None: - """Test case for start_result_load - - """ - pass - - def test_start_results_batch_delete(self) -> None: - """Test case for start_results_batch_delete - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_state_changed_operation.py b/test/test_test_state_changed_operation.py deleted file mode 100644 index 6c4bd99..0000000 --- a/test/test_test_state_changed_operation.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.test_state_changed_operation import TestStateChangedOperation - -class TestTestStateChangedOperation(unittest.TestCase): - """TestStateChangedOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestStateChangedOperation: - """Test TestStateChangedOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestStateChangedOperation` - """ - model = TestStateChangedOperation() - if include_optional: - return TestStateChangedOperation( - message = '', - new_state = '', - old_state = '', - owner = '', - owner_id = '', - reason = '', - test_id = '', - timestamp = 56 - ) - else: - return TestStateChangedOperation( - ) - """ - - def testTestStateChangedOperation(self): - """Test TestStateChangedOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_time_value.py b/test/test_time_value.py deleted file mode 100644 index ef84f2f..0000000 --- a/test/test_time_value.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.time_value import TimeValue - -class TestTimeValue(unittest.TestCase): - """TimeValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimeValue: - """Test TimeValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimeValue` - """ - model = TimeValue() - if include_optional: - return TimeValue( - now = 56 - ) - else: - return TimeValue( - ) - """ - - def testTimeValue(self): - """Test TimeValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment.py b/test/test_timeline_segment.py deleted file mode 100644 index eec679f..0000000 --- a/test/test_timeline_segment.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment import TimelineSegment - -class TestTimelineSegment(unittest.TestCase): - """TimelineSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegment: - """Test TimelineSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegment` - """ - model = TimelineSegment() - if include_optional: - return TimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337, - primary_objective_unit = '', - primary_objective_value = 1.337, - secondary_objective_values = [ - cyperf.models.objective_value_entry.ObjectiveValueEntry( - unit = '', - value = 1.337, - id = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - primary_objective_unit = '', - primary_objective_value = 1.337, - ) - """ - - def testTimelineSegment(self): - """Test TimelineSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment_base.py b/test/test_timeline_segment_base.py deleted file mode 100644 index 1987aa6..0000000 --- a/test/test_timeline_segment_base.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment_base import TimelineSegmentBase - -class TestTimelineSegmentBase(unittest.TestCase): - """TimelineSegmentBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegmentBase: - """Test TimelineSegmentBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegmentBase` - """ - model = TimelineSegmentBase() - if include_optional: - return TimelineSegmentBase( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '' - ) - else: - return TimelineSegmentBase( - duration = 56, - segment_type = 'SteadySegment', - id = '', - ) - """ - - def testTimelineSegmentBase(self): - """Test TimelineSegmentBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment_union.py b/test/test_timeline_segment_union.py deleted file mode 100644 index 91792b1..0000000 --- a/test/test_timeline_segment_union.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment_union import TimelineSegmentUnion - -class TestTimelineSegmentUnion(unittest.TestCase): - """TimelineSegmentUnion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegmentUnion: - """Test TimelineSegmentUnion - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegmentUnion` - """ - model = TimelineSegmentUnion() - if include_optional: - return TimelineSegmentUnion( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337, - enabled = True, - number_of_steps = 56 - ) - else: - return TimelineSegmentUnion( - duration = 56, - segment_type = 'SteadySegment', - id = '', - objective_unit = '', - objective_value = 1.337, - enabled = True, - number_of_steps = 56, - ) - """ - - def testTimelineSegmentUnion(self): - """Test TimelineSegmentUnion""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timers.py b/test/test_timers.py deleted file mode 100644 index 7de77c3..0000000 --- a/test/test_timers.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timers import Timers - -class TestTimers(unittest.TestCase): - """Timers unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Timers: - """Test Timers - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Timers` - """ - model = Timers() - if include_optional: - return Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56 - ) - else: - return Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56, - ) - """ - - def testTimers(self): - """Test Timers""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tls_profile.py b/test/test_tls_profile.py deleted file mode 100644 index a84939e..0000000 --- a/test/test_tls_profile.py +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tls_profile import TLSProfile - -class TestTLSProfile(unittest.TestCase): - """TLSProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TLSProfile: - """Test TLSProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TLSProfile` - """ - model = TLSProfile() - if include_optional: - return TLSProfile( - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - cipher = 'ECDHE-RSA-AES256-GCM-SHA384', - cipher12 = 'ECDHE-RSA-AES256-GCM-SHA384', - cipher13 = 'AES-256-GCM-SHA384', - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = 'DISABLE', - session_reuse_method12 = 'DISABLE', - session_reuse_method13 = 'DISABLE', - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE' - ) - else: - return TLSProfile( - profile_id = '', - sni_enabled = True, - tls12_enabled = True, - version = 'NONE', - ) - """ - - def testTLSProfile(self): - """Test TLSProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_track.py b/test/test_track.py deleted file mode 100644 index 41eee21..0000000 --- a/test/test_track.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.track import Track - -class TestTrack(unittest.TestCase): - """Track unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Track: - """Test Track - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Track` - """ - model = Track() - if include_optional: - return Track( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Track( - id = '', - ) - """ - - def testTrack(self): - """Test Track""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_track_type.py b/test/test_track_type.py deleted file mode 100644 index b61cd48..0000000 --- a/test/test_track_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.track_type import TrackType - -class TestTrackType(unittest.TestCase): - """TrackType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTrackType(self): - """Test TrackType""" - # inst = TrackType() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_agent_info.py b/test/test_traffic_agent_info.py deleted file mode 100644 index 9b4a058..0000000 --- a/test/test_traffic_agent_info.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_agent_info import TrafficAgentInfo - -class TestTrafficAgentInfo(unittest.TestCase): - """TrafficAgentInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficAgentInfo: - """Test TrafficAgentInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficAgentInfo` - """ - model = TrafficAgentInfo() - if include_optional: - return TrafficAgentInfo( - type = '', - version = '' - ) - else: - return TrafficAgentInfo( - ) - """ - - def testTrafficAgentInfo(self): - """Test TrafficAgentInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_profile_base.py b/test/test_traffic_profile_base.py deleted file mode 100644 index e11605e..0000000 --- a/test/test_traffic_profile_base.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_profile_base import TrafficProfileBase - -class TestTrafficProfileBase(unittest.TestCase): - """TrafficProfileBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficProfileBase: - """Test TrafficProfileBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficProfileBase` - """ - model = TrafficProfileBase() - if include_optional: - return TrafficProfileBase( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TrafficProfileBase( - ) - """ - - def testTrafficProfileBase(self): - """Test TrafficProfileBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_settings.py b/test/test_traffic_settings.py deleted file mode 100644 index db5e37a..0000000 --- a/test/test_traffic_settings.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_settings import TrafficSettings - -class TestTrafficSettings(unittest.TestCase): - """TrafficSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficSettings: - """Test TrafficSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficSettings` - """ - model = TrafficSettings() - if include_optional: - return TrafficSettings( - default_transport_profile = None, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TrafficSettings( - ) - """ - - def testTrafficSettings(self): - """Test TrafficSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py deleted file mode 100644 index c9f7a01..0000000 --- a/test/test_transport_profile.py +++ /dev/null @@ -1,479 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.transport_profile import TransportProfile - -class TestTransportProfile(unittest.TestCase): - """TransportProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TransportProfile: - """Test TransportProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TransportProfile` - """ - model = TransportProfile() - if include_optional: - return TransportProfile( - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - client_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - ip_tos = 56, - rtp_profile = cyperf.models.rtp_profile.RTPProfile( - encryption_mode = null, - mos_mode = null, - profile_id = '', ), - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - server_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - vlan_prio = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - l4_profile_name = '' - ) - else: - return TransportProfile( - l4_profile_name = '', - ) - """ - - def testTransportProfile(self): - """Test TransportProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py deleted file mode 100644 index c7807db..0000000 --- a/test/test_transport_profile_base.py +++ /dev/null @@ -1,477 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.transport_profile_base import TransportProfileBase - -class TestTransportProfileBase(unittest.TestCase): - """TransportProfileBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TransportProfileBase: - """Test TransportProfileBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TransportProfileBase` - """ - model = TransportProfileBase() - if include_optional: - return TransportProfileBase( - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - client_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - ip_tos = 56, - rtp_profile = cyperf.models.rtp_profile.RTPProfile( - encryption_mode = null, - mos_mode = null, - profile_id = '', ), - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - server_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - vlan_prio = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TransportProfileBase( - ) - """ - - def testTransportProfileBase(self): - """Test TransportProfileBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_range.py b/test/test_tunnel_range.py deleted file mode 100644 index 14255fe..0000000 --- a/test/test_tunnel_range.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_range import TunnelRange - -class TestTunnelRange(unittest.TestCase): - """TunnelRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelRange: - """Test TunnelRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelRange` - """ - model = TunnelRange() - if include_optional: - return TunnelRange( - cisco_any_connect_settings = None, - dcp_request_timeout = 56, - dns_resolver = cyperf.models.dns_resolver.DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ], ), - f5_settings = None, - fortinet_settings = None, - pangp_settings = None, - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - tunnel_establishment_timeout = 56, - vendor_type = 'CISCO_ANY_CONNECT', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelRange( - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - vendor_type = 'CISCO_ANY_CONNECT', - ) - """ - - def testTunnelRange(self): - """Test TunnelRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_settings.py b/test/test_tunnel_settings.py deleted file mode 100644 index e23b58c..0000000 --- a/test/test_tunnel_settings.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_settings import TunnelSettings - -class TestTunnelSettings(unittest.TestCase): - """TunnelSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelSettings: - """Test TunnelSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelSettings` - """ - model = TunnelSettings() - if include_optional: - return TunnelSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelSettings( - ) - """ - - def testTunnelSettings(self): - """Test TunnelSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_stack.py b/test/test_tunnel_stack.py deleted file mode 100644 index edb794e..0000000 --- a/test/test_tunnel_stack.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_stack import TunnelStack - -class TestTunnelStack(unittest.TestCase): - """TunnelStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelStack: - """Test TunnelStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelStack` - """ - model = TunnelStack() - if include_optional: - return TunnelStack( - inner_ip_range = cyperf.models.inner_ip_range.InnerIPRange( - network_tags = [ - '' - ], ), - outer_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - tunnel_range = cyperf.models.tunnel_range.TunnelRange( - cisco_any_connect_settings = null, - dcp_request_timeout = 56, - dns_resolver = null, - f5_settings = null, - fortinet_settings = null, - pangp_settings = null, - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - tunnel_establishment_timeout = 56, - vendor_type = 'CISCO_ANY_CONNECT', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - tunnel_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelStack( - tunnel_stack_name = 'YBuLd', - id = '', - ) - """ - - def testTunnelStack(self): - """Test TunnelStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_array_v2_metadata.py b/test/test_type_array_v2_metadata.py deleted file mode 100644 index 77c42f0..0000000 --- a/test/test_type_array_v2_metadata.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_array_v2_metadata import TypeArrayV2Metadata - -class TestTypeArrayV2Metadata(unittest.TestCase): - """TypeArrayV2Metadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeArrayV2Metadata: - """Test TypeArrayV2Metadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeArrayV2Metadata` - """ - model = TypeArrayV2Metadata() - if include_optional: - return TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ] - ) - else: - return TypeArrayV2Metadata( - ) - """ - - def testTypeArrayV2Metadata(self): - """Test TypeArrayV2Metadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_info_metadata.py b/test/test_type_info_metadata.py deleted file mode 100644 index cab6652..0000000 --- a/test/test_type_info_metadata.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_info_metadata import TypeInfoMetadata - -class TestTypeInfoMetadata(unittest.TestCase): - """TypeInfoMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeInfoMetadata: - """Test TypeInfoMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeInfoMetadata` - """ - model = TypeInfoMetadata() - if include_optional: - return TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ) - ) - else: - return TypeInfoMetadata( - ) - """ - - def testTypeInfoMetadata(self): - """Test TypeInfoMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_int_metadata.py b/test/test_type_int_metadata.py deleted file mode 100644 index 8f178a8..0000000 --- a/test/test_type_int_metadata.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_int_metadata import TypeIntMetadata - -class TestTypeIntMetadata(unittest.TestCase): - """TypeIntMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeIntMetadata: - """Test TypeIntMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeIntMetadata` - """ - model = TypeIntMetadata() - if include_optional: - return TypeIntMetadata( - max_value = 56, - min_value = 56 - ) - else: - return TypeIntMetadata( - ) - """ - - def testTypeIntMetadata(self): - """Test TypeIntMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_media_metadata.py b/test/test_type_media_metadata.py deleted file mode 100644 index 4a52ef3..0000000 --- a/test/test_type_media_metadata.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_media_metadata import TypeMediaMetadata - -class TestTypeMediaMetadata(unittest.TestCase): - """TypeMediaMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeMediaMetadata: - """Test TypeMediaMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeMediaMetadata` - """ - model = TypeMediaMetadata() - if include_optional: - return TypeMediaMetadata( - track_id = '', - track_type = '' - ) - else: - return TypeMediaMetadata( - ) - """ - - def testTypeMediaMetadata(self): - """Test TypeMediaMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_string_metadata.py b/test/test_type_string_metadata.py deleted file mode 100644 index 91c9f9c..0000000 --- a/test/test_type_string_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_string_metadata import TypeStringMetadata - -class TestTypeStringMetadata(unittest.TestCase): - """TypeStringMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeStringMetadata: - """Test TypeStringMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeStringMetadata` - """ - model = TypeStringMetadata() - if include_optional: - return TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56 - ) - else: - return TypeStringMetadata( - ) - """ - - def testTypeStringMetadata(self): - """Test TypeStringMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_udp_profile.py b/test/test_udp_profile.py deleted file mode 100644 index 2be5772..0000000 --- a/test/test_udp_profile.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.udp_profile import UdpProfile - -class TestUdpProfile(unittest.TestCase): - """UdpProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UdpProfile: - """Test UdpProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UdpProfile` - """ - model = UdpProfile() - if include_optional: - return UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56 - ) - else: - return UdpProfile( - ) - """ - - def testUdpProfile(self): - """Test UdpProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_network_mapping.py b/test/test_update_network_mapping.py deleted file mode 100644 index 92abc06..0000000 --- a/test/test_update_network_mapping.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.update_network_mapping import UpdateNetworkMapping - -class TestUpdateNetworkMapping(unittest.TestCase): - """UpdateNetworkMapping unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdateNetworkMapping: - """Test UpdateNetworkMapping - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdateNetworkMapping` - """ - model = UpdateNetworkMapping() - if include_optional: - return UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ] - ) - else: - return UpdateNetworkMapping( - ) - """ - - def testUpdateNetworkMapping(self): - """Test UpdateNetworkMapping""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_utils_api.py b/test/test_utils_api.py deleted file mode 100644 index 6e77767..0000000 --- a/test/test_utils_api.py +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.utils_api import UtilsApi - - -class TestUtilsApi(unittest.TestCase): - """UtilsApi unit test stubs""" - - def setUp(self) -> None: - self.api = UtilsApi() - - def tearDown(self) -> None: - pass - - def test_check_eulas(self) -> None: - """Test case for check_eulas - - Check if all EULAs are accepted - """ - pass - - def test_get_cert_manager_certificate(self) -> None: - """Test case for get_cert_manager_certificate - - """ - pass - - def test_get_disk_usage(self) -> None: - """Test case for get_disk_usage - - """ - pass - - def test_get_disk_usage_consumer_by_id(self) -> None: - """Test case for get_disk_usage_consumer_by_id - - """ - pass - - def test_get_disk_usage_consumers(self) -> None: - """Test case for get_disk_usage_consumers - - """ - pass - - def test_get_docs(self) -> None: - """Test case for get_docs - - """ - pass - - def test_get_docs_json(self) -> None: - """Test case for get_docs_json - - """ - pass - - def test_get_docs_yaml(self) -> None: - """Test case for get_docs_yaml - - """ - pass - - def test_get_eula(self) -> None: - """Test case for get_eula - - Retrieve EULA detail - """ - pass - - def test_get_log_config(self) -> None: - """Test case for get_log_config - - """ - pass - - def test_get_time(self) -> None: - """Test case for get_time - - """ - pass - - def test_list_eulas(self) -> None: - """Test case for list_eulas - - list of EULAs - """ - pass - - def test_poll_cert_manager_generate(self) -> None: - """Test case for poll_cert_manager_generate - - """ - pass - - def test_poll_cert_manager_upload(self) -> None: - """Test case for poll_cert_manager_upload - - """ - pass - - def test_poll_disk_usage_cleanup_diagnostics(self) -> None: - """Test case for poll_disk_usage_cleanup_diagnostics - - """ - pass - - def test_poll_disk_usage_cleanup_logs(self) -> None: - """Test case for poll_disk_usage_cleanup_logs - - """ - pass - - def test_poll_disk_usage_cleanup_migration(self) -> None: - """Test case for poll_disk_usage_cleanup_migration - - """ - pass - - def test_poll_disk_usage_cleanup_notifications(self) -> None: - """Test case for poll_disk_usage_cleanup_notifications - - """ - pass - - def test_poll_disk_usage_cleanup_results(self) -> None: - """Test case for poll_disk_usage_cleanup_results - - """ - pass - - def test_post_eula(self) -> None: - """Test case for post_eula - - Update properties an EULA - """ - pass - - def test_start_cert_manager_generate(self) -> None: - """Test case for start_cert_manager_generate - - """ - pass - - def test_start_cert_manager_upload(self) -> None: - """Test case for start_cert_manager_upload - - """ - pass - - def test_start_disk_usage_cleanup_diagnostics(self) -> None: - """Test case for start_disk_usage_cleanup_diagnostics - - """ - pass - - def test_start_disk_usage_cleanup_logs(self) -> None: - """Test case for start_disk_usage_cleanup_logs - - """ - pass - - def test_start_disk_usage_cleanup_migration(self) -> None: - """Test case for start_disk_usage_cleanup_migration - - """ - pass - - def test_start_disk_usage_cleanup_notifications(self) -> None: - """Test case for start_disk_usage_cleanup_notifications - - """ - pass - - def test_start_disk_usage_cleanup_results(self) -> None: - """Test case for start_disk_usage_cleanup_results - - """ - pass - - def test_update_log_config(self) -> None: - """Test case for update_log_config - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_validation_message.py b/test/test_validation_message.py deleted file mode 100644 index b94cce6..0000000 --- a/test/test_validation_message.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.validation_message import ValidationMessage - -class TestValidationMessage(unittest.TestCase): - """ValidationMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ValidationMessage: - """Test ValidationMessage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ValidationMessage` - """ - model = ValidationMessage() - if include_optional: - return ValidationMessage( - message = '', - severity = 'WARNING' - ) - else: - return ValidationMessage( - message = '', - severity = 'WARNING', - ) - """ - - def testValidationMessage(self): - """Test ValidationMessage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_version.py b/test/test_version.py deleted file mode 100644 index 31568bf..0000000 --- a/test/test_version.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.version import Version - -class TestVersion(unittest.TestCase): - """Version unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Version: - """Test Version - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Version` - """ - model = Version() - if include_optional: - return Version( - config_service_version = '', - data_model_version = '' - ) - else: - return Version( - ) - """ - - def testVersion(self): - """Test Version""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vlan_range.py b/test/test_vlan_range.py deleted file mode 100644 index 16c3d8f..0000000 --- a/test/test_vlan_range.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vlan_range import VLANRange - -class TestVLANRange(unittest.TestCase): - """VLANRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VLANRange: - """Test VLANRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VLANRange` - """ - model = VLANRange() - if include_optional: - return VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return VLANRange( - vlan_auto = True, - ) - """ - - def testVLANRange(self): - """Test VLANRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main()