From 401086d649cf26dcd92fedf0aeea177a4b6c8c1d Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Mon, 11 Aug 2025 07:22:40 -0600 Subject: [PATCH 01/20] Pull request #33: added wait function for agents Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-34322-move-to-wrapper-based-integration-tests to main Squashed commit of the following: commit 51f671078143913c0223be36fa599ece5aa4bce8 Author: iustmitu Date: Tue Jul 29 12:08:57 2025 +0300 add timeout support commit 2b39d7d2851f1e743248d50a10feb10f6186be85 Author: iustmitu Date: Mon Jul 28 13:54:59 2025 +0300 added wait function for agents --- cyperf/utils.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cyperf/utils.py b/cyperf/utils.py index d2f3f0f..c4b8c1c 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -175,6 +175,28 @@ def assign_agents(self, session, agent_map=None, augment=False, auto_assign=Fals else: ip_net.agent_assignments.by_id = agent_details ip_net.update() + + def wait_until_agents_released(self, agents): + timeout = 180 + poll_interval = 3 + agent_api_instance = cyperf.AgentsApi(self.api_client) + start_time = time.time() + + while True: + running = False + for agent in agents: + current_agent = agent_api_instance.get_agent_by_id(agent.id) + if current_agent.status == "RUNNING": + running = True + break + + if not running: + return + + if time.time() - start_time > timeout: + raise TimeoutError("Timeout reached while waiting for agents to be released.") + + time.sleep(poll_interval) def disable_automatic_network(self, session): for net_profile in session.config.config.network_profiles: From 1c1981975e6e3637465dad8dac6715e74290f1d1 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 13 Aug 2025 06:09:21 -0600 Subject: [PATCH 02/20] Pull request #34: ISGAPPSEC2-34538-have-poll-as-function-on-the-object-instead-of-having-a-lot-of-functions Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34538-have-poll-as-function-on-the-object-instead-of-having-a-lot-of-functions to main Squashed commit of the following: commit 07b0ff5e882cb3a78b45fad6ee6ffe1653302157 Author: iustmitu Date: Wed Aug 6 17:29:44 2025 +0300 regenerated wrapper with no poll methods --- README.md | 81 +- cyperf/__init__.py | 2 + cyperf/api/agents_api.py | 4074 +----- cyperf/api/application_resources_api.py | 10952 +++------------- cyperf/api/authorization_api.py | 6 +- cyperf/api/brokers_api.py | 30 +- cyperf/api/configurations_api.py | 1486 +-- cyperf/api/data_migration_api.py | 514 +- cyperf/api/diagnostics_api.py | 42 +- cyperf/api/license_servers_api.py | 30 +- cyperf/api/licensing_api.py | 114 +- cyperf/api/notifications_api.py | 538 +- cyperf/api/reports_api.py | 556 +- cyperf/api/sessions_api.py | 2939 +---- cyperf/api/statistics_api.py | 287 +- cyperf/api/test_operations_api.py | 1360 +- cyperf/api/test_results_api.py | 1407 +- cyperf/api/utils_api.py | 2259 +--- cyperf/dynamic_models/__init__.py | 2 + cyperf/models/__init__.py | 2 + cyperf/models/action.py | 4 +- cyperf/models/action_base.py | 4 +- cyperf/models/application.py | 19 +- cyperf/models/application_profile.py | 4 +- cyperf/models/attack.py | 15 +- cyperf/models/attack_action.py | 4 +- cyperf/models/attack_profile.py | 4 +- cyperf/models/connection.py | 4 +- cyperf/models/create_app_operation.py | 4 +- cyperf/models/dut_network.py | 16 +- cyperf/models/edit_app_operation.py | 4 +- cyperf/models/metadata.py | 6 +- cyperf/models/parameter.py | 40 +- cyperf/models/pep_dut.py | 8 +- cyperf/models/quic_profile.py | 121 + cyperf/models/quic_version.py | 37 + cyperf/models/scenario.py | 15 +- cyperf/models/supported_group_tls13.py | 1 + cyperf/models/traffic_profile_base.py | 4 +- cyperf/models/transport_profile.py | 13 +- cyperf/models/transport_profile_base.py | 13 +- docs/AgentsApi.md | 1106 -- docs/Application.md | 5 + docs/ApplicationProfile.md | 1 + docs/ApplicationResourcesApi.md | 2260 ---- docs/Attack.md | 3 + docs/AttackProfile.md | 1 + docs/ConfigurationsApi.md | 316 - docs/CreateAppOperation.md | 1 + docs/DataMigrationApi.md | 158 - docs/EditAppOperation.md | 1 + docs/Metadata.md | 2 + docs/NotificationsApi.md | 158 - docs/Parameter.md | 11 +- docs/QUICProfile.md | 35 + docs/QUICVersion.md | 10 + docs/ReportsApi.md | 162 - docs/Scenario.md | 3 + docs/SessionsApi.md | 728 - docs/StatisticsApi.md | 79 - docs/SupportedGroupTLS13.md | 2 + docs/TestOperationsApi.md | 405 - docs/TestResultsApi.md | 322 - docs/TrafficProfileBase.md | 1 + docs/TransportProfile.md | 2 + docs/TransportProfileBase.md | 2 + docs/UtilsApi.md | 553 - test/test_action.py | 1 + test/test_action_base.py | 1 + test/test_action_input.py | 89 +- test/test_action_input_find_param.py | 1 + test/test_action_metadata.py | 89 +- test/test_activation_code_info.py | 1 + test/test_activation_code_list_request.py | 1 + test/test_activation_code_request.py | 1 + test/test_add_action_info.py | 1 + test/test_add_input.py | 89 +- test/test_advanced_settings.py | 1 + test/test_agent.py | 1 + test/test_agent_assignment_by_port.py | 1 + test/test_agent_assignment_details.py | 1 + test/test_agent_assignments.py | 1 + test/test_agent_cpu_info.py | 1 + test/test_agent_features.py | 1 + test/test_agent_optimization_mode.py | 1 + test/test_agent_release.py | 1 + test/test_agent_reservation.py | 1 + test/test_agent_to_be_rebooted.py | 1 + test/test_agents_api.py | 72 +- test/test_agents_group.py | 1 + test/test_api_link.py | 1 + test/test_api_relationship.py | 1 + test/test_app_exchange.py | 1 + test/test_app_flow.py | 1 + test/test_app_flow_desc.py | 1 + test/test_app_flow_input.py | 1 + test/test_app_flow_input_find_param.py | 1 + test/test_app_id.py | 1 + test/test_app_mode.py | 1 + test/test_application.py | 38 + test/test_application_profile.py | 2 + test/test_application_resources_api.py | 147 +- test/test_application_type.py | 159 +- test/test_appsec_app.py | 75 +- test/test_appsec_app_metadata.py | 157 +- test/test_appsec_attack.py | 1 + test/test_appsec_config.py | 1 + test/test_archive_info.py | 1 + test/test_array_v2_element_metadata.py | 1 + test/test_async_context.py | 1 + test/test_async_operation_response.py | 1 + test/test_attack.py | 36 + test/test_attack_action.py | 1 + test/test_attack_metadata.py | 1 + test/test_attack_metadata_keywords_inner.py | 1 + test/test_attack_objectives_and_timeline.py | 1 + test/test_attack_profile.py | 2 + test/test_attack_timeline_segment.py | 1 + test/test_attack_track.py | 1 + test/test_auth_method_type.py | 1 + test/test_auth_profile.py | 89 +- test/test_auth_profile_metadata.py | 1 + test/test_auth_settings.py | 1 + test/test_authenticate200_response.py | 1 + test/test_authentication_settings.py | 1 + test/test_authorization_api.py | 2 +- test/test_automatic_ip_type.py | 1 + test/test_broker.py | 1 + test/test_brokers_api.py | 2 +- test/test_capture_input.py | 1 + test/test_capture_input_find_param.py | 1 + test/test_capture_settings.py | 1 + test/test_category.py | 1 + test/test_category_filter.py | 1 + test/test_category_value.py | 1 + test/test_cert_config.py | 1 + test/test_certificate.py | 1 + test/test_chassis_info.py | 1 + test/test_choice.py | 1 + test/test_cipher_tls12.py | 1 + test/test_cipher_tls13.py | 1 + test/test_cisco_any_connect_settings.py | 1 + test/test_cisco_encapsulation.py | 1 + test/test_clear_ports_ownership_operation.py | 1 + test/test_command.py | 91 +- test/test_compute_node.py | 1 + test/test_config.py | 1 + test/test_config_category.py | 1 + test/test_config_id.py | 1 + test/test_config_metadata.py | 1 + test/test_config_validation.py | 1 + test/test_configurations_api.py | 22 +- test/test_conflict.py | 1 + test/test_connection.py | 1 + test/test_connection_persistence.py | 1 + test/test_consumer.py | 1 + test/test_controller.py | 1 + test/test_counted_feature_consumer.py | 1 + test/test_counted_feature_stats.py | 1 + test/test_create_app_operation.py | 178 +- ...st_create_app_or_attack_operation_input.py | 1 + test/test_custom_dashboards.py | 1 + test/test_custom_import_handler.py | 1 + test/test_custom_stat.py | 1 + test/test_dashboard.py | 1 + test/test_data_migration_api.py | 12 +- test/test_data_type.py | 1 + test/test_data_type_values_inner.py | 1 + test/test_definition.py | 1 + test/test_delete_input.py | 1 + test/test_dh_p1_group.py | 1 + test/test_diagnostic_component.py | 1 + test/test_diagnostic_component_context.py | 1 + test/test_diagnostic_options.py | 1 + test/test_diagnostics_api.py | 2 +- test/test_disk_usage.py | 1 + test/test_dns_resolver.py | 1 + test/test_dns_server.py | 1 + test/test_dtls_settings.py | 1 + test/test_dut_network.py | 1 + test/test_edit_action_input.py | 89 +- test/test_edit_app_operation.py | 266 +- test/test_effective_ports.py | 1 + test/test_emulated_router.py | 1 + test/test_emulated_router_range.py | 1 + test/test_emulated_subnet_config.py | 1 + test/test_enc_p1_algorithm.py | 1 + test/test_enc_p2_algorithm.py | 1 + test/test_endpoint.py | 1 + test/test_entitlement_code_info.py | 1 + test/test_entitlement_code_request.py | 1 + test/test_enum.py | 1 + test/test_error_description.py | 1 + test/test_error_response.py | 1 + test/test_esp_over_udp_settings.py | 1 + test/test_eth_range.py | 1 + test/test_eula_details.py | 1 + test/test_eula_summary.py | 1 + test/test_exchange.py | 1 + test/test_exchange_order.py | 1 + test/test_exchange_payload.py | 1 + test/test_expected_disk_space.py | 1 + test/test_expected_disk_space_message.py | 1 + test/test_expected_disk_space_pretty_size.py | 1 + test/test_expected_disk_space_size.py | 1 + test/test_export_all_operation.py | 1 + test/test_export_apps_operation_input.py | 1 + test/test_export_files_operation_input.py | 1 + test/test_export_files_request.py | 1 + test/test_export_package_operation.py | 1 + test/test_external_resource_info.py | 1 + test/test_f5_encapsulation.py | 1 + test/test_f5_settings.py | 1 + test/test_feature.py | 1 + test/test_feature_reservation.py | 1 + test/test_feature_reservation_reserve.py | 1 + test/test_file_metadata.py | 1 + test/test_file_value.py | 1 + test/test_filter.py | 1 + test/test_filtered_stat.py | 1 + test/test_find_param_matches_operation.py | 1 + test/test_fortinet_encapsulation.py | 1 + test/test_fortinet_settings.py | 1 + test/test_fulfillment_request.py | 1 + test/test_generate_all_operation.py | 1 + test/test_generate_csv_reports_operation.py | 1 + test/test_generate_pdf_report_operation.py | 1 + test/test_generic_file.py | 1 + test/test_get_agents200_response.py | 1 + test/test_get_agents200_response_one_of.py | 1 + test/test_get_agents_tags200_response.py | 1 + ...test_get_agents_tags200_response_one_of.py | 1 + ..._get_async_operation_result200_response.py | 1 + test/test_get_attacks_operation.py | 1 + test/test_get_brokers200_response.py | 1 + test/test_get_brokers200_response_one_of.py | 1 + test/test_get_categories_operation.py | 1 + .../test_get_config_categories200_response.py | 1 + ...et_config_categories200_response_one_of.py | 1 + test/test_get_configs200_response.py | 1 + test/test_get_configs200_response_one_of.py | 1 + test/test_get_controllers200_response.py | 1 + ...test_get_controllers200_response_one_of.py | 1 + ...st_get_disk_usage_consumers200_response.py | 1 + ...disk_usage_consumers200_response_one_of.py | 1 + ...ense_async_operation_result200_response.py | 1 + test/test_get_license_servers200_response.py | 1 + ..._get_license_servers200_response_one_of.py | 1 + test/test_get_notifications200_response.py | 1 + ...st_get_notifications200_response_one_of.py | 1 + ...resources_application_types200_response.py | 55 +- ...es_application_types200_response_one_of.py | 55 +- test/test_get_resources_apps200_response.py | 75 +- ...t_get_resources_apps200_response_one_of.py | 75 +- .../test_get_resources_attacks200_response.py | 1 + ...et_resources_attacks200_response_one_of.py | 1 + ...get_resources_auth_profiles200_response.py | 24 +- ...ources_auth_profiles200_response_one_of.py | 24 +- ..._get_resources_certificates200_response.py | 1 + ...sources_certificates200_response_one_of.py | 1 + ...es_custom_import_operations200_response.py | 1 + ...om_import_operations200_response_one_of.py | 1 + ...get_resources_http_profiles200_response.py | 1 + ...ources_http_profiles200_response_one_of.py | 1 + test/test_get_result_files200_response.py | 1 + ...est_get_result_files200_response_one_of.py | 1 + test/test_get_result_stats200_response.py | 89 +- ...est_get_result_stats200_response_one_of.py | 89 +- test/test_get_results200_response.py | 1 + test/test_get_results200_response_one_of.py | 1 + test/test_get_results_tags200_response.py | 1 + ...est_get_results_tags200_response_one_of.py | 1 + test/test_get_session_meta200_response.py | 1 + ...est_get_session_meta200_response_one_of.py | 1 + test/test_get_sessions200_response.py | 1 + test/test_get_sessions200_response_one_of.py | 1 + test/test_get_stats_plugins200_response.py | 1 + ...st_get_stats_plugins200_response_one_of.py | 1 + test/test_get_strikes_operation.py | 1 + test/test_hash_p1_algorithm.py | 1 + test/test_hash_p2_algorithm.py | 1 + test/test_health_check_config.py | 1 + test/test_health_issue.py | 1 + test/test_host_id.py | 1 + test/test_http_profile.py | 1 + test/test_http_req_meta.py | 1 + test/test_http_res_meta.py | 1 + test/test_http_version.py | 1 + test/test_id_p_signature_algo.py | 1 + test/test_import_all_operation.py | 1 + test/test_import_offline_license_result.py | 1 + test/test_ingest_operation.py | 1 + test/test_inner_ip_range.py | 1 + test/test_interface.py | 1 + test/test_ip_mask.py | 1 + test/test_ip_network.py | 1 + test/test_ip_preference.py | 1 + test/test_ip_range.py | 1 + test/test_ip_sec_range.py | 1 + test/test_ip_sec_stack.py | 1 + test/test_ip_ver.py | 1 + test/test_license.py | 1 + test/test_license_receipt.py | 1 + test/test_license_server_metadata.py | 1 + test/test_license_servers_api.py | 2 +- test/test_licensing_api.py | 2 +- test/test_link.py | 1 + test/test_load_config_operation.py | 1 + test/test_local_subnet_config.py | 1 + test/test_log_config.py | 1 + test/test_log_level.py | 1 + test/test_mac_dtls_stack.py | 1 + test/test_mapping_type.py | 1 + test/test_marked_as_deleted.py | 1 + test/test_media_file.py | 1 + test/test_media_track.py | 1 + test/test_metadata.py | 3 + test/test_mos_mode.py | 1 + test/test_name_id_format.py | 1 + test/test_name_server.py | 1 + test/test_network_mapping.py | 1 + test/test_network_meshing.py | 1 + test/test_network_profile.py | 1 + test/test_network_segment_base.py | 1 + test/test_nodes_by_controller.py | 1 + test/test_nodes_power_cycle_operation.py | 1 + test/test_notification.py | 1 + test/test_notification_counts.py | 1 + test/test_notifications_api.py | 12 +- test/test_ntp_info.py | 1 + test/test_objective_type.py | 1 + test/test_objective_unit.py | 1 + test/test_objective_value_entry.py | 1 + test/test_objectives_and_timeline.py | 1 + test/test_open_api_definitions.py | 1 + test/test_p1_config.py | 1 + test/test_p2_config.py | 1 + test/test_pair.py | 1 + test/test_pangp_encapsulation.py | 1 + test/test_pangp_settings.py | 1 + test/test_param_metadata.py | 1 + test/test_param_metadata_type_info.py | 1 + .../test_param_metadata_type_info_array_v2.py | 1 + ...adata_type_info_array_v2_elements_inner.py | 1 + test/test_param_metadata_type_info_int.py | 1 + test/test_param_metadata_type_info_media.py | 1 + test/test_param_metadata_type_info_string.py | 1 + test/test_param_source_type.py | 1 + test/test_param_type.py | 1 + test/test_parameter.py | 89 +- test/test_parameter_match.py | 1 + test/test_parameter_metadata.py | 1 + test/test_params.py | 1 + test/test_params_enum.py | 1 + test/test_payload_meta.py | 1 + test/test_payload_metadata.py | 1 + test/test_pep_dut.py | 1 + test/test_pfs_p2_group.py | 1 + test/test_plugin.py | 1 + test/test_plugin_stats.py | 1 + test/test_port.py | 1 + test/test_port_settings.py | 1 + test/test_ports_by_controller.py | 1 + test/test_ports_by_node.py | 1 + test/test_prepare_test_operation.py | 1 + test/test_prepared_test_options.py | 1 + test/test_prf_p1_algorithm.py | 1 + test/test_protected_subnet_config.py | 1 + test/test_quic_profile.py | 214 + test/test_quic_version.py | 35 + test/test_reboot_operation_input.py | 1 + test/test_reboot_ports_operation.py | 1 + test/test_reference.py | 1 + test/test_regex_match.py | 1 + test/test_release_operation_input.py | 1 + test/test_remote_access.py | 1 + test/test_remote_subnet_config.py | 1 + test/test_rename_input.py | 1 + test/test_reorder_action_input.py | 1 + test/test_reorder_exchanges_input.py | 1 + test/test_replay_capture.py | 1 + test/test_reports_api.py | 12 +- test/test_required_file_types.py | 1 + test/test_reserve_operation_input.py | 1 + test/test_result_file_metadata.py | 1 + test/test_result_metadata.py | 1 + test/test_results_group.py | 1 + test/test_rtp_encryption_mode.py | 1 + test/test_rtp_profile.py | 1 + test/test_rtp_profile_meta.py | 1 + test/test_save_config_operation.py | 1 + test/test_scenario.py | 36 + test/test_secondary_objective.py | 1 + test/test_segment_type.py | 1 + test/test_selected_env.py | 1 + test/test_session.py | 1 + test/test_session_reuse_method_tls12.py | 1 + test/test_session_reuse_method_tls13.py | 1 + test/test_sessions_api.py | 47 +- test/test_set_aggregation_mode_operation.py | 1 + test/test_set_app_operation.py | 1 + test/test_set_dpdk_mode_operation_input.py | 1 + test/test_set_link_state_operation.py | 1 + test/test_set_ntp_operation_input.py | 1 + test/test_simulated_id_p.py | 1 + test/test_snapshot.py | 1 + test/test_sort_body_field.py | 1 + test/test_specific_objective.py | 1 + ...start_agents_batch_delete_request_inner.py | 1 + test/test_stateless_stream.py | 1 + test/test_static_arp_entry.py | 1 + test/test_statistics_api.py | 7 +- test/test_stats_result.py | 89 +- test/test_steady_segment.py | 1 + test/test_step_segment.py | 1 + test/test_stream_direction.py | 1 + test/test_stream_payload_type.py | 1 + test/test_stream_profile.py | 1 + test/test_supported_group_tls13.py | 1 + test/test_system_info.py | 1 + test/test_tcp_profile.py | 1 + test/test_test_info.py | 1 + test/test_test_operations_api.py | 27 +- test/test_test_results_api.py | 22 +- test/test_test_state_changed_operation.py | 1 + test/test_time_value.py | 1 + test/test_timeline_segment.py | 1 + test/test_timeline_segment_base.py | 1 + test/test_timeline_segment_union.py | 1 + test/test_timers.py | 1 + test/test_tls_profile.py | 1 + test/test_track.py | 1 + test/test_track_type.py | 1 + test/test_traffic_agent_info.py | 1 + test/test_traffic_profile_base.py | 2 + test/test_traffic_settings.py | 1 + test/test_transport_profile.py | 35 + test/test_transport_profile_base.py | 35 + test/test_tunnel_range.py | 1 + test/test_tunnel_settings.py | 1 + test/test_tunnel_stack.py | 1 + test/test_type_array_v2_metadata.py | 1 + test/test_type_info_metadata.py | 1 + test/test_type_int_metadata.py | 1 + test/test_type_media_metadata.py | 1 + test/test_type_string_metadata.py | 1 + test/test_udp_profile.py | 1 + test/test_update_network_mapping.py | 1 + test/test_utils_api.py | 37 +- test/test_validation_message.py | 1 + test/test_version.py | 1 + test/test_vlan_range.py | 1 + 452 files changed, 4933 insertions(+), 31652 deletions(-) create mode 100644 cyperf/models/quic_profile.py create mode 100644 cyperf/models/quic_version.py create mode 100644 docs/QUICProfile.md create mode 100644 docs/QUICVersion.md create mode 100644 test/test_quic_profile.py create mode 100644 test/test_quic_version.py diff --git a/README.md b/README.md index 87c4c80..00b16d6 100644 --- a/README.md +++ b/README.md @@ -87,20 +87,6 @@ Class | Method | HTTP request | Description *AgentsApi* | [**get_controller_compute_nodes**](docs/AgentsApi.md#get_controller_compute_nodes) | **GET** /api/v2/controllers/{controllerId}/compute-nodes | *AgentsApi* | [**get_controllers**](docs/AgentsApi.md#get_controllers) | **GET** /api/v2/controllers | *AgentsApi* | [**patch_agent**](docs/AgentsApi.md#patch_agent) | **PATCH** /api/v2/agents/{agentId} | -*AgentsApi* | [**poll_agents_batch_delete**](docs/AgentsApi.md#poll_agents_batch_delete) | **GET** /api/v2/agents/operations/batch-delete/{id} | -*AgentsApi* | [**poll_agents_export_files**](docs/AgentsApi.md#poll_agents_export_files) | **GET** /api/v2/agents/operations/exportFiles/{id} | -*AgentsApi* | [**poll_agents_reboot**](docs/AgentsApi.md#poll_agents_reboot) | **GET** /api/v2/agents/operations/reboot/{id} | -*AgentsApi* | [**poll_agents_release**](docs/AgentsApi.md#poll_agents_release) | **GET** /api/v2/agents/operations/release/{id} | -*AgentsApi* | [**poll_agents_reserve**](docs/AgentsApi.md#poll_agents_reserve) | **GET** /api/v2/agents/operations/reserve/{id} | -*AgentsApi* | [**poll_agents_set_dpdk_mode**](docs/AgentsApi.md#poll_agents_set_dpdk_mode) | **GET** /api/v2/agents/operations/set-dpdk-mode/{id} | -*AgentsApi* | [**poll_agents_set_ntp**](docs/AgentsApi.md#poll_agents_set_ntp) | **GET** /api/v2/agents/operations/set-ntp/{id} | -*AgentsApi* | [**poll_agents_update**](docs/AgentsApi.md#poll_agents_update) | **GET** /api/v2/agents/operations/update/{id} | -*AgentsApi* | [**poll_controllers_clear_port_ownership**](docs/AgentsApi.md#poll_controllers_clear_port_ownership) | **GET** /api/v2/controllers/operations/clear-port-ownership/{id} | -*AgentsApi* | [**poll_controllers_power_cycle_nodes**](docs/AgentsApi.md#poll_controllers_power_cycle_nodes) | **GET** /api/v2/controllers/operations/power-cycle-nodes/{id} | -*AgentsApi* | [**poll_controllers_reboot_port**](docs/AgentsApi.md#poll_controllers_reboot_port) | **GET** /api/v2/controllers/operations/reboot-port/{id} | -*AgentsApi* | [**poll_controllers_set_app**](docs/AgentsApi.md#poll_controllers_set_app) | **GET** /api/v2/controllers/operations/set-app/{id} | -*AgentsApi* | [**poll_controllers_set_node_aggregation**](docs/AgentsApi.md#poll_controllers_set_node_aggregation) | **GET** /api/v2/controllers/operations/set-node-aggregation/{id} | -*AgentsApi* | [**poll_controllers_set_port_link_state**](docs/AgentsApi.md#poll_controllers_set_port_link_state) | **GET** /api/v2/controllers/operations/set-port-link-state/{id} | *AgentsApi* | [**start_agents_batch_delete**](docs/AgentsApi.md#start_agents_batch_delete) | **POST** /api/v2/agents/operations/batch-delete | *AgentsApi* | [**start_agents_export_files**](docs/AgentsApi.md#start_agents_export_files) | **POST** /api/v2/agents/operations/exportFiles | *AgentsApi* | [**start_agents_reboot**](docs/AgentsApi.md#start_agents_reboot) | **POST** /api/v2/agents/operations/reboot | @@ -219,35 +205,6 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_tls_keys_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_user_defined_apps**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | *ApplicationResourcesApi* | [**get_resources_user_defined_apps_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | -*ApplicationResourcesApi* | [**poll_resources_apps_export_all**](docs/ApplicationResourcesApi.md#poll_resources_apps_export_all) | **GET** /api/v2/resources/apps/operations/export-all/{id} | -*ApplicationResourcesApi* | [**poll_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#poll_resources_captures_batch_delete) | **GET** /api/v2/resources/captures/operations/batch-delete/{id} | -*ApplicationResourcesApi* | [**poll_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_captures_upload_file) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_certificates_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_certificates_upload_file) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_config_export_user_defined_apps**](docs/ApplicationResourcesApi.md#poll_resources_config_export_user_defined_apps) | **GET** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id} | -*ApplicationResourcesApi* | [**poll_resources_create_app**](docs/ApplicationResourcesApi.md#poll_resources_create_app) | **GET** /api/v2/resources/operations/create-app/{id} | -*ApplicationResourcesApi* | [**poll_resources_custom_fuzzing_scripts_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_custom_fuzzing_scripts_upload_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_edit_app**](docs/ApplicationResourcesApi.md#poll_resources_edit_app) | **GET** /api/v2/resources/operations/edit-app/{id} | -*ApplicationResourcesApi* | [**poll_resources_find_param_matches**](docs/ApplicationResourcesApi.md#poll_resources_find_param_matches) | **GET** /api/v2/resources/operations/find-param-matches/{id} | -*ApplicationResourcesApi* | [**poll_resources_flow_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_flow_library_upload_file) | **GET** /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_get_attack_categories**](docs/ApplicationResourcesApi.md#poll_resources_get_attack_categories) | **GET** /api/v2/resources/operations/get-attack-categories/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_attacks**](docs/ApplicationResourcesApi.md#poll_resources_get_attacks) | **GET** /api/v2/resources/operations/get-attacks/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_strike_categories**](docs/ApplicationResourcesApi.md#poll_resources_get_strike_categories) | **GET** /api/v2/resources/operations/get-strike-categories/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_strikes**](docs/ApplicationResourcesApi.md#poll_resources_get_strikes) | **GET** /api/v2/resources/operations/get-strikes/{id} | -*ApplicationResourcesApi* | [**poll_resources_global_playlists_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_global_playlists_upload_file) | **GET** /api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_http_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_http_library_upload_file) | **GET** /api/v2/resources/http-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_media_files_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_media_files_upload_file) | **GET** /api/v2/resources/media-files/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_media_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_media_library_upload_file) | **GET** /api/v2/resources/media-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_other_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_other_library_upload_file) | **GET** /api/v2/resources/other-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_payloads_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_payloads_upload_file) | **GET** /api/v2/resources/payloads/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_pcaps_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_pcaps_upload_file) | **GET** /api/v2/resources/pcaps/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_playlists_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_playlists_upload_file) | **GET** /api/v2/resources/playlists/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_sip_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_sip_library_upload_file) | **GET** /api/v2/resources/sip-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_stats_profile_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_stats_profile_upload_file) | **GET** /api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_certificates_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_certificates_upload_file) | **GET** /api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_dhs_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_dhs_upload_file) | **GET** /api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_keys_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_keys_upload_file) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_user_defined_apps_export_all**](docs/ApplicationResourcesApi.md#poll_resources_user_defined_apps_export_all) | **GET** /api/v2/resources/user-defined-apps/operations/export-all/{id} | -*ApplicationResourcesApi* | [**poll_resources_user_defined_apps_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_user_defined_apps_upload_file) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId} | *ApplicationResourcesApi* | [**start_resources_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | *ApplicationResourcesApi* | [**start_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | @@ -290,17 +247,11 @@ Class | Method | HTTP request | Description *ConfigurationsApi* | [**get_configs**](docs/ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | *ConfigurationsApi* | [**get_resources_custom_import_operations**](docs/ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | *ConfigurationsApi* | [**patch_config**](docs/ConfigurationsApi.md#patch_config) | **PATCH** /api/v2/configs/{configId} | -*ConfigurationsApi* | [**poll_configs_batch_delete**](docs/ConfigurationsApi.md#poll_configs_batch_delete) | **GET** /api/v2/configs/operations/batch-delete/{id} | -*ConfigurationsApi* | [**poll_configs_export_all**](docs/ConfigurationsApi.md#poll_configs_export_all) | **GET** /api/v2/configs/operations/exportAll/{id} | -*ConfigurationsApi* | [**poll_configs_import**](docs/ConfigurationsApi.md#poll_configs_import) | **GET** /api/v2/configs/operations/import/{id} | -*ConfigurationsApi* | [**poll_configs_import_all**](docs/ConfigurationsApi.md#poll_configs_import_all) | **GET** /api/v2/configs/operations/importAll/{id} | *ConfigurationsApi* | [**start_configs_batch_delete**](docs/ConfigurationsApi.md#start_configs_batch_delete) | **POST** /api/v2/configs/operations/batch-delete | *ConfigurationsApi* | [**start_configs_export_all**](docs/ConfigurationsApi.md#start_configs_export_all) | **POST** /api/v2/configs/operations/exportAll | *ConfigurationsApi* | [**start_configs_import**](docs/ConfigurationsApi.md#start_configs_import) | **POST** /api/v2/configs/operations/import | *ConfigurationsApi* | [**start_configs_import_all**](docs/ConfigurationsApi.md#start_configs_import_all) | **POST** /api/v2/configs/operations/importAll | *ConfigurationsApi* | [**update_config**](docs/ConfigurationsApi.md#update_config) | **PUT** /api/v2/configs/{configId} | -*DataMigrationApi* | [**poll_controller_migration_export**](docs/DataMigrationApi.md#poll_controller_migration_export) | **GET** /api/v2/controller-migration/operations/export/{id} | -*DataMigrationApi* | [**poll_controller_migration_import**](docs/DataMigrationApi.md#poll_controller_migration_import) | **GET** /api/v2/controller-migration/operations/import/{id} | *DataMigrationApi* | [**start_controller_migration_export**](docs/DataMigrationApi.md#start_controller_migration_export) | **POST** /api/v2/controller-migration/operations/export | *DataMigrationApi* | [**start_controller_migration_import**](docs/DataMigrationApi.md#start_controller_migration_import) | **POST** /api/v2/controller-migration/operations/import | *DiagnosticsApi* | [**api_v2_diagnostics_components_get**](docs/DiagnosticsApi.md#api_v2_diagnostics_components_get) | **GET** /api/v2/diagnostics/components | @@ -338,14 +289,10 @@ Class | Method | HTTP request | Description *NotificationsApi* | [**get_notification_by_id**](docs/NotificationsApi.md#get_notification_by_id) | **GET** /api/v2/notifications/{notificationId} | *NotificationsApi* | [**get_notification_counts**](docs/NotificationsApi.md#get_notification_counts) | **GET** /api/v2/notification-counts | *NotificationsApi* | [**get_notifications**](docs/NotificationsApi.md#get_notifications) | **GET** /api/v2/notifications | -*NotificationsApi* | [**poll_notifications_cleanup**](docs/NotificationsApi.md#poll_notifications_cleanup) | **GET** /api/v2/notifications/operations/cleanup/{id} | -*NotificationsApi* | [**poll_notifications_dismiss**](docs/NotificationsApi.md#poll_notifications_dismiss) | **GET** /api/v2/notifications/operations/dismiss/{id} | *NotificationsApi* | [**start_notifications_cleanup**](docs/NotificationsApi.md#start_notifications_cleanup) | **POST** /api/v2/notifications/operations/cleanup | *NotificationsApi* | [**start_notifications_dismiss**](docs/NotificationsApi.md#start_notifications_dismiss) | **POST** /api/v2/notifications/operations/dismiss | *ReportsApi* | [**download_pdf**](docs/ReportsApi.md#download_pdf) | **GET** /api/v2/results/{resultId}/download-pdf/{pdfId} | *ReportsApi* | [**get_result_download_csv_by_id**](docs/ReportsApi.md#get_result_download_csv_by_id) | **GET** /api/v2/results/{resultId}/download-csv/{downloadCsvId} | -*ReportsApi* | [**poll_result_generate_csv**](docs/ReportsApi.md#poll_result_generate_csv) | **GET** /api/v2/results/{resultId}/operations/generate-csv/{id} | -*ReportsApi* | [**poll_result_generate_pdf**](docs/ReportsApi.md#poll_result_generate_pdf) | **GET** /api/v2/results/{resultId}/operations/generate-pdf/{id} | *ReportsApi* | [**start_result_generate_csv**](docs/ReportsApi.md#start_result_generate_csv) | **POST** /api/v2/results/{resultId}/operations/generate-csv | *ReportsApi* | [**start_result_generate_pdf**](docs/ReportsApi.md#start_result_generate_pdf) | **POST** /api/v2/results/{resultId}/operations/generate-pdf | *SessionsApi* | [**create_session_meta**](docs/SessionsApi.md#create_session_meta) | **POST** /api/v2/sessions/{sessionId}/meta | @@ -364,15 +311,6 @@ Class | Method | HTTP request | Description *SessionsApi* | [**patch_session**](docs/SessionsApi.md#patch_session) | **PATCH** /api/v2/sessions/{sessionId} | *SessionsApi* | [**patch_session_meta**](docs/SessionsApi.md#patch_session_meta) | **PATCH** /api/v2/sessions/{sessionId}/meta/{metaId} | *SessionsApi* | [**patch_session_test**](docs/SessionsApi.md#patch_session_test) | **PATCH** /api/v2/sessions/{sessionId}/test | -*SessionsApi* | [**poll_config_add_applications**](docs/SessionsApi.md#poll_config_add_applications) | **GET** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id} | -*SessionsApi* | [**poll_session_config_granular_stats_default_dashboards**](docs/SessionsApi.md#poll_session_config_granular_stats_default_dashboards) | **GET** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} | -*SessionsApi* | [**poll_session_config_save**](docs/SessionsApi.md#poll_session_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | -*SessionsApi* | [**poll_session_load_config**](docs/SessionsApi.md#poll_session_load_config) | **GET** /api/v2/sessions/{sessionId}/operations/loadConfig/{id} | -*SessionsApi* | [**poll_session_prepare_test**](docs/SessionsApi.md#poll_session_prepare_test) | **GET** /api/v2/sessions/{sessionId}/operations/prepareTest/{id} | -*SessionsApi* | [**poll_session_test_end**](docs/SessionsApi.md#poll_session_test_end) | **GET** /api/v2/sessions/{sessionId}/operations/testEnd/{id} | -*SessionsApi* | [**poll_session_test_init**](docs/SessionsApi.md#poll_session_test_init) | **GET** /api/v2/sessions/{sessionId}/operations/testInit/{id} | -*SessionsApi* | [**poll_session_touch**](docs/SessionsApi.md#poll_session_touch) | **GET** /api/v2/sessions/{sessionId}/operations/touch/{id} | -*SessionsApi* | [**poll_sessions_batch_delete**](docs/SessionsApi.md#poll_sessions_batch_delete) | **GET** /api/v2/sessions/operations/batch-delete/{id} | *SessionsApi* | [**start_config_add_applications**](docs/SessionsApi.md#start_config_add_applications) | **POST** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications | *SessionsApi* | [**start_session_config_granular_stats_default_dashboards**](docs/SessionsApi.md#start_session_config_granular_stats_default_dashboards) | **POST** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards | *SessionsApi* | [**start_session_config_save**](docs/SessionsApi.md#start_session_config_save) | **POST** /api/v2/sessions/{sessionId}/config/operations/save | @@ -391,13 +329,7 @@ Class | Method | HTTP request | Description *StatisticsApi* | [**get_result_stat_by_id**](docs/StatisticsApi.md#get_result_stat_by_id) | **GET** /api/v2/results/{resultId}/stats/{statId} | *StatisticsApi* | [**get_result_stats**](docs/StatisticsApi.md#get_result_stats) | **GET** /api/v2/results/{resultId}/stats | *StatisticsApi* | [**get_stats_plugins**](docs/StatisticsApi.md#get_stats_plugins) | **GET** /api/v2/stats/plugins | -*StatisticsApi* | [**poll_stats_plugins_ingest**](docs/StatisticsApi.md#poll_stats_plugins_ingest) | **GET** /api/v2/stats/plugins/operations/ingest/{id} | *StatisticsApi* | [**start_stats_plugins_ingest**](docs/StatisticsApi.md#start_stats_plugins_ingest) | **POST** /api/v2/stats/plugins/operations/ingest | -*TestOperationsApi* | [**poll_test_calibrate_start**](docs/TestOperationsApi.md#poll_test_calibrate_start) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id} | -*TestOperationsApi* | [**poll_test_calibrate_stop**](docs/TestOperationsApi.md#poll_test_calibrate_stop) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id} | -*TestOperationsApi* | [**poll_test_run_abort**](docs/TestOperationsApi.md#poll_test_run_abort) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/abort/{id} | -*TestOperationsApi* | [**poll_test_run_start**](docs/TestOperationsApi.md#poll_test_run_start) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/start/{id} | -*TestOperationsApi* | [**poll_test_run_stop**](docs/TestOperationsApi.md#poll_test_run_stop) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/stop/{id} | *TestOperationsApi* | [**start_test_calibrate_start**](docs/TestOperationsApi.md#start_test_calibrate_start) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/start | *TestOperationsApi* | [**start_test_calibrate_stop**](docs/TestOperationsApi.md#start_test_calibrate_stop) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop | *TestOperationsApi* | [**start_test_run_abort**](docs/TestOperationsApi.md#start_test_run_abort) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/abort | @@ -413,10 +345,6 @@ Class | Method | HTTP request | Description *TestResultsApi* | [**get_result_files**](docs/TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | *TestResultsApi* | [**get_results**](docs/TestResultsApi.md#get_results) | **GET** /api/v2/results | *TestResultsApi* | [**get_results_tags**](docs/TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | -*TestResultsApi* | [**poll_result_generate_all**](docs/TestResultsApi.md#poll_result_generate_all) | **GET** /api/v2/results/{resultId}/operations/generate-all/{id} | -*TestResultsApi* | [**poll_result_generate_results**](docs/TestResultsApi.md#poll_result_generate_results) | **GET** /api/v2/results/{resultId}/operations/generate-results/{id} | -*TestResultsApi* | [**poll_result_load**](docs/TestResultsApi.md#poll_result_load) | **GET** /api/v2/results/{resultId}/operations/load/{id} | -*TestResultsApi* | [**poll_results_batch_delete**](docs/TestResultsApi.md#poll_results_batch_delete) | **GET** /api/v2/results/operations/batch-delete/{id} | *TestResultsApi* | [**start_result_generate_all**](docs/TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | *TestResultsApi* | [**start_result_generate_results**](docs/TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | *TestResultsApi* | [**start_result_load**](docs/TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -433,13 +361,6 @@ Class | Method | HTTP request | Description *UtilsApi* | [**get_log_config**](docs/UtilsApi.md#get_log_config) | **GET** /api/v2/log-config | *UtilsApi* | [**get_time**](docs/UtilsApi.md#get_time) | **GET** /api/v2/time | *UtilsApi* | [**list_eulas**](docs/UtilsApi.md#list_eulas) | **GET** /eula/v1/eula | list of EULAs -*UtilsApi* | [**poll_cert_manager_generate**](docs/UtilsApi.md#poll_cert_manager_generate) | **GET** /api/v2/cert-manager/operations/generate/{id} | -*UtilsApi* | [**poll_cert_manager_upload**](docs/UtilsApi.md#poll_cert_manager_upload) | **GET** /api/v2/cert-manager/operations/upload/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_diagnostics**](docs/UtilsApi.md#poll_disk_usage_cleanup_diagnostics) | **GET** /api/v2/disk-usage/operations/cleanup-diagnostics/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_logs**](docs/UtilsApi.md#poll_disk_usage_cleanup_logs) | **GET** /api/v2/disk-usage/operations/cleanup-logs/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_migration**](docs/UtilsApi.md#poll_disk_usage_cleanup_migration) | **GET** /api/v2/disk-usage/operations/cleanup-migration/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_notifications**](docs/UtilsApi.md#poll_disk_usage_cleanup_notifications) | **GET** /api/v2/disk-usage/operations/cleanup-notifications/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_results**](docs/UtilsApi.md#poll_disk_usage_cleanup_results) | **GET** /api/v2/disk-usage/operations/cleanup-results/{id} | *UtilsApi* | [**post_eula**](docs/UtilsApi.md#post_eula) | **POST** /eula/v1/eula/CyPerf | Update properties an EULA *UtilsApi* | [**start_cert_manager_generate**](docs/UtilsApi.md#start_cert_manager_generate) | **POST** /api/v2/cert-manager/operations/generate | *UtilsApi* | [**start_cert_manager_upload**](docs/UtilsApi.md#start_cert_manager_upload) | **POST** /api/v2/cert-manager/operations/upload | @@ -744,6 +665,8 @@ Class | Method | HTTP request | Description - [PreparedTestOptions](docs/PreparedTestOptions.md) - [PrfP1Algorithm](docs/PrfP1Algorithm.md) - [ProtectedSubnetConfig](docs/ProtectedSubnetConfig.md) + - [QUICProfile](docs/QUICProfile.md) + - [QUICVersion](docs/QUICVersion.md) - [RTPEncryptionMode](docs/RTPEncryptionMode.md) - [RTPProfile](docs/RTPProfile.md) - [RTPProfileMeta](docs/RTPProfileMeta.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index ee40fe3..94c7838 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -343,6 +343,8 @@ from cyperf.models.prepared_test_options import PreparedTestOptions from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from cyperf.models.protected_subnet_config import ProtectedSubnetConfig +from cyperf.models.quic_profile import QUICProfile +from cyperf.models.quic_version import QUICVersion from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from cyperf.models.rtp_profile import RTPProfile from cyperf.models.rtp_profile_meta import RTPProfileMeta diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 16f97c8..b5c3097 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -124,7 +124,7 @@ def delete_agent( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_agent_with_http_info( @@ -189,7 +189,7 @@ def delete_agent_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_agent_without_preload_content( @@ -254,7 +254,7 @@ def delete_agent_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_agent_serialize( self, @@ -382,7 +382,7 @@ def get_agent_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agent_by_id_with_http_info( @@ -447,7 +447,7 @@ def get_agent_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agent_by_id_without_preload_content( @@ -512,7 +512,7 @@ def get_agent_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agent_by_id_serialize( self, @@ -663,7 +663,7 @@ def get_agents( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_with_http_info( @@ -751,7 +751,7 @@ def get_agents_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_without_preload_content( @@ -839,7 +839,7 @@ def get_agents_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agents_serialize( self, @@ -1002,7 +1002,7 @@ def get_agents_tags( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_tags_with_http_info( @@ -1070,7 +1070,7 @@ def get_agents_tags_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_tags_without_preload_content( @@ -1138,7 +1138,7 @@ def get_agents_tags_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agents_tags_serialize( self, @@ -1280,7 +1280,7 @@ def get_compute_node_port_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_port_by_id_with_http_info( @@ -1352,7 +1352,7 @@ def get_compute_node_port_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_port_by_id_without_preload_content( @@ -1424,7 +1424,7 @@ def get_compute_node_port_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_compute_node_port_by_id_serialize( self, @@ -1568,7 +1568,7 @@ def get_compute_node_ports( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_ports_with_http_info( @@ -1643,7 +1643,7 @@ def get_compute_node_ports_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_ports_without_preload_content( @@ -1718,7 +1718,7 @@ def get_compute_node_ports_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_compute_node_ports_serialize( self, @@ -1858,7 +1858,7 @@ def get_controller_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_by_id_with_http_info( @@ -1922,7 +1922,7 @@ def get_controller_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_by_id_without_preload_content( @@ -1986,7 +1986,7 @@ def get_controller_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_by_id_serialize( self, @@ -2117,7 +2117,7 @@ def get_controller_compute_node_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_node_by_id_with_http_info( @@ -2185,7 +2185,7 @@ def get_controller_compute_node_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_node_by_id_without_preload_content( @@ -2253,7 +2253,7 @@ def get_controller_compute_node_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_compute_node_by_id_serialize( self, @@ -2390,7 +2390,7 @@ def get_controller_compute_nodes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_nodes_with_http_info( @@ -2461,7 +2461,7 @@ def get_controller_compute_nodes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_nodes_without_preload_content( @@ -2532,7 +2532,7 @@ def get_controller_compute_nodes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_compute_nodes_serialize( self, @@ -2673,7 +2673,7 @@ def get_controllers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controllers_with_http_info( @@ -2692,3628 +2692,15 @@ def get_controllers_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetControllers200Response]: - """get_controllers - - Get the controllers chain. - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_controllers_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetControllers200Response", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_controllers_without_preload_content( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """get_controllers - - Get the controllers chain. - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_controllers_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetControllers200Response", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_controllers_serialize( - self, - take, - skip, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def patch_agent( - self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """patch_agent - - Update a particular agent. Only non-null fields are updated. - - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def patch_agent_with_http_info( - self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """patch_agent - - Update a particular agent. Only non-null fields are updated. - - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def patch_agent_without_preload_content( - self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """patch_agent - - Update a particular agent. Only non-null fields are updated. - - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _patch_agent_serialize( - self, - agent_id, - agent, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if agent_id is not None: - _path_params['agentId'] = agent_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if agent is not None: - _body_params = agent - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/api/v2/agents/{agentId}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_batch_delete( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_batch_delete_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_batch_delete_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_batch_delete_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/batch-delete/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_export_files( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_export_files - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_export_files_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_export_files_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_export_files - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_export_files_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_export_files_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_export_files - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_export_files_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_export_files_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/exportFiles/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_reboot( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_reboot - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reboot_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_reboot_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_reboot - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reboot_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_reboot_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_reboot - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reboot_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_reboot_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/reboot/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_release( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_release - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_release_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_release_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_release - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_release_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_release_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_release - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_release_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_release_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/release/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_reserve( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_reserve - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reserve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_reserve_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_reserve - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reserve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_reserve_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_reserve - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reserve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_reserve_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/reserve/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_set_dpdk_mode( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_set_dpdk_mode - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_set_dpdk_mode_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_set_dpdk_mode - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_set_dpdk_mode_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_set_dpdk_mode - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_set_dpdk_mode_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/set-dpdk-mode/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_set_ntp( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_set_ntp - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_ntp_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_set_ntp_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_set_ntp - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_ntp_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_set_ntp_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_set_ntp - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_ntp_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_set_ntp_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/set-ntp/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_update( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_update - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_update_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_update_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_update - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_update_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_update_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_update - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_update_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_update_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/update/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_clear_port_ownership( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_clear_port_ownership_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_clear_port_ownership_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_clear_port_ownership_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/clear-port-ownership/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_power_cycle_nodes( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_power_cycle_nodes_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_power_cycle_nodes_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_power_cycle_nodes_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/power-cycle-nodes/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_reboot_port( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_reboot_port_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_reboot_port_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_reboot_port_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/reboot-port/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_set_app( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_app_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_app_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_set_app_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/set-app/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_set_node_aggregation( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_node_aggregation - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_node_aggregation_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_node_aggregation + ) -> ApiResponse[GetControllers200Response]: + """get_controllers - Get the state of an ongoing operation. + Get the controllers chain. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6336,8 +2723,9 @@ def poll_controllers_set_node_aggregation_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, + _param = self._get_controllers_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6345,20 +2733,21 @@ def poll_controllers_set_node_aggregation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetControllers200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_controllers_set_node_aggregation_without_preload_content( + def get_controllers_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6372,12 +2761,14 @@ def poll_controllers_set_node_aggregation_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_controllers_set_node_aggregation + """get_controllers - Get the state of an ongoing operation. + Get the controllers chain. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6400,8 +2791,9 @@ def poll_controllers_set_node_aggregation_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, + _param = self._get_controllers_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6409,19 +2801,20 @@ def poll_controllers_set_node_aggregation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetControllers200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_controllers_set_node_aggregation_serialize( + def _get_controllers_serialize( self, - id, + take, + skip, _request_auth, _content_type, _headers, @@ -6441,9 +2834,15 @@ def _poll_controllers_set_node_aggregation_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -6466,7 +2865,7 @@ def _poll_controllers_set_node_aggregation_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/controllers/operations/set-node-aggregation/{id}', + resource_path='/api/v2/controllers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6483,9 +2882,10 @@ def _poll_controllers_set_node_aggregation_serialize( @validate_call - def poll_controllers_set_port_link_state( + def patch_agent( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6498,13 +2898,15 @@ def poll_controllers_set_port_link_state( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_port_link_state + ) -> None: + """patch_agent - Get the state of an ongoing operation. + Update a particular agent. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6527,8 +2929,9 @@ def poll_controllers_set_port_link_state( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6536,20 +2939,22 @@ def poll_controllers_set_port_link_state( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_controllers_set_port_link_state_with_http_info( + def patch_agent_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6562,13 +2967,15 @@ def poll_controllers_set_port_link_state_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_port_link_state + ) -> ApiResponse[None]: + """patch_agent - Get the state of an ongoing operation. + Update a particular agent. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6591,8 +2998,9 @@ def poll_controllers_set_port_link_state_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6600,20 +3008,22 @@ def poll_controllers_set_port_link_state_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_controllers_set_port_link_state_without_preload_content( + def patch_agent_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6627,12 +3037,14 @@ def poll_controllers_set_port_link_state_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_controllers_set_port_link_state + """patch_agent - Get the state of an ongoing operation. + Update a particular agent. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6655,8 +3067,9 @@ def poll_controllers_set_port_link_state_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6664,19 +3077,21 @@ def poll_controllers_set_port_link_state_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_controllers_set_port_link_state_serialize( + def _patch_agent_serialize( self, - id, + agent_id, + agent, _request_auth, _content_type, _headers, @@ -6696,12 +3111,14 @@ def _poll_controllers_set_port_link_state_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if agent_id is not None: + _path_params['agentId'] = agent_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if agent is not None: + _body_params = agent # set the HTTP header `Accept` @@ -6712,6 +3129,19 @@ def _poll_controllers_set_port_link_state_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6720,8 +3150,8 @@ def _poll_controllers_set_port_link_state_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/set-port-link-state/{id}', + method='PATCH', + resource_path='/api/v2/agents/{agentId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6737,6 +3167,146 @@ def _poll_controllers_set_port_link_state_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call def start_agents_batch_delete( self, @@ -6798,7 +3368,7 @@ def start_agents_batch_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_batch_delete_with_http_info( @@ -6861,7 +3431,7 @@ def start_agents_batch_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_batch_delete_without_preload_content( @@ -6924,7 +3494,7 @@ def start_agents_batch_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_batch_delete_serialize( self, @@ -7064,7 +3634,7 @@ def start_agents_export_files( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_export_files_with_http_info( @@ -7127,7 +3697,7 @@ def start_agents_export_files_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_export_files_without_preload_content( @@ -7190,7 +3760,7 @@ def start_agents_export_files_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_export_files_serialize( self, @@ -7329,7 +3899,7 @@ def start_agents_reboot( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_reboot_with_http_info( @@ -7392,7 +3962,7 @@ def start_agents_reboot_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_reboot_without_preload_content( @@ -7455,7 +4025,7 @@ def start_agents_reboot_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_reboot_serialize( self, @@ -7594,7 +4164,7 @@ def start_agents_release( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_release_with_http_info( @@ -7657,7 +4227,7 @@ def start_agents_release_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_release_without_preload_content( @@ -7720,7 +4290,7 @@ def start_agents_release_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_release_serialize( self, @@ -7859,7 +4429,7 @@ def start_agents_reserve( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_reserve_with_http_info( @@ -7922,7 +4492,7 @@ def start_agents_reserve_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_reserve_without_preload_content( @@ -7985,7 +4555,7 @@ def start_agents_reserve_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_reserve_serialize( self, @@ -8124,7 +4694,7 @@ def start_agents_set_dpdk_mode( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_set_dpdk_mode_with_http_info( @@ -8187,7 +4757,7 @@ def start_agents_set_dpdk_mode_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_set_dpdk_mode_without_preload_content( @@ -8250,7 +4820,7 @@ def start_agents_set_dpdk_mode_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_set_dpdk_mode_serialize( self, @@ -8389,7 +4959,7 @@ def start_agents_set_ntp( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_set_ntp_with_http_info( @@ -8452,7 +5022,7 @@ def start_agents_set_ntp_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_set_ntp_without_preload_content( @@ -8515,7 +5085,7 @@ def start_agents_set_ntp_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_set_ntp_serialize( self, @@ -8650,7 +5220,7 @@ def start_agents_update( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_update_with_http_info( @@ -8709,7 +5279,7 @@ def start_agents_update_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_update_without_preload_content( @@ -8768,7 +5338,7 @@ def start_agents_update_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_update_serialize( self, @@ -8891,7 +5461,7 @@ def start_controllers_clear_port_ownership( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_clear_port_ownership_with_http_info( @@ -8954,7 +5524,7 @@ def start_controllers_clear_port_ownership_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_clear_port_ownership_without_preload_content( @@ -9017,7 +5587,7 @@ def start_controllers_clear_port_ownership_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_clear_port_ownership_serialize( self, @@ -9156,7 +5726,7 @@ def start_controllers_power_cycle_nodes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_power_cycle_nodes_with_http_info( @@ -9219,7 +5789,7 @@ def start_controllers_power_cycle_nodes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_power_cycle_nodes_without_preload_content( @@ -9282,7 +5852,7 @@ def start_controllers_power_cycle_nodes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_power_cycle_nodes_serialize( self, @@ -9421,7 +5991,7 @@ def start_controllers_reboot_port( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_reboot_port_with_http_info( @@ -9484,7 +6054,7 @@ def start_controllers_reboot_port_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_reboot_port_without_preload_content( @@ -9547,7 +6117,7 @@ def start_controllers_reboot_port_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_reboot_port_serialize( self, @@ -9686,7 +6256,7 @@ def start_controllers_set_app( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_app_with_http_info( @@ -9749,7 +6319,7 @@ def start_controllers_set_app_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_app_without_preload_content( @@ -9812,7 +6382,7 @@ def start_controllers_set_app_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_set_app_serialize( self, @@ -9951,7 +6521,7 @@ def start_controllers_set_node_aggregation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_node_aggregation_with_http_info( @@ -10014,7 +6584,7 @@ def start_controllers_set_node_aggregation_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_node_aggregation_without_preload_content( @@ -10077,7 +6647,7 @@ def start_controllers_set_node_aggregation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_set_node_aggregation_serialize( self, @@ -10216,7 +6786,7 @@ def start_controllers_set_port_link_state( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_port_link_state_with_http_info( @@ -10279,7 +6849,7 @@ def start_controllers_set_port_link_state_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_port_link_state_without_preload_content( @@ -10342,7 +6912,7 @@ def start_controllers_set_port_link_state_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_set_port_link_state_serialize( self, diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index b415caa..da3c6ef 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -125,7 +125,7 @@ def delete_resources_capture( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_capture_with_http_info( @@ -188,7 +188,7 @@ def delete_resources_capture_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_capture_without_preload_content( @@ -251,7 +251,7 @@ def delete_resources_capture_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_capture_serialize( self, @@ -379,7 +379,7 @@ def delete_resources_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_certificate_with_http_info( @@ -444,7 +444,7 @@ def delete_resources_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_certificate_without_preload_content( @@ -509,7 +509,7 @@ def delete_resources_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_certificate_serialize( self, @@ -637,7 +637,7 @@ def delete_resources_custom_fuzzing_script( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_custom_fuzzing_script_with_http_info( @@ -702,7 +702,7 @@ def delete_resources_custom_fuzzing_script_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_custom_fuzzing_script_without_preload_content( @@ -767,7 +767,7 @@ def delete_resources_custom_fuzzing_script_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_custom_fuzzing_script_serialize( self, @@ -895,7 +895,7 @@ def delete_resources_flow_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_flow_library_with_http_info( @@ -960,7 +960,7 @@ def delete_resources_flow_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_flow_library_without_preload_content( @@ -1025,7 +1025,7 @@ def delete_resources_flow_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_flow_library_serialize( self, @@ -1153,7 +1153,7 @@ def delete_resources_global_playlist( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_global_playlist_with_http_info( @@ -1218,7 +1218,7 @@ def delete_resources_global_playlist_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_global_playlist_without_preload_content( @@ -1283,7 +1283,7 @@ def delete_resources_global_playlist_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_global_playlist_serialize( self, @@ -1411,7 +1411,7 @@ def delete_resources_http_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_http_library_with_http_info( @@ -1476,7 +1476,7 @@ def delete_resources_http_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_http_library_without_preload_content( @@ -1541,7 +1541,7 @@ def delete_resources_http_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_http_library_serialize( self, @@ -1669,7 +1669,7 @@ def delete_resources_media_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_file_with_http_info( @@ -1734,7 +1734,7 @@ def delete_resources_media_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_file_without_preload_content( @@ -1799,7 +1799,7 @@ def delete_resources_media_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_media_file_serialize( self, @@ -1927,7 +1927,7 @@ def delete_resources_media_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_library_with_http_info( @@ -1992,7 +1992,7 @@ def delete_resources_media_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_library_without_preload_content( @@ -2057,7 +2057,7 @@ def delete_resources_media_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_media_library_serialize( self, @@ -2185,7 +2185,7 @@ def delete_resources_other_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_other_library_with_http_info( @@ -2250,7 +2250,7 @@ def delete_resources_other_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_other_library_without_preload_content( @@ -2315,7 +2315,7 @@ def delete_resources_other_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_other_library_serialize( self, @@ -2443,7 +2443,7 @@ def delete_resources_payload( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_payload_with_http_info( @@ -2508,7 +2508,7 @@ def delete_resources_payload_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_payload_without_preload_content( @@ -2573,7 +2573,7 @@ def delete_resources_payload_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_payload_serialize( self, @@ -2701,7 +2701,7 @@ def delete_resources_pcap( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_pcap_with_http_info( @@ -2766,7 +2766,7 @@ def delete_resources_pcap_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_pcap_without_preload_content( @@ -2831,7 +2831,7 @@ def delete_resources_pcap_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_pcap_serialize( self, @@ -2959,7 +2959,7 @@ def delete_resources_playlist( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_playlist_with_http_info( @@ -3024,7 +3024,7 @@ def delete_resources_playlist_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_playlist_without_preload_content( @@ -3089,7 +3089,7 @@ def delete_resources_playlist_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_playlist_serialize( self, @@ -3217,7 +3217,7 @@ def delete_resources_sip_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_sip_library_with_http_info( @@ -3282,7 +3282,7 @@ def delete_resources_sip_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_sip_library_without_preload_content( @@ -3347,7 +3347,7 @@ def delete_resources_sip_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_sip_library_serialize( self, @@ -3475,7 +3475,7 @@ def delete_resources_stats_profile( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_stats_profile_with_http_info( @@ -3540,7 +3540,7 @@ def delete_resources_stats_profile_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_stats_profile_without_preload_content( @@ -3605,7 +3605,7 @@ def delete_resources_stats_profile_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_stats_profile_serialize( self, @@ -3733,7 +3733,7 @@ def delete_resources_tls_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_certificate_with_http_info( @@ -3798,7 +3798,7 @@ def delete_resources_tls_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_certificate_without_preload_content( @@ -3863,7 +3863,7 @@ def delete_resources_tls_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_certificate_serialize( self, @@ -3991,7 +3991,7 @@ def delete_resources_tls_dh( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_dh_with_http_info( @@ -4056,7 +4056,7 @@ def delete_resources_tls_dh_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_dh_without_preload_content( @@ -4121,7 +4121,7 @@ def delete_resources_tls_dh_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_dh_serialize( self, @@ -4249,7 +4249,7 @@ def delete_resources_tls_key( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_key_with_http_info( @@ -4314,7 +4314,7 @@ def delete_resources_tls_key_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_key_without_preload_content( @@ -4379,7 +4379,7 @@ def delete_resources_tls_key_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_key_serialize( self, @@ -4509,7 +4509,7 @@ def delete_resources_user_defined_app( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_user_defined_app_with_http_info( @@ -4576,7 +4576,7 @@ def delete_resources_user_defined_app_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_user_defined_app_without_preload_content( @@ -4643,7 +4643,7 @@ def delete_resources_user_defined_app_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_user_defined_app_serialize( self, @@ -4777,7 +4777,7 @@ def get_capture_flows( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_capture_flows_with_http_info( @@ -4848,7 +4848,7 @@ def get_capture_flows_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_capture_flows_without_preload_content( @@ -4919,7 +4919,7 @@ def get_capture_flows_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_capture_flows_serialize( self, @@ -5067,7 +5067,7 @@ def get_flow_exchanges( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_flow_exchanges_with_http_info( @@ -5142,7 +5142,7 @@ def get_flow_exchanges_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_flow_exchanges_without_preload_content( @@ -5217,7 +5217,7 @@ def get_flow_exchanges_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_flow_exchanges_serialize( self, @@ -5359,7 +5359,7 @@ def get_resources_app_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_app_by_id_with_http_info( @@ -5425,7 +5425,7 @@ def get_resources_app_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_app_by_id_without_preload_content( @@ -5491,7 +5491,7 @@ def get_resources_app_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_app_by_id_serialize( self, @@ -5618,7 +5618,7 @@ def get_resources_application_type_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_application_type_by_id_with_http_info( @@ -5682,7 +5682,7 @@ def get_resources_application_type_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_application_type_by_id_without_preload_content( @@ -5746,7 +5746,7 @@ def get_resources_application_type_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_application_type_by_id_serialize( self, @@ -5877,7 +5877,7 @@ def get_resources_application_types( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_application_types_with_http_info( @@ -5945,7 +5945,7 @@ def get_resources_application_types_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_application_types_without_preload_content( @@ -6013,7 +6013,7 @@ def get_resources_application_types_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_application_types_serialize( self, @@ -6168,7 +6168,7 @@ def get_resources_apps( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_apps_with_http_info( @@ -6253,7 +6253,7 @@ def get_resources_apps_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_apps_without_preload_content( @@ -6338,7 +6338,7 @@ def get_resources_apps_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_apps_serialize( self, @@ -6494,7 +6494,7 @@ def get_resources_attack_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attack_by_id_with_http_info( @@ -6560,7 +6560,7 @@ def get_resources_attack_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attack_by_id_without_preload_content( @@ -6626,7 +6626,7 @@ def get_resources_attack_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_attack_by_id_serialize( self, @@ -6756,7 +6756,7 @@ def get_resources_attack_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attack_categories_with_http_info( @@ -6823,7 +6823,7 @@ def get_resources_attack_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attack_categories_without_preload_content( @@ -6890,7 +6890,7 @@ def get_resources_attack_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_attack_categories_serialize( self, @@ -7050,7 +7050,7 @@ def get_resources_attacks( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attacks_with_http_info( @@ -7140,7 +7140,7 @@ def get_resources_attacks_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attacks_without_preload_content( @@ -7230,7 +7230,7 @@ def get_resources_attacks_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_attacks_serialize( self, @@ -7390,7 +7390,7 @@ def get_resources_auth_profile_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_auth_profile_by_id_with_http_info( @@ -7455,7 +7455,7 @@ def get_resources_auth_profile_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_auth_profile_by_id_without_preload_content( @@ -7520,7 +7520,7 @@ def get_resources_auth_profile_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_auth_profile_by_id_serialize( self, @@ -7651,7 +7651,7 @@ def get_resources_auth_profiles( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_auth_profiles_with_http_info( @@ -7719,7 +7719,7 @@ def get_resources_auth_profiles_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_auth_profiles_without_preload_content( @@ -7787,7 +7787,7 @@ def get_resources_auth_profiles_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_auth_profiles_serialize( self, @@ -7923,7 +7923,7 @@ def get_resources_capture_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_capture_by_id_with_http_info( @@ -7989,7 +7989,7 @@ def get_resources_capture_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_capture_by_id_without_preload_content( @@ -8055,7 +8055,7 @@ def get_resources_capture_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_capture_by_id_serialize( self, @@ -8185,7 +8185,7 @@ def get_resources_captures( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_captures_with_http_info( @@ -8252,7 +8252,7 @@ def get_resources_captures_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_captures_without_preload_content( @@ -8319,7 +8319,7 @@ def get_resources_captures_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_captures_serialize( self, @@ -8454,7 +8454,7 @@ def get_resources_captures_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_captures_upload_file_result_with_http_info( @@ -8519,7 +8519,7 @@ def get_resources_captures_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_captures_upload_file_result_without_preload_content( @@ -8584,7 +8584,7 @@ def get_resources_captures_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_captures_upload_file_result_serialize( self, @@ -8713,7 +8713,7 @@ def get_resources_certificate_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificate_by_id_with_http_info( @@ -8779,7 +8779,7 @@ def get_resources_certificate_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificate_by_id_without_preload_content( @@ -8845,7 +8845,7 @@ def get_resources_certificate_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_certificate_by_id_serialize( self, @@ -8972,7 +8972,7 @@ def get_resources_certificate_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificate_content_file_with_http_info( @@ -9036,7 +9036,7 @@ def get_resources_certificate_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificate_content_file_without_preload_content( @@ -9100,7 +9100,7 @@ def get_resources_certificate_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_certificate_content_file_serialize( self, @@ -9233,7 +9233,7 @@ def get_resources_certificates( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificates_with_http_info( @@ -9302,7 +9302,7 @@ def get_resources_certificates_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificates_without_preload_content( @@ -9371,7 +9371,7 @@ def get_resources_certificates_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_certificates_serialize( self, @@ -9506,7 +9506,7 @@ def get_resources_certificates_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificates_upload_file_result_with_http_info( @@ -9571,7 +9571,7 @@ def get_resources_certificates_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificates_upload_file_result_without_preload_content( @@ -9636,7 +9636,7 @@ def get_resources_certificates_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_certificates_upload_file_result_serialize( self, @@ -9765,7 +9765,7 @@ def get_resources_custom_fuzzing_script_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_script_by_id_with_http_info( @@ -9831,7 +9831,7 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_script_by_id_without_preload_content( @@ -9897,7 +9897,7 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_fuzzing_script_by_id_serialize( self, @@ -10024,7 +10024,7 @@ def get_resources_custom_fuzzing_script_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_script_content_file_with_http_info( @@ -10088,7 +10088,7 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_script_content_file_without_preload_content( @@ -10152,7 +10152,7 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_fuzzing_script_content_file_serialize( self, @@ -10285,7 +10285,7 @@ def get_resources_custom_fuzzing_scripts( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_scripts_with_http_info( @@ -10354,7 +10354,7 @@ def get_resources_custom_fuzzing_scripts_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_scripts_without_preload_content( @@ -10423,7 +10423,7 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_fuzzing_scripts_serialize( self, @@ -10558,7 +10558,7 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( @@ -10623,7 +10623,7 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_content( @@ -10688,7 +10688,7 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( self, @@ -10820,7 +10820,7 @@ def get_resources_flow_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_with_http_info( @@ -10889,7 +10889,7 @@ def get_resources_flow_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_without_preload_content( @@ -10958,7 +10958,7 @@ def get_resources_flow_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_flow_library_serialize( self, @@ -11094,7 +11094,7 @@ def get_resources_flow_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_by_id_with_http_info( @@ -11160,7 +11160,7 @@ def get_resources_flow_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_by_id_without_preload_content( @@ -11226,7 +11226,7 @@ def get_resources_flow_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_flow_library_by_id_serialize( self, @@ -11353,7 +11353,7 @@ def get_resources_flow_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_content_file_with_http_info( @@ -11417,7 +11417,7 @@ def get_resources_flow_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_content_file_without_preload_content( @@ -11481,7 +11481,7 @@ def get_resources_flow_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_flow_library_content_file_serialize( self, @@ -11610,7 +11610,7 @@ def get_resources_flow_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_upload_file_result_with_http_info( @@ -11675,7 +11675,7 @@ def get_resources_flow_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_upload_file_result_without_preload_content( @@ -11740,7 +11740,7 @@ def get_resources_flow_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_flow_library_upload_file_result_serialize( self, @@ -11869,7 +11869,7 @@ def get_resources_global_playlist_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlist_by_id_with_http_info( @@ -11935,7 +11935,7 @@ def get_resources_global_playlist_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlist_by_id_without_preload_content( @@ -12001,7 +12001,7 @@ def get_resources_global_playlist_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_global_playlist_by_id_serialize( self, @@ -12128,7 +12128,7 @@ def get_resources_global_playlist_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlist_content_file_with_http_info( @@ -12192,7 +12192,7 @@ def get_resources_global_playlist_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlist_content_file_without_preload_content( @@ -12256,7 +12256,7 @@ def get_resources_global_playlist_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_global_playlist_content_file_serialize( self, @@ -12389,7 +12389,7 @@ def get_resources_global_playlists( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlists_with_http_info( @@ -12458,7 +12458,7 @@ def get_resources_global_playlists_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlists_without_preload_content( @@ -12527,7 +12527,7 @@ def get_resources_global_playlists_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_global_playlists_serialize( self, @@ -12662,7 +12662,7 @@ def get_resources_global_playlists_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlists_upload_file_result_with_http_info( @@ -12727,7 +12727,7 @@ def get_resources_global_playlists_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlists_upload_file_result_without_preload_content( @@ -12792,7 +12792,7 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_global_playlists_upload_file_result_serialize( self, @@ -12924,7 +12924,7 @@ def get_resources_http_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_with_http_info( @@ -12993,7 +12993,7 @@ def get_resources_http_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_without_preload_content( @@ -13062,7 +13062,7 @@ def get_resources_http_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_library_serialize( self, @@ -13198,7 +13198,7 @@ def get_resources_http_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_by_id_with_http_info( @@ -13264,7 +13264,7 @@ def get_resources_http_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_by_id_without_preload_content( @@ -13330,7 +13330,7 @@ def get_resources_http_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_library_by_id_serialize( self, @@ -13457,7 +13457,7 @@ def get_resources_http_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_content_file_with_http_info( @@ -13521,7 +13521,7 @@ def get_resources_http_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_content_file_without_preload_content( @@ -13585,7 +13585,7 @@ def get_resources_http_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_library_content_file_serialize( self, @@ -13714,7 +13714,7 @@ def get_resources_http_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_upload_file_result_with_http_info( @@ -13779,7 +13779,7 @@ def get_resources_http_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_upload_file_result_without_preload_content( @@ -13844,7 +13844,7 @@ def get_resources_http_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_library_upload_file_result_serialize( self, @@ -13972,7 +13972,7 @@ def get_resources_http_profile_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_profile_by_id_with_http_info( @@ -14037,7 +14037,7 @@ def get_resources_http_profile_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_profile_by_id_without_preload_content( @@ -14102,7 +14102,7 @@ def get_resources_http_profile_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_profile_by_id_serialize( self, @@ -14233,7 +14233,7 @@ def get_resources_http_profiles( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_profiles_with_http_info( @@ -14301,7 +14301,7 @@ def get_resources_http_profiles_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_profiles_without_preload_content( @@ -14369,7 +14369,7 @@ def get_resources_http_profiles_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_profiles_serialize( self, @@ -14505,7 +14505,7 @@ def get_resources_media_file_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_file_by_id_with_http_info( @@ -14571,7 +14571,7 @@ def get_resources_media_file_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_file_by_id_without_preload_content( @@ -14637,7 +14637,7 @@ def get_resources_media_file_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_file_by_id_serialize( self, @@ -14764,7 +14764,7 @@ def get_resources_media_file_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_file_content_file_with_http_info( @@ -14828,7 +14828,7 @@ def get_resources_media_file_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_file_content_file_without_preload_content( @@ -14892,7 +14892,7 @@ def get_resources_media_file_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_file_content_file_serialize( self, @@ -15025,7 +15025,7 @@ def get_resources_media_files( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_files_with_http_info( @@ -15094,7 +15094,7 @@ def get_resources_media_files_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_files_without_preload_content( @@ -15163,7 +15163,7 @@ def get_resources_media_files_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_files_serialize( self, @@ -15298,7 +15298,7 @@ def get_resources_media_files_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_files_upload_file_result_with_http_info( @@ -15363,7 +15363,7 @@ def get_resources_media_files_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_files_upload_file_result_without_preload_content( @@ -15428,7 +15428,7 @@ def get_resources_media_files_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_files_upload_file_result_serialize( self, @@ -15560,7 +15560,7 @@ def get_resources_media_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_with_http_info( @@ -15629,7 +15629,7 @@ def get_resources_media_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_without_preload_content( @@ -15698,7 +15698,7 @@ def get_resources_media_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_library_serialize( self, @@ -15834,7 +15834,7 @@ def get_resources_media_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_by_id_with_http_info( @@ -15900,7 +15900,7 @@ def get_resources_media_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_by_id_without_preload_content( @@ -15966,7 +15966,7 @@ def get_resources_media_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_library_by_id_serialize( self, @@ -16093,7 +16093,7 @@ def get_resources_media_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_content_file_with_http_info( @@ -16157,7 +16157,7 @@ def get_resources_media_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_content_file_without_preload_content( @@ -16221,7 +16221,7 @@ def get_resources_media_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_library_content_file_serialize( self, @@ -16350,7 +16350,7 @@ def get_resources_media_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_upload_file_result_with_http_info( @@ -16415,7 +16415,7 @@ def get_resources_media_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_upload_file_result_without_preload_content( @@ -16480,7 +16480,7 @@ def get_resources_media_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_library_upload_file_result_serialize( self, @@ -16612,7 +16612,7 @@ def get_resources_other_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_with_http_info( @@ -16681,7 +16681,7 @@ def get_resources_other_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_without_preload_content( @@ -16750,7 +16750,7 @@ def get_resources_other_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_other_library_serialize( self, @@ -16886,7 +16886,7 @@ def get_resources_other_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_by_id_with_http_info( @@ -16952,7 +16952,7 @@ def get_resources_other_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_by_id_without_preload_content( @@ -17018,7 +17018,7 @@ def get_resources_other_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_other_library_by_id_serialize( self, @@ -17145,7 +17145,7 @@ def get_resources_other_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_content_file_with_http_info( @@ -17209,7 +17209,7 @@ def get_resources_other_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_content_file_without_preload_content( @@ -17273,7 +17273,7 @@ def get_resources_other_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_other_library_content_file_serialize( self, @@ -17402,7 +17402,7 @@ def get_resources_other_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_upload_file_result_with_http_info( @@ -17467,7 +17467,7 @@ def get_resources_other_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_upload_file_result_without_preload_content( @@ -17532,7 +17532,7 @@ def get_resources_other_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_other_library_upload_file_result_serialize( self, @@ -17661,7 +17661,7 @@ def get_resources_payload_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payload_by_id_with_http_info( @@ -17727,7 +17727,7 @@ def get_resources_payload_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payload_by_id_without_preload_content( @@ -17793,7 +17793,7 @@ def get_resources_payload_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_payload_by_id_serialize( self, @@ -17920,7 +17920,7 @@ def get_resources_payload_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payload_content_file_with_http_info( @@ -17984,7 +17984,7 @@ def get_resources_payload_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payload_content_file_without_preload_content( @@ -18048,7 +18048,7 @@ def get_resources_payload_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_payload_content_file_serialize( self, @@ -18181,7 +18181,7 @@ def get_resources_payloads( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payloads_with_http_info( @@ -18250,7 +18250,7 @@ def get_resources_payloads_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payloads_without_preload_content( @@ -18319,7 +18319,7 @@ def get_resources_payloads_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_payloads_serialize( self, @@ -18454,7 +18454,7 @@ def get_resources_payloads_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payloads_upload_file_result_with_http_info( @@ -18519,7 +18519,7 @@ def get_resources_payloads_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payloads_upload_file_result_without_preload_content( @@ -18584,7 +18584,7 @@ def get_resources_payloads_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_payloads_upload_file_result_serialize( self, @@ -18713,7 +18713,7 @@ def get_resources_pcap_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcap_by_id_with_http_info( @@ -18779,7 +18779,7 @@ def get_resources_pcap_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcap_by_id_without_preload_content( @@ -18845,7 +18845,7 @@ def get_resources_pcap_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_pcap_by_id_serialize( self, @@ -18972,7 +18972,7 @@ def get_resources_pcap_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcap_content_file_with_http_info( @@ -19036,7 +19036,7 @@ def get_resources_pcap_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcap_content_file_without_preload_content( @@ -19100,7 +19100,7 @@ def get_resources_pcap_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_pcap_content_file_serialize( self, @@ -19233,7 +19233,7 @@ def get_resources_pcaps( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcaps_with_http_info( @@ -19302,7 +19302,7 @@ def get_resources_pcaps_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcaps_without_preload_content( @@ -19371,7 +19371,7 @@ def get_resources_pcaps_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_pcaps_serialize( self, @@ -19506,7 +19506,7 @@ def get_resources_pcaps_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcaps_upload_file_result_with_http_info( @@ -19571,7 +19571,7 @@ def get_resources_pcaps_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcaps_upload_file_result_without_preload_content( @@ -19636,7 +19636,7 @@ def get_resources_pcaps_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_pcaps_upload_file_result_serialize( self, @@ -19765,7 +19765,7 @@ def get_resources_playlist_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_by_id_with_http_info( @@ -19831,7 +19831,7 @@ def get_resources_playlist_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_by_id_without_preload_content( @@ -19897,7 +19897,7 @@ def get_resources_playlist_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlist_by_id_serialize( self, @@ -20024,7 +20024,7 @@ def get_resources_playlist_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_content_file_with_http_info( @@ -20088,7 +20088,7 @@ def get_resources_playlist_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_content_file_without_preload_content( @@ -20152,7 +20152,7 @@ def get_resources_playlist_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlist_content_file_serialize( self, @@ -20285,7 +20285,7 @@ def get_resources_playlist_values( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_values_with_http_info( @@ -20354,7 +20354,7 @@ def get_resources_playlist_values_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_values_without_preload_content( @@ -20423,7 +20423,7 @@ def get_resources_playlist_values_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlist_values_serialize( self, @@ -20560,7 +20560,7 @@ def get_resources_playlists( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlists_with_http_info( @@ -20629,7 +20629,7 @@ def get_resources_playlists_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlists_without_preload_content( @@ -20698,7 +20698,7 @@ def get_resources_playlists_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlists_serialize( self, @@ -20833,7 +20833,7 @@ def get_resources_playlists_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlists_upload_file_result_with_http_info( @@ -20898,7 +20898,7 @@ def get_resources_playlists_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlists_upload_file_result_without_preload_content( @@ -20963,7 +20963,7 @@ def get_resources_playlists_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlists_upload_file_result_serialize( self, @@ -21095,7 +21095,7 @@ def get_resources_sip_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_with_http_info( @@ -21164,7 +21164,7 @@ def get_resources_sip_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_without_preload_content( @@ -21233,7 +21233,7 @@ def get_resources_sip_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_sip_library_serialize( self, @@ -21369,7 +21369,7 @@ def get_resources_sip_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_by_id_with_http_info( @@ -21435,7 +21435,7 @@ def get_resources_sip_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_by_id_without_preload_content( @@ -21501,7 +21501,7 @@ def get_resources_sip_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_sip_library_by_id_serialize( self, @@ -21628,7 +21628,7 @@ def get_resources_sip_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_content_file_with_http_info( @@ -21692,7 +21692,7 @@ def get_resources_sip_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_content_file_without_preload_content( @@ -21756,7 +21756,7 @@ def get_resources_sip_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_sip_library_content_file_serialize( self, @@ -21885,7 +21885,7 @@ def get_resources_sip_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_upload_file_result_with_http_info( @@ -21950,7 +21950,7 @@ def get_resources_sip_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_upload_file_result_without_preload_content( @@ -22015,7 +22015,7 @@ def get_resources_sip_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_sip_library_upload_file_result_serialize( self, @@ -22147,7 +22147,7 @@ def get_resources_stats_profile( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_with_http_info( @@ -22216,7 +22216,7 @@ def get_resources_stats_profile_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_without_preload_content( @@ -22285,7 +22285,7 @@ def get_resources_stats_profile_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_stats_profile_serialize( self, @@ -22421,7 +22421,7 @@ def get_resources_stats_profile_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_by_id_with_http_info( @@ -22487,7 +22487,7 @@ def get_resources_stats_profile_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_by_id_without_preload_content( @@ -22553,7 +22553,7 @@ def get_resources_stats_profile_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_stats_profile_by_id_serialize( self, @@ -22680,7 +22680,7 @@ def get_resources_stats_profile_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_content_file_with_http_info( @@ -22744,7 +22744,7 @@ def get_resources_stats_profile_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_content_file_without_preload_content( @@ -22808,7 +22808,7 @@ def get_resources_stats_profile_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_stats_profile_content_file_serialize( self, @@ -22937,7 +22937,7 @@ def get_resources_stats_profile_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_upload_file_result_with_http_info( @@ -23002,7 +23002,7 @@ def get_resources_stats_profile_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_upload_file_result_without_preload_content( @@ -23067,7 +23067,7 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_stats_profile_upload_file_result_serialize( self, @@ -23194,7 +23194,7 @@ def get_resources_strike_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strike_by_id_with_http_info( @@ -23258,7 +23258,7 @@ def get_resources_strike_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strike_by_id_without_preload_content( @@ -23322,7 +23322,7 @@ def get_resources_strike_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_strike_by_id_serialize( self, @@ -23452,7 +23452,7 @@ def get_resources_strike_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strike_categories_with_http_info( @@ -23519,7 +23519,7 @@ def get_resources_strike_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strike_categories_without_preload_content( @@ -23586,7 +23586,7 @@ def get_resources_strike_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_strike_categories_serialize( self, @@ -23749,7 +23749,7 @@ def get_resources_strikes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strikes_with_http_info( @@ -23842,7 +23842,7 @@ def get_resources_strikes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strikes_without_preload_content( @@ -23935,7 +23935,7 @@ def get_resources_strikes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_strikes_serialize( self, @@ -24101,7 +24101,7 @@ def get_resources_tls_certificate_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificate_by_id_with_http_info( @@ -24167,7 +24167,7 @@ def get_resources_tls_certificate_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificate_by_id_without_preload_content( @@ -24233,7 +24233,7 @@ def get_resources_tls_certificate_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_certificate_by_id_serialize( self, @@ -24360,7 +24360,7 @@ def get_resources_tls_certificate_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificate_content_file_with_http_info( @@ -24424,7 +24424,7 @@ def get_resources_tls_certificate_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificate_content_file_without_preload_content( @@ -24488,7 +24488,7 @@ def get_resources_tls_certificate_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_certificate_content_file_serialize( self, @@ -24621,7 +24621,7 @@ def get_resources_tls_certificates( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificates_with_http_info( @@ -24690,7 +24690,7 @@ def get_resources_tls_certificates_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificates_without_preload_content( @@ -24759,7 +24759,7 @@ def get_resources_tls_certificates_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_certificates_serialize( self, @@ -24894,7 +24894,7 @@ def get_resources_tls_certificates_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificates_upload_file_result_with_http_info( @@ -24959,7 +24959,7 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificates_upload_file_result_without_preload_content( @@ -25024,7 +25024,7 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_certificates_upload_file_result_serialize( self, @@ -25153,7 +25153,7 @@ def get_resources_tls_dh_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dh_by_id_with_http_info( @@ -25219,7 +25219,7 @@ def get_resources_tls_dh_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dh_by_id_without_preload_content( @@ -25285,7 +25285,7 @@ def get_resources_tls_dh_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_dh_by_id_serialize( self, @@ -25412,7 +25412,7 @@ def get_resources_tls_dh_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dh_content_file_with_http_info( @@ -25476,7 +25476,7 @@ def get_resources_tls_dh_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dh_content_file_without_preload_content( @@ -25540,7 +25540,7 @@ def get_resources_tls_dh_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_dh_content_file_serialize( self, @@ -25673,7 +25673,7 @@ def get_resources_tls_dhs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dhs_with_http_info( @@ -25742,7 +25742,7 @@ def get_resources_tls_dhs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dhs_without_preload_content( @@ -25811,7 +25811,7 @@ def get_resources_tls_dhs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_dhs_serialize( self, @@ -25946,7 +25946,7 @@ def get_resources_tls_dhs_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dhs_upload_file_result_with_http_info( @@ -26011,7 +26011,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dhs_upload_file_result_without_preload_content( @@ -26076,7 +26076,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_dhs_upload_file_result_serialize( self, @@ -26205,7 +26205,7 @@ def get_resources_tls_key_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_key_by_id_with_http_info( @@ -26271,7 +26271,7 @@ def get_resources_tls_key_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_key_by_id_without_preload_content( @@ -26337,7 +26337,7 @@ def get_resources_tls_key_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_key_by_id_serialize( self, @@ -26464,7 +26464,7 @@ def get_resources_tls_key_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_key_content_file_with_http_info( @@ -26528,7 +26528,7 @@ def get_resources_tls_key_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_key_content_file_without_preload_content( @@ -26592,7 +26592,7 @@ def get_resources_tls_key_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_key_content_file_serialize( self, @@ -26725,7 +26725,7 @@ def get_resources_tls_keys( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_keys_with_http_info( @@ -26794,7 +26794,7 @@ def get_resources_tls_keys_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_keys_without_preload_content( @@ -26863,7 +26863,7 @@ def get_resources_tls_keys_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_keys_serialize( self, @@ -26998,7 +26998,7 @@ def get_resources_tls_keys_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_keys_upload_file_result_with_http_info( @@ -27063,7 +27063,7 @@ def get_resources_tls_keys_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_keys_upload_file_result_without_preload_content( @@ -27128,7 +27128,7 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_keys_upload_file_result_serialize( self, @@ -27258,7 +27258,7 @@ def get_resources_user_defined_apps( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_user_defined_apps_with_http_info( @@ -27325,7 +27325,7 @@ def get_resources_user_defined_apps_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_user_defined_apps_without_preload_content( @@ -27392,7 +27392,7 @@ def get_resources_user_defined_apps_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_user_defined_apps_serialize( self, @@ -27527,7 +27527,7 @@ def get_resources_user_defined_apps_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_user_defined_apps_upload_file_result_with_http_info( @@ -27592,7 +27592,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_user_defined_apps_upload_file_result_without_preload_content( @@ -27657,7 +27657,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_user_defined_apps_upload_file_result_serialize( self, @@ -27722,10 +27722,300 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_resources_apps_export_all( + def start_resources_apps_export_all( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27739,12 +28029,12 @@ def poll_resources_apps_export_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27767,8 +28057,8 @@ def poll_resources_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27776,20 +28066,19 @@ def poll_resources_apps_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_apps_export_all_with_http_info( + def start_resources_apps_export_all_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27803,12 +28092,12 @@ def poll_resources_apps_export_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27831,8 +28120,8 @@ def poll_resources_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27840,20 +28129,19 @@ def poll_resources_apps_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_apps_export_all_without_preload_content( + def start_resources_apps_export_all_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27867,12 +28155,12 @@ def poll_resources_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27895,8 +28183,8 @@ def poll_resources_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27904,19 +28192,18 @@ def poll_resources_apps_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_apps_export_all_serialize( + def _start_resources_apps_export_all_serialize( self, - id, + export_apps_operation_input, _request_auth, _content_type, _headers, @@ -27936,12 +28223,12 @@ def _poll_resources_apps_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if export_apps_operation_input is not None: + _body_params = export_apps_operation_input # set the HTTP header `Accept` @@ -27952,6 +28239,19 @@ def _poll_resources_apps_export_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -27960,8 +28260,8 @@ def _poll_resources_apps_export_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/apps/operations/export-all/{id}', + method='POST', + resource_path='/api/v2/resources/apps/operations/export-all', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27978,9 +28278,8 @@ def _poll_resources_apps_export_all_serialize( @validate_call - def poll_resources_captures_batch_delete( + def start_resources_captures_batch_delete( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27994,12 +28293,10 @@ def poll_resources_captures_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_captures_batch_delete + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28022,8 +28319,7 @@ def poll_resources_captures_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28031,20 +28327,18 @@ def poll_resources_captures_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_batch_delete_with_http_info( + def start_resources_captures_batch_delete_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28058,12 +28352,10 @@ def poll_resources_captures_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_captures_batch_delete + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28086,8 +28378,7 @@ def poll_resources_captures_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28095,20 +28386,18 @@ def poll_resources_captures_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_batch_delete_without_preload_content( + def start_resources_captures_batch_delete_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28122,12 +28411,10 @@ def poll_resources_captures_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_captures_batch_delete + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28150,8 +28437,7 @@ def poll_resources_captures_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28159,19 +28445,17 @@ def poll_resources_captures_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_captures_batch_delete_serialize( + def _start_resources_captures_batch_delete_serialize( self, - id, _request_auth, _content_type, _headers, @@ -28191,8 +28475,6 @@ def _poll_resources_captures_batch_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -28215,8 +28497,8 @@ def _poll_resources_captures_batch_delete_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/captures/operations/batch-delete/{id}', + method='POST', + resource_path='/api/v2/resources/captures/operations/batch-delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28233,9 +28515,9 @@ def _poll_resources_captures_batch_delete_serialize( @validate_call - def poll_resources_captures_upload_file( + def start_resources_captures_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28249,12 +28531,12 @@ def poll_resources_captures_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_captures_upload_file + """start_resources_captures_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28277,8 +28559,8 @@ def poll_resources_captures_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28286,8 +28568,7 @@ def poll_resources_captures_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -28295,12 +28576,12 @@ def poll_resources_captures_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_upload_file_with_http_info( + def start_resources_captures_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28314,12 +28595,12 @@ def poll_resources_captures_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_captures_upload_file + """start_resources_captures_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28342,8 +28623,8 @@ def poll_resources_captures_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28351,8 +28632,7 @@ def poll_resources_captures_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -28360,12 +28640,12 @@ def poll_resources_captures_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_upload_file_without_preload_content( + def start_resources_captures_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28379,12 +28659,12 @@ def poll_resources_captures_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_captures_upload_file + """start_resources_captures_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28407,8 +28687,8 @@ def poll_resources_captures_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28416,8 +28696,7 @@ def poll_resources_captures_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -28425,11 +28704,11 @@ def poll_resources_captures_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_captures_upload_file_serialize( + def _start_resources_captures_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -28449,11 +28728,11 @@ def _poll_resources_captures_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -28465,6 +28744,19 @@ def _poll_resources_captures_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -28473,8 +28765,8 @@ def _poll_resources_captures_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/captures/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/captures/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28491,9 +28783,9 @@ def _poll_resources_captures_upload_file_serialize( @validate_call - def poll_resources_certificates_upload_file( + def start_resources_certificates_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28507,12 +28799,12 @@ def poll_resources_certificates_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_certificates_upload_file + """start_resources_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28535,8 +28827,8 @@ def poll_resources_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28544,8 +28836,7 @@ def poll_resources_certificates_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -28553,12 +28844,12 @@ def poll_resources_certificates_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_certificates_upload_file_with_http_info( + def start_resources_certificates_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28572,12 +28863,12 @@ def poll_resources_certificates_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_certificates_upload_file + """start_resources_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28600,8 +28891,8 @@ def poll_resources_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28609,8 +28900,7 @@ def poll_resources_certificates_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -28618,12 +28908,12 @@ def poll_resources_certificates_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_certificates_upload_file_without_preload_content( + def start_resources_certificates_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28637,12 +28927,12 @@ def poll_resources_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_certificates_upload_file + """start_resources_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28665,8 +28955,8 @@ def poll_resources_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28674,8 +28964,7 @@ def poll_resources_certificates_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -28683,11 +28972,11 @@ def poll_resources_certificates_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_certificates_upload_file_serialize( + def _start_resources_certificates_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -28707,11 +28996,11 @@ def _poll_resources_certificates_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -28723,6 +29012,19 @@ def _poll_resources_certificates_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -28731,8 +29033,8 @@ def _poll_resources_certificates_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/certificates/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/certificates/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28749,10 +29051,9 @@ def _poll_resources_certificates_upload_file_serialize( @validate_call - def poll_resources_config_export_user_defined_apps( + def start_resources_config_export_user_defined_apps( self, config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28766,14 +29067,12 @@ def poll_resources_config_export_user_defined_apps( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_config_export_user_defined_apps + """start_resources_config_export_user_defined_apps - Get the state of an ongoing operation. + Export all apps created by the user. :param config_id: The ID of the config. (required) :type config_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28796,9 +29095,8 @@ def poll_resources_config_export_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( + _param = self._start_resources_config_export_user_defined_apps_serialize( config_id=config_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28806,21 +29104,19 @@ def poll_resources_config_export_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_config_export_user_defined_apps_with_http_info( + def start_resources_config_export_user_defined_apps_with_http_info( self, config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28834,14 +29130,12 @@ def poll_resources_config_export_user_defined_apps_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_config_export_user_defined_apps + """start_resources_config_export_user_defined_apps - Get the state of an ongoing operation. + Export all apps created by the user. :param config_id: The ID of the config. (required) :type config_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28864,9 +29158,8 @@ def poll_resources_config_export_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( + _param = self._start_resources_config_export_user_defined_apps_serialize( config_id=config_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28874,21 +29167,19 @@ def poll_resources_config_export_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_config_export_user_defined_apps_without_preload_content( + def start_resources_config_export_user_defined_apps_without_preload_content( self, config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28902,14 +29193,12 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_config_export_user_defined_apps + """start_resources_config_export_user_defined_apps - Get the state of an ongoing operation. + Export all apps created by the user. :param config_id: The ID of the config. (required) :type config_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28932,9 +29221,8 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( + _param = self._start_resources_config_export_user_defined_apps_serialize( config_id=config_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28942,20 +29230,18 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_config_export_user_defined_apps_serialize( + def _start_resources_config_export_user_defined_apps_serialize( self, config_id, - id, _request_auth, _content_type, _headers, @@ -28977,8 +29263,6 @@ def _poll_resources_config_export_user_defined_apps_serialize( # process the path parameters if config_id is not None: _path_params['configId'] = config_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -29001,8 +29285,8 @@ def _poll_resources_config_export_user_defined_apps_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id}', + method='POST', + resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29019,9 +29303,9 @@ def _poll_resources_config_export_user_defined_apps_serialize( @validate_call - def poll_resources_create_app( + def start_resources_create_app( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29035,12 +29319,12 @@ def poll_resources_create_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_create_app + """start_resources_create_app - Get the state of an ongoing operation. + Create an app from captures - :param id: The ID of the async operation. (required) - :type id: int + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29063,8 +29347,8 @@ def poll_resources_create_app( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29072,20 +29356,19 @@ def poll_resources_create_app( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_create_app_with_http_info( + def start_resources_create_app_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29099,12 +29382,12 @@ def poll_resources_create_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_create_app + """start_resources_create_app - Get the state of an ongoing operation. + Create an app from captures - :param id: The ID of the async operation. (required) - :type id: int + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29127,8 +29410,8 @@ def poll_resources_create_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29136,20 +29419,19 @@ def poll_resources_create_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_create_app_without_preload_content( + def start_resources_create_app_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29163,12 +29445,12 @@ def poll_resources_create_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_create_app + """start_resources_create_app - Get the state of an ongoing operation. + Create an app from captures - :param id: The ID of the async operation. (required) - :type id: int + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29191,8 +29473,8 @@ def poll_resources_create_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29200,19 +29482,18 @@ def poll_resources_create_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_create_app_serialize( + def _start_resources_create_app_serialize( self, - id, + create_app_operation, _request_auth, _content_type, _headers, @@ -29232,12 +29513,12 @@ def _poll_resources_create_app_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if create_app_operation is not None: + _body_params = create_app_operation # set the HTTP header `Accept` @@ -29248,6 +29529,19 @@ def _poll_resources_create_app_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29256,8 +29550,8 @@ def _poll_resources_create_app_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/create-app/{id}', + method='POST', + resource_path='/api/v2/resources/operations/create-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29274,9 +29568,9 @@ def _poll_resources_create_app_serialize( @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file( + def start_resources_custom_fuzzing_scripts_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29290,12 +29584,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_custom_fuzzing_scripts_upload_file + """start_resources_custom_fuzzing_scripts_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29318,8 +29612,8 @@ def poll_resources_custom_fuzzing_scripts_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29327,8 +29621,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -29336,12 +29629,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( + def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29355,12 +29648,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_custom_fuzzing_scripts_upload_file + """start_resources_custom_fuzzing_scripts_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29383,8 +29676,8 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29392,8 +29685,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -29401,12 +29693,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( + def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29420,12 +29712,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_custom_fuzzing_scripts_upload_file + """start_resources_custom_fuzzing_scripts_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29448,8 +29740,8 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29457,8 +29749,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -29466,11 +29757,11 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( + def _start_resources_custom_fuzzing_scripts_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -29490,11 +29781,11 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -29506,6 +29797,19 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29514,8 +29818,8 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29532,9 +29836,9 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( @validate_call - def poll_resources_edit_app( + def start_resources_edit_app( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29548,12 +29852,12 @@ def poll_resources_edit_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_edit_app + """start_resources_edit_app - Get the state of an ongoing operation. + Edit an application - :param id: The ID of the async operation. (required) - :type id: int + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29576,8 +29880,8 @@ def poll_resources_edit_app( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29585,20 +29889,19 @@ def poll_resources_edit_app( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_edit_app_with_http_info( + def start_resources_edit_app_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29612,12 +29915,12 @@ def poll_resources_edit_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_edit_app + """start_resources_edit_app - Get the state of an ongoing operation. + Edit an application - :param id: The ID of the async operation. (required) - :type id: int + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29640,8 +29943,8 @@ def poll_resources_edit_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29649,20 +29952,19 @@ def poll_resources_edit_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_edit_app_without_preload_content( + def start_resources_edit_app_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29676,12 +29978,12 @@ def poll_resources_edit_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_edit_app + """start_resources_edit_app - Get the state of an ongoing operation. + Edit an application - :param id: The ID of the async operation. (required) - :type id: int + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29704,8 +30006,8 @@ def poll_resources_edit_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29713,19 +30015,18 @@ def poll_resources_edit_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_edit_app_serialize( + def _start_resources_edit_app_serialize( self, - id, + edit_app_operation, _request_auth, _content_type, _headers, @@ -29745,12 +30046,12 @@ def _poll_resources_edit_app_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if edit_app_operation is not None: + _body_params = edit_app_operation # set the HTTP header `Accept` @@ -29761,6 +30062,19 @@ def _poll_resources_edit_app_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29769,8 +30083,8 @@ def _poll_resources_edit_app_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/edit-app/{id}', + method='POST', + resource_path='/api/v2/resources/operations/edit-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29787,9 +30101,9 @@ def _poll_resources_edit_app_serialize( @validate_call - def poll_resources_find_param_matches( + def start_resources_find_param_matches( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29803,12 +30117,12 @@ def poll_resources_find_param_matches( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_find_param_matches + """start_resources_find_param_matches - Get the state of an ongoing operation. + Find parameter matches - :param id: The ID of the async operation. (required) - :type id: int + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29831,8 +30145,8 @@ def poll_resources_find_param_matches( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29840,20 +30154,19 @@ def poll_resources_find_param_matches( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_find_param_matches_with_http_info( + def start_resources_find_param_matches_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29867,12 +30180,12 @@ def poll_resources_find_param_matches_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_find_param_matches + """start_resources_find_param_matches - Get the state of an ongoing operation. + Find parameter matches - :param id: The ID of the async operation. (required) - :type id: int + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29895,8 +30208,8 @@ def poll_resources_find_param_matches_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29904,20 +30217,19 @@ def poll_resources_find_param_matches_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_find_param_matches_without_preload_content( + def start_resources_find_param_matches_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29931,12 +30243,12 @@ def poll_resources_find_param_matches_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_find_param_matches + """start_resources_find_param_matches - Get the state of an ongoing operation. + Find parameter matches - :param id: The ID of the async operation. (required) - :type id: int + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29959,8 +30271,8 @@ def poll_resources_find_param_matches_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29968,19 +30280,18 @@ def poll_resources_find_param_matches_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_find_param_matches_serialize( + def _start_resources_find_param_matches_serialize( self, - id, + find_param_matches_operation, _request_auth, _content_type, _headers, @@ -30000,12 +30311,12 @@ def _poll_resources_find_param_matches_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if find_param_matches_operation is not None: + _body_params = find_param_matches_operation # set the HTTP header `Accept` @@ -30016,6 +30327,19 @@ def _poll_resources_find_param_matches_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30024,8 +30348,8 @@ def _poll_resources_find_param_matches_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/find-param-matches/{id}', + method='POST', + resource_path='/api/v2/resources/operations/find-param-matches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30042,9 +30366,9 @@ def _poll_resources_find_param_matches_serialize( @validate_call - def poll_resources_flow_library_upload_file( + def start_resources_flow_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30058,12 +30382,12 @@ def poll_resources_flow_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_flow_library_upload_file + """start_resources_flow_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30086,8 +30410,8 @@ def poll_resources_flow_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30095,8 +30419,7 @@ def poll_resources_flow_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -30104,12 +30427,12 @@ def poll_resources_flow_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_flow_library_upload_file_with_http_info( + def start_resources_flow_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30123,12 +30446,12 @@ def poll_resources_flow_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_flow_library_upload_file + """start_resources_flow_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30151,8 +30474,8 @@ def poll_resources_flow_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30160,8 +30483,7 @@ def poll_resources_flow_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -30169,12 +30491,12 @@ def poll_resources_flow_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_flow_library_upload_file_without_preload_content( + def start_resources_flow_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30188,12 +30510,12 @@ def poll_resources_flow_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_flow_library_upload_file + """start_resources_flow_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30216,8 +30538,8 @@ def poll_resources_flow_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30225,8 +30547,7 @@ def poll_resources_flow_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -30234,11 +30555,11 @@ def poll_resources_flow_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_flow_library_upload_file_serialize( + def _start_resources_flow_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -30258,11 +30579,11 @@ def _poll_resources_flow_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -30274,6 +30595,19 @@ def _poll_resources_flow_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30282,8 +30616,8 @@ def _poll_resources_flow_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/flow-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30300,9 +30634,9 @@ def _poll_resources_flow_library_upload_file_serialize( @validate_call - def poll_resources_get_attack_categories( + def start_resources_get_attack_categories( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30316,12 +30650,12 @@ def poll_resources_get_attack_categories( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_get_attack_categories + """start_resources_get_attack_categories - Get the state of an ongoing operation. + Get the list of attack categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30344,8 +30678,8 @@ def poll_resources_get_attack_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._start_resources_get_attack_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30353,20 +30687,19 @@ def poll_resources_get_attack_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attack_categories_with_http_info( + def start_resources_get_attack_categories_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30380,12 +30713,12 @@ def poll_resources_get_attack_categories_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_get_attack_categories + """start_resources_get_attack_categories - Get the state of an ongoing operation. + Get the list of attack categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30408,8 +30741,8 @@ def poll_resources_get_attack_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._start_resources_get_attack_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30417,20 +30750,19 @@ def poll_resources_get_attack_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attack_categories_without_preload_content( + def start_resources_get_attack_categories_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30444,12 +30776,12 @@ def poll_resources_get_attack_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_attack_categories + """start_resources_get_attack_categories - Get the state of an ongoing operation. + Get the list of attack categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30472,8 +30804,8 @@ def poll_resources_get_attack_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._start_resources_get_attack_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30481,19 +30813,18 @@ def poll_resources_get_attack_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_attack_categories_serialize( + def _start_resources_get_attack_categories_serialize( self, - id, + get_categories_operation, _request_auth, _content_type, _headers, @@ -30513,12 +30844,12 @@ def _poll_resources_get_attack_categories_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if get_categories_operation is not None: + _body_params = get_categories_operation # set the HTTP header `Accept` @@ -30529,6 +30860,19 @@ def _poll_resources_get_attack_categories_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30537,8 +30881,8 @@ def _poll_resources_get_attack_categories_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/get-attack-categories/{id}', + method='POST', + resource_path='/api/v2/resources/operations/get-attack-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30555,9 +30899,9 @@ def _poll_resources_get_attack_categories_serialize( @validate_call - def poll_resources_get_attacks( + def start_resources_get_attacks( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_attacks_operation: Optional[GetAttacksOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30571,12 +30915,12 @@ def poll_resources_get_attacks( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_get_attacks + """start_resources_get_attacks - Get the state of an ongoing operation. + Get the list of attacks - :param id: The ID of the async operation. (required) - :type id: int + :param get_attacks_operation: + :type get_attacks_operation: GetAttacksOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30599,8 +30943,8 @@ def poll_resources_get_attacks( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._start_resources_get_attacks_serialize( + get_attacks_operation=get_attacks_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30608,20 +30952,19 @@ def poll_resources_get_attacks( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attacks_with_http_info( + def start_resources_get_attacks_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_attacks_operation: Optional[GetAttacksOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30635,12 +30978,12 @@ def poll_resources_get_attacks_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_get_attacks + """start_resources_get_attacks - Get the state of an ongoing operation. + Get the list of attacks - :param id: The ID of the async operation. (required) - :type id: int + :param get_attacks_operation: + :type get_attacks_operation: GetAttacksOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30663,8 +31006,8 @@ def poll_resources_get_attacks_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._start_resources_get_attacks_serialize( + get_attacks_operation=get_attacks_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30672,20 +31015,19 @@ def poll_resources_get_attacks_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attacks_without_preload_content( + def start_resources_get_attacks_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_attacks_operation: Optional[GetAttacksOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30699,12 +31041,12 @@ def poll_resources_get_attacks_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_attacks + """start_resources_get_attacks - Get the state of an ongoing operation. + Get the list of attacks - :param id: The ID of the async operation. (required) - :type id: int + :param get_attacks_operation: + :type get_attacks_operation: GetAttacksOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30727,8 +31069,8 @@ def poll_resources_get_attacks_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._start_resources_get_attacks_serialize( + get_attacks_operation=get_attacks_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30736,19 +31078,18 @@ def poll_resources_get_attacks_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_attacks_serialize( + def _start_resources_get_attacks_serialize( self, - id, + get_attacks_operation, _request_auth, _content_type, _headers, @@ -30768,12 +31109,12 @@ def _poll_resources_get_attacks_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if get_attacks_operation is not None: + _body_params = get_attacks_operation # set the HTTP header `Accept` @@ -30784,6 +31125,19 @@ def _poll_resources_get_attacks_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30792,8 +31146,8 @@ def _poll_resources_get_attacks_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/get-attacks/{id}', + method='POST', + resource_path='/api/v2/resources/operations/get-attacks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30810,9 +31164,9 @@ def _poll_resources_get_attacks_serialize( @validate_call - def poll_resources_get_strike_categories( + def start_resources_get_strike_categories( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30826,12 +31180,12 @@ def poll_resources_get_strike_categories( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_get_strike_categories + """start_resources_get_strike_categories - Get the state of an ongoing operation. + Get the list of strike categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30854,8 +31208,8 @@ def poll_resources_get_strike_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strike_categories_serialize( - id=id, + _param = self._start_resources_get_strike_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30863,20 +31217,19 @@ def poll_resources_get_strike_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_strike_categories_with_http_info( + def start_resources_get_strike_categories_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30890,203 +31243,12 @@ def poll_resources_get_strike_categories_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_get_strike_categories - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_get_strike_categories_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_resources_get_strike_categories_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_resources_get_strike_categories - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_get_strike_categories_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_resources_get_strike_categories_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/get-strike-categories/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_resources_get_strikes( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_get_strikes + """start_resources_get_strike_categories - Get the state of an ongoing operation. + Get the list of strike categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31109,72 +31271,8 @@ def poll_resources_get_strikes( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strikes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_resources_get_strikes_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_get_strikes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_get_strikes_serialize( - id=id, + _param = self._start_resources_get_strike_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31182,20 +31280,19 @@ def poll_resources_get_strikes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_strikes_without_preload_content( + def start_resources_get_strike_categories_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31209,12 +31306,12 @@ def poll_resources_get_strikes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_strikes + """start_resources_get_strike_categories - Get the state of an ongoing operation. + Get the list of strike categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31237,8 +31334,8 @@ def poll_resources_get_strikes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strikes_serialize( - id=id, + _param = self._start_resources_get_strike_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31246,19 +31343,18 @@ def poll_resources_get_strikes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_strikes_serialize( + def _start_resources_get_strike_categories_serialize( self, - id, + get_categories_operation, _request_auth, _content_type, _headers, @@ -31278,12 +31374,12 @@ def _poll_resources_get_strikes_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if get_categories_operation is not None: + _body_params = get_categories_operation # set the HTTP header `Accept` @@ -31294,6 +31390,19 @@ def _poll_resources_get_strikes_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -31302,8 +31411,8 @@ def _poll_resources_get_strikes_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/get-strikes/{id}', + method='POST', + resource_path='/api/v2/resources/operations/get-strike-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31320,9 +31429,9 @@ def _poll_resources_get_strikes_serialize( @validate_call - def poll_resources_global_playlists_upload_file( + def start_resources_get_strikes( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + get_strikes_operation: Optional[GetStrikesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31335,13 +31444,13 @@ def poll_resources_global_playlists_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_global_playlists_upload_file + ) -> AsyncContext: + """start_resources_get_strikes - Get the state of an ongoing operation. + Get the list of strikes - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param get_strikes_operation: + :type get_strikes_operation: GetStrikesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31364,8 +31473,8 @@ def poll_resources_global_playlists_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_get_strikes_serialize( + get_strikes_operation=get_strikes_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31373,21 +31482,19 @@ def poll_resources_global_playlists_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_global_playlists_upload_file_with_http_info( + def start_resources_get_strikes_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + get_strikes_operation: Optional[GetStrikesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31400,13 +31507,13 @@ def poll_resources_global_playlists_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_global_playlists_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_get_strikes - Get the state of an ongoing operation. + Get the list of strikes - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param get_strikes_operation: + :type get_strikes_operation: GetStrikesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31429,8 +31536,8 @@ def poll_resources_global_playlists_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_get_strikes_serialize( + get_strikes_operation=get_strikes_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31438,21 +31545,19 @@ def poll_resources_global_playlists_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_global_playlists_upload_file_without_preload_content( + def start_resources_get_strikes_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + get_strikes_operation: Optional[GetStrikesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31466,12 +31571,12 @@ def poll_resources_global_playlists_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_global_playlists_upload_file + """start_resources_get_strikes - Get the state of an ongoing operation. + Get the list of strikes - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param get_strikes_operation: + :type get_strikes_operation: GetStrikesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31494,8 +31599,8 @@ def poll_resources_global_playlists_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_get_strikes_serialize( + get_strikes_operation=get_strikes_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31503,20 +31608,18 @@ def poll_resources_global_playlists_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_global_playlists_upload_file_serialize( + def _start_resources_get_strikes_serialize( self, - upload_file_id, + get_strikes_operation, _request_auth, _content_type, _headers, @@ -31536,12 +31639,12 @@ def _poll_resources_global_playlists_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if get_strikes_operation is not None: + _body_params = get_strikes_operation # set the HTTP header `Accept` @@ -31552,6 +31655,19 @@ def _poll_resources_global_playlists_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -31560,8 +31676,8 @@ def _poll_resources_global_playlists_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/operations/get-strikes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31578,9 +31694,9 @@ def _poll_resources_global_playlists_upload_file_serialize( @validate_call - def poll_resources_http_library_upload_file( + def start_resources_global_playlists_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31594,12 +31710,12 @@ def poll_resources_http_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_http_library_upload_file + """start_resources_global_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31622,8 +31738,8 @@ def poll_resources_http_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_global_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31631,8 +31747,7 @@ def poll_resources_http_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31640,12 +31755,12 @@ def poll_resources_http_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_http_library_upload_file_with_http_info( + def start_resources_global_playlists_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31659,12 +31774,12 @@ def poll_resources_http_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_http_library_upload_file + """start_resources_global_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31687,8 +31802,8 @@ def poll_resources_http_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_global_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31696,8 +31811,7 @@ def poll_resources_http_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31705,12 +31819,12 @@ def poll_resources_http_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_http_library_upload_file_without_preload_content( + def start_resources_global_playlists_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31724,12 +31838,12 @@ def poll_resources_http_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_http_library_upload_file + """start_resources_global_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31752,8 +31866,8 @@ def poll_resources_http_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_global_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31761,8 +31875,7 @@ def poll_resources_http_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31770,11 +31883,11 @@ def poll_resources_http_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_http_library_upload_file_serialize( + def _start_resources_global_playlists_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -31794,11 +31907,11 @@ def _poll_resources_http_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -31810,6 +31923,19 @@ def _poll_resources_http_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -31818,8 +31944,8 @@ def _poll_resources_http_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/global-playlists/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31836,9 +31962,9 @@ def _poll_resources_http_library_upload_file_serialize( @validate_call - def poll_resources_media_files_upload_file( + def start_resources_http_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31852,12 +31978,12 @@ def poll_resources_media_files_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_media_files_upload_file + """start_resources_http_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31880,8 +32006,8 @@ def poll_resources_media_files_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_http_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31889,8 +32015,7 @@ def poll_resources_media_files_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31898,12 +32023,12 @@ def poll_resources_media_files_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_files_upload_file_with_http_info( + def start_resources_http_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31917,12 +32042,12 @@ def poll_resources_media_files_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_media_files_upload_file + """start_resources_http_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31945,8 +32070,8 @@ def poll_resources_media_files_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_http_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31954,8 +32079,7 @@ def poll_resources_media_files_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31963,12 +32087,12 @@ def poll_resources_media_files_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_files_upload_file_without_preload_content( + def start_resources_http_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31982,12 +32106,12 @@ def poll_resources_media_files_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_media_files_upload_file + """start_resources_http_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32010,8 +32134,8 @@ def poll_resources_media_files_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_http_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32019,8 +32143,7 @@ def poll_resources_media_files_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32028,11 +32151,11 @@ def poll_resources_media_files_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_media_files_upload_file_serialize( + def _start_resources_http_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -32052,11 +32175,11 @@ def _poll_resources_media_files_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -32068,6 +32191,19 @@ def _poll_resources_media_files_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -32076,8 +32212,8 @@ def _poll_resources_media_files_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/media-files/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/http-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32094,9 +32230,9 @@ def _poll_resources_media_files_upload_file_serialize( @validate_call - def poll_resources_media_library_upload_file( + def start_resources_media_files_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32110,12 +32246,12 @@ def poll_resources_media_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_media_library_upload_file + """start_resources_media_files_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32138,8 +32274,8 @@ def poll_resources_media_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_files_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32147,8 +32283,7 @@ def poll_resources_media_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32156,12 +32291,12 @@ def poll_resources_media_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_library_upload_file_with_http_info( + def start_resources_media_files_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32175,12 +32310,12 @@ def poll_resources_media_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_media_library_upload_file + """start_resources_media_files_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32203,8 +32338,8 @@ def poll_resources_media_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_files_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32212,8 +32347,7 @@ def poll_resources_media_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32221,12 +32355,12 @@ def poll_resources_media_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_library_upload_file_without_preload_content( + def start_resources_media_files_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32240,12 +32374,12 @@ def poll_resources_media_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_media_library_upload_file + """start_resources_media_files_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32268,8 +32402,8 @@ def poll_resources_media_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_files_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32277,8 +32411,7 @@ def poll_resources_media_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32286,11 +32419,11 @@ def poll_resources_media_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_media_library_upload_file_serialize( + def _start_resources_media_files_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -32310,11 +32443,11 @@ def _poll_resources_media_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -32326,6 +32459,19 @@ def _poll_resources_media_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -32334,8 +32480,8 @@ def _poll_resources_media_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/media-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/media-files/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32352,9 +32498,9 @@ def _poll_resources_media_library_upload_file_serialize( @validate_call - def poll_resources_other_library_upload_file( + def start_resources_media_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32368,12 +32514,12 @@ def poll_resources_other_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_other_library_upload_file + """start_resources_media_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32396,8 +32542,8 @@ def poll_resources_other_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32405,8 +32551,7 @@ def poll_resources_other_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32414,12 +32559,12 @@ def poll_resources_other_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_other_library_upload_file_with_http_info( + def start_resources_media_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32433,12 +32578,12 @@ def poll_resources_other_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_other_library_upload_file + """start_resources_media_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32461,8 +32606,8 @@ def poll_resources_other_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32470,8 +32615,7 @@ def poll_resources_other_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32479,12 +32623,12 @@ def poll_resources_other_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_other_library_upload_file_without_preload_content( + def start_resources_media_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32498,12 +32642,12 @@ def poll_resources_other_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_other_library_upload_file + """start_resources_media_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32526,8 +32670,8 @@ def poll_resources_other_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32535,8 +32679,7 @@ def poll_resources_other_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32544,11 +32687,11 @@ def poll_resources_other_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_other_library_upload_file_serialize( + def _start_resources_media_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -32568,11 +32711,11 @@ def _poll_resources_other_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -32584,6 +32727,19 @@ def _poll_resources_other_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -32592,8 +32748,8 @@ def _poll_resources_other_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/other-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/media-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32610,9 +32766,9 @@ def _poll_resources_other_library_upload_file_serialize( @validate_call - def poll_resources_payloads_upload_file( + def start_resources_other_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32626,12 +32782,12 @@ def poll_resources_payloads_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_payloads_upload_file + """start_resources_other_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32654,8 +32810,8 @@ def poll_resources_payloads_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_other_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32663,8 +32819,7 @@ def poll_resources_payloads_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32672,12 +32827,12 @@ def poll_resources_payloads_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_payloads_upload_file_with_http_info( + def start_resources_other_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32691,12 +32846,12 @@ def poll_resources_payloads_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_payloads_upload_file + """start_resources_other_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32719,8 +32874,8 @@ def poll_resources_payloads_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_other_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32728,8 +32883,7 @@ def poll_resources_payloads_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32737,12 +32891,12 @@ def poll_resources_payloads_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_payloads_upload_file_without_preload_content( + def start_resources_other_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32756,12 +32910,12 @@ def poll_resources_payloads_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_payloads_upload_file + """start_resources_other_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32784,8 +32938,8 @@ def poll_resources_payloads_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_other_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32793,8 +32947,7 @@ def poll_resources_payloads_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32802,11 +32955,11 @@ def poll_resources_payloads_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_payloads_upload_file_serialize( + def _start_resources_other_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -32826,11 +32979,11 @@ def _poll_resources_payloads_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -32842,6 +32995,19 @@ def _poll_resources_payloads_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -32850,8 +33016,8 @@ def _poll_resources_payloads_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/payloads/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/other-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32868,9 +33034,9 @@ def _poll_resources_payloads_upload_file_serialize( @validate_call - def poll_resources_pcaps_upload_file( + def start_resources_payloads_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32884,12 +33050,12 @@ def poll_resources_pcaps_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_pcaps_upload_file + """start_resources_payloads_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32912,8 +33078,8 @@ def poll_resources_pcaps_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_payloads_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32921,8 +33087,7 @@ def poll_resources_pcaps_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32930,12 +33095,12 @@ def poll_resources_pcaps_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_pcaps_upload_file_with_http_info( + def start_resources_payloads_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32949,12 +33114,12 @@ def poll_resources_pcaps_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_pcaps_upload_file + """start_resources_payloads_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32977,8 +33142,8 @@ def poll_resources_pcaps_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_payloads_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32986,8 +33151,7 @@ def poll_resources_pcaps_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32995,12 +33159,12 @@ def poll_resources_pcaps_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_pcaps_upload_file_without_preload_content( + def start_resources_payloads_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33014,12 +33178,12 @@ def poll_resources_pcaps_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_pcaps_upload_file + """start_resources_payloads_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33042,8 +33206,8 @@ def poll_resources_pcaps_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_payloads_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33051,8 +33215,7 @@ def poll_resources_pcaps_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33060,11 +33223,11 @@ def poll_resources_pcaps_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_pcaps_upload_file_serialize( + def _start_resources_payloads_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -33084,11 +33247,11 @@ def _poll_resources_pcaps_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33100,6 +33263,19 @@ def _poll_resources_pcaps_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33108,8 +33284,8 @@ def _poll_resources_pcaps_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/payloads/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33126,9 +33302,9 @@ def _poll_resources_pcaps_upload_file_serialize( @validate_call - def poll_resources_playlists_upload_file( + def start_resources_pcaps_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33142,12 +33318,12 @@ def poll_resources_playlists_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_playlists_upload_file + """start_resources_pcaps_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33170,8 +33346,8 @@ def poll_resources_playlists_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_pcaps_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33179,8 +33355,7 @@ def poll_resources_playlists_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33188,12 +33363,12 @@ def poll_resources_playlists_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_playlists_upload_file_with_http_info( + def start_resources_pcaps_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33207,12 +33382,12 @@ def poll_resources_playlists_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_playlists_upload_file + """start_resources_pcaps_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33235,8 +33410,8 @@ def poll_resources_playlists_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_pcaps_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33244,8 +33419,7 @@ def poll_resources_playlists_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33253,12 +33427,12 @@ def poll_resources_playlists_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_playlists_upload_file_without_preload_content( + def start_resources_pcaps_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33272,12 +33446,12 @@ def poll_resources_playlists_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_playlists_upload_file + """start_resources_pcaps_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33300,8 +33474,8 @@ def poll_resources_playlists_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_pcaps_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33309,8 +33483,7 @@ def poll_resources_playlists_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33318,11 +33491,11 @@ def poll_resources_playlists_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_playlists_upload_file_serialize( + def _start_resources_pcaps_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -33342,11 +33515,11 @@ def _poll_resources_playlists_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33358,6 +33531,19 @@ def _poll_resources_playlists_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33366,8 +33552,8 @@ def _poll_resources_playlists_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/playlists/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/pcaps/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33384,9 +33570,9 @@ def _poll_resources_playlists_upload_file_serialize( @validate_call - def poll_resources_sip_library_upload_file( + def start_resources_playlists_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33400,12 +33586,12 @@ def poll_resources_sip_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_sip_library_upload_file + """start_resources_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33428,8 +33614,8 @@ def poll_resources_sip_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33437,8 +33623,7 @@ def poll_resources_sip_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33446,12 +33631,12 @@ def poll_resources_sip_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_sip_library_upload_file_with_http_info( + def start_resources_playlists_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33465,12 +33650,12 @@ def poll_resources_sip_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_sip_library_upload_file + """start_resources_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33493,8 +33678,8 @@ def poll_resources_sip_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33502,8 +33687,7 @@ def poll_resources_sip_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33511,12 +33695,12 @@ def poll_resources_sip_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_sip_library_upload_file_without_preload_content( + def start_resources_playlists_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33530,12 +33714,12 @@ def poll_resources_sip_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_sip_library_upload_file + """start_resources_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33558,8 +33742,8 @@ def poll_resources_sip_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33567,8 +33751,7 @@ def poll_resources_sip_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33576,11 +33759,11 @@ def poll_resources_sip_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_sip_library_upload_file_serialize( + def _start_resources_playlists_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -33600,11 +33783,11 @@ def _poll_resources_sip_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33616,6 +33799,19 @@ def _poll_resources_sip_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33624,8 +33820,8 @@ def _poll_resources_sip_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/playlists/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33642,9 +33838,9 @@ def _poll_resources_sip_library_upload_file_serialize( @validate_call - def poll_resources_stats_profile_upload_file( + def start_resources_sip_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33658,12 +33854,12 @@ def poll_resources_stats_profile_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_stats_profile_upload_file + """start_resources_sip_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33686,8 +33882,8 @@ def poll_resources_stats_profile_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_sip_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33695,8 +33891,7 @@ def poll_resources_stats_profile_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33704,12 +33899,12 @@ def poll_resources_stats_profile_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_stats_profile_upload_file_with_http_info( + def start_resources_sip_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33723,12 +33918,12 @@ def poll_resources_stats_profile_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_stats_profile_upload_file + """start_resources_sip_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33751,8 +33946,8 @@ def poll_resources_stats_profile_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_sip_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33760,8 +33955,7 @@ def poll_resources_stats_profile_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33769,12 +33963,12 @@ def poll_resources_stats_profile_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_stats_profile_upload_file_without_preload_content( + def start_resources_sip_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33788,12 +33982,12 @@ def poll_resources_stats_profile_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_stats_profile_upload_file + """start_resources_sip_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33816,8 +34010,8 @@ def poll_resources_stats_profile_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_sip_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33825,8 +34019,7 @@ def poll_resources_stats_profile_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33834,11 +34027,11 @@ def poll_resources_stats_profile_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_stats_profile_upload_file_serialize( + def _start_resources_sip_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -33858,11 +34051,11 @@ def _poll_resources_stats_profile_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33874,6 +34067,19 @@ def _poll_resources_stats_profile_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33882,8 +34088,8 @@ def _poll_resources_stats_profile_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/sip-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33900,9 +34106,9 @@ def _poll_resources_stats_profile_upload_file_serialize( @validate_call - def poll_resources_tls_certificates_upload_file( + def start_resources_stats_profile_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33916,12 +34122,12 @@ def poll_resources_tls_certificates_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_tls_certificates_upload_file + """start_resources_stats_profile_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33944,8 +34150,8 @@ def poll_resources_tls_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_stats_profile_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33953,8 +34159,7 @@ def poll_resources_tls_certificates_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33962,12 +34167,12 @@ def poll_resources_tls_certificates_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_certificates_upload_file_with_http_info( + def start_resources_stats_profile_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33981,12 +34186,12 @@ def poll_resources_tls_certificates_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_tls_certificates_upload_file + """start_resources_stats_profile_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34009,8 +34214,8 @@ def poll_resources_tls_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_stats_profile_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34018,8 +34223,7 @@ def poll_resources_tls_certificates_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34027,12 +34231,12 @@ def poll_resources_tls_certificates_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_certificates_upload_file_without_preload_content( + def start_resources_stats_profile_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34046,12 +34250,12 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_certificates_upload_file + """start_resources_stats_profile_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34074,8 +34278,8 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_stats_profile_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34083,8 +34287,7 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34092,11 +34295,11 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_tls_certificates_upload_file_serialize( + def _start_resources_stats_profile_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -34116,11 +34319,11 @@ def _poll_resources_tls_certificates_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -34132,6 +34335,19 @@ def _poll_resources_tls_certificates_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34140,8 +34356,8 @@ def _poll_resources_tls_certificates_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/stats-profile/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34158,9 +34374,9 @@ def _poll_resources_tls_certificates_upload_file_serialize( @validate_call - def poll_resources_tls_dhs_upload_file( + def start_resources_tls_certificates_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34174,12 +34390,12 @@ def poll_resources_tls_dhs_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_tls_dhs_upload_file + """start_resources_tls_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34202,8 +34418,8 @@ def poll_resources_tls_dhs_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34211,8 +34427,7 @@ def poll_resources_tls_dhs_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34220,12 +34435,12 @@ def poll_resources_tls_dhs_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_dhs_upload_file_with_http_info( + def start_resources_tls_certificates_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34239,12 +34454,12 @@ def poll_resources_tls_dhs_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_tls_dhs_upload_file + """start_resources_tls_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34267,8 +34482,8 @@ def poll_resources_tls_dhs_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34276,8 +34491,7 @@ def poll_resources_tls_dhs_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34285,12 +34499,12 @@ def poll_resources_tls_dhs_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_dhs_upload_file_without_preload_content( + def start_resources_tls_certificates_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34304,12 +34518,12 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_dhs_upload_file + """start_resources_tls_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34332,8 +34546,8 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34341,8 +34555,7 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34350,11 +34563,11 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_tls_dhs_upload_file_serialize( + def _start_resources_tls_certificates_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -34374,11 +34587,11 @@ def _poll_resources_tls_dhs_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -34390,6 +34603,19 @@ def _poll_resources_tls_dhs_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34398,8 +34624,8 @@ def _poll_resources_tls_dhs_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/tls-certificates/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34416,9 +34642,9 @@ def _poll_resources_tls_dhs_upload_file_serialize( @validate_call - def poll_resources_tls_keys_upload_file( + def start_resources_tls_dhs_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34432,12 +34658,12 @@ def poll_resources_tls_keys_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_tls_keys_upload_file + """start_resources_tls_dhs_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34460,8 +34686,8 @@ def poll_resources_tls_keys_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_dhs_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34469,8 +34695,7 @@ def poll_resources_tls_keys_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34478,12 +34703,12 @@ def poll_resources_tls_keys_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_keys_upload_file_with_http_info( + def start_resources_tls_dhs_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34497,12 +34722,12 @@ def poll_resources_tls_keys_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_tls_keys_upload_file + """start_resources_tls_dhs_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34525,8 +34750,8 @@ def poll_resources_tls_keys_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_dhs_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34534,8 +34759,7 @@ def poll_resources_tls_keys_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34543,12 +34767,12 @@ def poll_resources_tls_keys_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_keys_upload_file_without_preload_content( + def start_resources_tls_dhs_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34562,12 +34786,12 @@ def poll_resources_tls_keys_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_keys_upload_file + """start_resources_tls_dhs_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34590,8 +34814,8 @@ def poll_resources_tls_keys_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_dhs_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34599,8 +34823,7 @@ def poll_resources_tls_keys_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34608,11 +34831,11 @@ def poll_resources_tls_keys_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_tls_keys_upload_file_serialize( + def _start_resources_tls_dhs_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -34632,11 +34855,11 @@ def _poll_resources_tls_keys_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -34648,6 +34871,19 @@ def _poll_resources_tls_keys_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34656,8 +34892,8 @@ def _poll_resources_tls_keys_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/tls-dhs/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34674,9 +34910,9 @@ def _poll_resources_tls_keys_upload_file_serialize( @validate_call - def poll_resources_user_defined_apps_export_all( + def start_resources_tls_keys_upload_file( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34689,13 +34925,13 @@ def poll_resources_user_defined_apps_export_all( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_user_defined_apps_export_all + ) -> None: + """start_resources_tls_keys_upload_file - Get the state of an ongoing operation. + Upload a file. - :param id: The ID of the async operation. (required) - :type id: int + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34718,8 +34954,8 @@ def poll_resources_user_defined_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_tls_keys_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34727,20 +34963,20 @@ def poll_resources_user_defined_apps_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_user_defined_apps_export_all_with_http_info( + def start_resources_tls_keys_upload_file_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34753,13 +34989,13 @@ def poll_resources_user_defined_apps_export_all_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_user_defined_apps_export_all + ) -> ApiResponse[None]: + """start_resources_tls_keys_upload_file - Get the state of an ongoing operation. + Upload a file. - :param id: The ID of the async operation. (required) - :type id: int + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34782,8 +35018,8 @@ def poll_resources_user_defined_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_tls_keys_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34791,20 +35027,20 @@ def poll_resources_user_defined_apps_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_user_defined_apps_export_all_without_preload_content( + def start_resources_tls_keys_upload_file_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34818,12 +35054,12 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_user_defined_apps_export_all + """start_resources_tls_keys_upload_file - Get the state of an ongoing operation. + Upload a file. - :param id: The ID of the async operation. (required) - :type id: int + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34846,8 +35082,8 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_tls_keys_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34855,19 +35091,19 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_user_defined_apps_export_all_serialize( + def _start_resources_tls_keys_upload_file_serialize( self, - id, + file, _request_auth, _content_type, _headers, @@ -34887,11 +35123,11 @@ def _poll_resources_user_defined_apps_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -34903,6 +35139,19 @@ def _poll_resources_user_defined_apps_export_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34911,8 +35160,8 @@ def _poll_resources_user_defined_apps_export_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/export-all/{id}', + method='POST', + resource_path='/api/v2/resources/tls-keys/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34929,9 +35178,9 @@ def _poll_resources_user_defined_apps_export_all_serialize( @validate_call - def poll_resources_user_defined_apps_upload_file( + def start_resources_user_defined_apps_export_all( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34944,7436 +35193,13 @@ def poll_resources_user_defined_apps_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_user_defined_apps_upload_file + ) -> AsyncContext: + """start_resources_user_defined_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_resources_user_defined_apps_upload_file_with_http_info( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_user_defined_apps_upload_file - - Get the state of an ongoing operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_resources_user_defined_apps_upload_file_without_preload_content( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_resources_user_defined_apps_upload_file - - Get the state of an ongoing operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_resources_user_defined_apps_upload_file_serialize( - self, - upload_file_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_apps_export_all( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_apps_export_all - - Export all apps created by the user. Optionally, provide a list of app IDs to export. - - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_apps_export_all_with_http_info( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_apps_export_all - - Export all apps created by the user. Optionally, provide a list of app IDs to export. - - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_apps_export_all_without_preload_content( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_apps_export_all - - Export all apps created by the user. Optionally, provide a list of app IDs to export. - - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_apps_export_all_serialize( - self, - export_apps_operation_input, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if export_apps_operation_input is not None: - _body_params = export_apps_operation_input - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/apps/operations/export-all', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_captures_batch_delete( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_captures_batch_delete - - Delete one or more captures - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_batch_delete_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_captures_batch_delete_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_captures_batch_delete - - Delete one or more captures - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_batch_delete_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_captures_batch_delete_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_captures_batch_delete - - Delete one or more captures - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_batch_delete_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_captures_batch_delete_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/captures/operations/batch-delete', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_captures_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_captures_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_captures_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_captures_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_captures_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_captures_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_captures_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/captures/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_certificates_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_certificates_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_certificates_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_certificates_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/certificates/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_config_export_user_defined_apps( - self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_config_export_user_defined_apps - - Export all apps created by the user. - - :param config_id: The ID of the config. (required) - :type config_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_config_export_user_defined_apps_with_http_info( - self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_config_export_user_defined_apps - - Export all apps created by the user. - - :param config_id: The ID of the config. (required) - :type config_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_config_export_user_defined_apps_without_preload_content( - self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_config_export_user_defined_apps - - Export all apps created by the user. - - :param config_id: The ID of the config. (required) - :type config_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_config_export_user_defined_apps_serialize( - self, - config_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if config_id is not None: - _path_params['configId'] = config_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_create_app( - self, - create_app_operation: Optional[CreateAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_create_app - - Create an app from captures - - :param create_app_operation: - :type create_app_operation: CreateAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_create_app_with_http_info( - self, - create_app_operation: Optional[CreateAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_create_app - - Create an app from captures - - :param create_app_operation: - :type create_app_operation: CreateAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_create_app_without_preload_content( - self, - create_app_operation: Optional[CreateAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_create_app - - Create an app from captures - - :param create_app_operation: - :type create_app_operation: CreateAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_create_app_serialize( - self, - create_app_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if create_app_operation is not None: - _body_params = create_app_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/create-app', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_custom_fuzzing_scripts_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_custom_fuzzing_scripts_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_custom_fuzzing_scripts_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_custom_fuzzing_scripts_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_custom_fuzzing_scripts_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_edit_app( - self, - edit_app_operation: Optional[EditAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_edit_app - - Edit an application - - :param edit_app_operation: - :type edit_app_operation: EditAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_edit_app_with_http_info( - self, - edit_app_operation: Optional[EditAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_edit_app - - Edit an application - - :param edit_app_operation: - :type edit_app_operation: EditAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_edit_app_without_preload_content( - self, - edit_app_operation: Optional[EditAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_edit_app - - Edit an application - - :param edit_app_operation: - :type edit_app_operation: EditAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_edit_app_serialize( - self, - edit_app_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if edit_app_operation is not None: - _body_params = edit_app_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/edit-app', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_find_param_matches( - self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_find_param_matches - - Find parameter matches - - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_find_param_matches_with_http_info( - self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_find_param_matches - - Find parameter matches - - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_find_param_matches_without_preload_content( - self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_find_param_matches - - Find parameter matches - - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_find_param_matches_serialize( - self, - find_param_matches_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if find_param_matches_operation is not None: - _body_params = find_param_matches_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/find-param-matches', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_flow_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_flow_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_flow_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_flow_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_flow_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_flow_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_flow_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/flow-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_get_attack_categories( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_get_attack_categories - - Get the list of attack categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attack_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_attack_categories_with_http_info( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_get_attack_categories - - Get the list of attack categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attack_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_attack_categories_without_preload_content( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_get_attack_categories - - Get the list of attack categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attack_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_get_attack_categories_serialize( - self, - get_categories_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if get_categories_operation is not None: - _body_params = get_categories_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/get-attack-categories', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_get_attacks( - self, - get_attacks_operation: Optional[GetAttacksOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_get_attacks - - Get the list of attacks - - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_attacks_with_http_info( - self, - get_attacks_operation: Optional[GetAttacksOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_get_attacks - - Get the list of attacks - - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_attacks_without_preload_content( - self, - get_attacks_operation: Optional[GetAttacksOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_get_attacks - - Get the list of attacks - - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_get_attacks_serialize( - self, - get_attacks_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if get_attacks_operation is not None: - _body_params = get_attacks_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/get-attacks', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_get_strike_categories( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_get_strike_categories - - Get the list of strike categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strike_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_strike_categories_with_http_info( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_get_strike_categories - - Get the list of strike categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strike_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_strike_categories_without_preload_content( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_get_strike_categories - - Get the list of strike categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strike_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_get_strike_categories_serialize( - self, - get_categories_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if get_categories_operation is not None: - _body_params = get_categories_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/get-strike-categories', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_get_strikes( - self, - get_strikes_operation: Optional[GetStrikesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_get_strikes - - Get the list of strikes - - :param get_strikes_operation: - :type get_strikes_operation: GetStrikesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strikes_serialize( - get_strikes_operation=get_strikes_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_strikes_with_http_info( - self, - get_strikes_operation: Optional[GetStrikesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_get_strikes - - Get the list of strikes - - :param get_strikes_operation: - :type get_strikes_operation: GetStrikesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strikes_serialize( - get_strikes_operation=get_strikes_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_strikes_without_preload_content( - self, - get_strikes_operation: Optional[GetStrikesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_get_strikes - - Get the list of strikes - - :param get_strikes_operation: - :type get_strikes_operation: GetStrikesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strikes_serialize( - get_strikes_operation=get_strikes_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_get_strikes_serialize( - self, - get_strikes_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if get_strikes_operation is not None: - _body_params = get_strikes_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/get-strikes', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_global_playlists_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_global_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_global_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_global_playlists_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_global_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_global_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_global_playlists_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_global_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_global_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_global_playlists_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/global-playlists/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_http_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_http_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_http_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_http_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_http_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_http_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_http_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_http_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_http_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_http_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/http-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_media_files_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_media_files_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_files_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_media_files_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_media_files_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_files_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_media_files_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_media_files_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_files_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_media_files_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/media-files/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_media_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_media_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_media_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_media_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_media_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_media_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_media_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/media-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_other_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_other_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_other_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_other_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_other_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_other_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_other_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_other_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_other_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_other_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/other-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_payloads_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_payloads_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_payloads_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_payloads_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_payloads_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_payloads_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_payloads_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_payloads_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_payloads_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_payloads_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/payloads/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_pcaps_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_pcaps_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_pcaps_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_pcaps_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_pcaps_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_pcaps_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_pcaps_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_pcaps_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_pcaps_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_pcaps_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/pcaps/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_playlists_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_playlists_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_playlists_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_playlists_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/playlists/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_sip_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_sip_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_sip_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_sip_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_sip_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_sip_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_sip_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_sip_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_sip_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_sip_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/sip-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_stats_profile_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_stats_profile_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_stats_profile_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_stats_profile_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_stats_profile_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_stats_profile_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_stats_profile_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_stats_profile_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_stats_profile_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_stats_profile_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/stats-profile/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_tls_certificates_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_tls_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_certificates_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_tls_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_certificates_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_tls_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_tls_certificates_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/tls-certificates/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_tls_dhs_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_tls_dhs_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_dhs_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_dhs_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_tls_dhs_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_dhs_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_dhs_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_tls_dhs_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_dhs_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_tls_dhs_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/tls-dhs/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_tls_keys_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_tls_keys_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_keys_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_keys_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_tls_keys_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_keys_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_keys_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_tls_keys_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_keys_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_tls_keys_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_user_defined_apps_export_all( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_user_defined_apps_export_all - - Export all apps created by the user. Optionally, provide a list of app IDs to export. - - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42412,7 +35238,7 @@ def start_resources_user_defined_apps_export_all( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_export_all_with_http_info( @@ -42475,7 +35301,7 @@ def start_resources_user_defined_apps_export_all_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_export_all_without_preload_content( @@ -42538,7 +35364,7 @@ def start_resources_user_defined_apps_export_all_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_user_defined_apps_export_all_serialize( self, @@ -42678,7 +35504,7 @@ def start_resources_user_defined_apps_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_upload_file_with_http_info( @@ -42742,7 +35568,7 @@ def start_resources_user_defined_apps_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_upload_file_without_preload_content( @@ -42806,7 +35632,7 @@ def start_resources_user_defined_apps_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_user_defined_apps_upload_file_serialize( self, diff --git a/cyperf/api/authorization_api.py b/cyperf/api/authorization_api.py index d1a8d8b..37b7b39 100644 --- a/cyperf/api/authorization_api.py +++ b/cyperf/api/authorization_api.py @@ -122,7 +122,7 @@ def authenticate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def authenticate_with_http_info( @@ -205,7 +205,7 @@ def authenticate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def authenticate_without_preload_content( @@ -288,7 +288,7 @@ def authenticate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _authenticate_serialize( self, diff --git a/cyperf/api/brokers_api.py b/cyperf/api/brokers_api.py index 08483ec..2c39111 100644 --- a/cyperf/api/brokers_api.py +++ b/cyperf/api/brokers_api.py @@ -105,7 +105,7 @@ def create_brokers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_brokers_with_http_info( @@ -170,7 +170,7 @@ def create_brokers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_brokers_without_preload_content( @@ -235,7 +235,7 @@ def create_brokers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_brokers_serialize( self, @@ -378,7 +378,7 @@ def delete_broker( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_broker_with_http_info( @@ -444,7 +444,7 @@ def delete_broker_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_broker_without_preload_content( @@ -510,7 +510,7 @@ def delete_broker_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_broker_serialize( self, @@ -637,7 +637,7 @@ def get_broker_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_broker_by_id_with_http_info( @@ -701,7 +701,7 @@ def get_broker_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_broker_by_id_without_preload_content( @@ -765,7 +765,7 @@ def get_broker_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_broker_by_id_serialize( self, @@ -897,7 +897,7 @@ def get_brokers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_brokers_with_http_info( @@ -966,7 +966,7 @@ def get_brokers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_brokers_without_preload_content( @@ -1035,7 +1035,7 @@ def get_brokers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_brokers_serialize( self, @@ -1175,7 +1175,7 @@ def patch_broker( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_broker_with_http_info( @@ -1245,7 +1245,7 @@ def patch_broker_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_broker_without_preload_content( @@ -1315,7 +1315,7 @@ def patch_broker_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_broker_serialize( self, diff --git a/cyperf/api/configurations_api.py b/cyperf/api/configurations_api.py index a353176..a68ff2f 100644 --- a/cyperf/api/configurations_api.py +++ b/cyperf/api/configurations_api.py @@ -111,7 +111,7 @@ def create_configs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_configs_with_http_info( @@ -176,7 +176,7 @@ def create_configs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_configs_without_preload_content( @@ -241,7 +241,7 @@ def create_configs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_configs_serialize( self, @@ -387,7 +387,7 @@ def delete_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_config_with_http_info( @@ -453,7 +453,7 @@ def delete_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_config_without_preload_content( @@ -519,7 +519,7 @@ def delete_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_config_serialize( self, @@ -655,7 +655,7 @@ def get_config_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_by_id_with_http_info( @@ -728,7 +728,7 @@ def get_config_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_by_id_without_preload_content( @@ -801,7 +801,7 @@ def get_config_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_by_id_serialize( self, @@ -945,7 +945,7 @@ def get_config_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_categories_with_http_info( @@ -1013,7 +1013,7 @@ def get_config_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_categories_without_preload_content( @@ -1081,7 +1081,7 @@ def get_config_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_categories_serialize( self, @@ -1235,7 +1235,7 @@ def get_configs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_configs_with_http_info( @@ -1319,7 +1319,7 @@ def get_configs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_configs_without_preload_content( @@ -1403,7 +1403,7 @@ def get_configs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_configs_serialize( self, @@ -1561,7 +1561,7 @@ def get_resources_custom_import_operations( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_import_operations_with_http_info( @@ -1629,7 +1629,7 @@ def get_resources_custom_import_operations_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_import_operations_without_preload_content( @@ -1697,7 +1697,7 @@ def get_resources_custom_import_operations_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_import_operations_serialize( self, @@ -1836,7 +1836,7 @@ def patch_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_config_with_http_info( @@ -1905,7 +1905,7 @@ def patch_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_config_without_preload_content( @@ -1974,7 +1974,7 @@ def patch_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_config_serialize( self, @@ -2055,10 +2055,50 @@ def _patch_config_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_configs_batch_delete( + def start_configs_batch_delete( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2072,12 +2112,12 @@ def poll_configs_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_configs_batch_delete + """start_configs_batch_delete - Get the state of an ongoing operation. + Remove multiple configurations. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2100,8 +2140,8 @@ def poll_configs_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_batch_delete_serialize( - id=id, + _param = self._start_configs_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2109,20 +2149,19 @@ def poll_configs_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_batch_delete_with_http_info( + def start_configs_batch_delete_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2136,12 +2175,12 @@ def poll_configs_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_configs_batch_delete + """start_configs_batch_delete - Get the state of an ongoing operation. + Remove multiple configurations. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2164,8 +2203,8 @@ def poll_configs_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_batch_delete_serialize( - id=id, + _param = self._start_configs_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2173,20 +2212,19 @@ def poll_configs_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_batch_delete_without_preload_content( + def start_configs_batch_delete_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2200,12 +2238,12 @@ def poll_configs_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_batch_delete + """start_configs_batch_delete - Get the state of an ongoing operation. + Remove multiple configurations. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2228,8 +2266,8 @@ def poll_configs_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_batch_delete_serialize( - id=id, + _param = self._start_configs_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2237,19 +2275,18 @@ def poll_configs_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_batch_delete_serialize( + def _start_configs_batch_delete_serialize( self, - id, + start_agents_batch_delete_request_inner, _request_auth, _content_type, _headers, @@ -2259,6 +2296,7 @@ def _poll_configs_batch_delete_serialize( _host = None _collection_formats: Dict[str, str] = { + 'StartAgentsBatchDeleteRequestInner': '', } _path_params: Dict[str, str] = {} @@ -2269,12 +2307,12 @@ def _poll_configs_batch_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if start_agents_batch_delete_request_inner is not None: + _body_params = start_agents_batch_delete_request_inner # set the HTTP header `Accept` @@ -2285,6 +2323,19 @@ def _poll_configs_batch_delete_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2293,8 +2344,8 @@ def _poll_configs_batch_delete_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/batch-delete/{id}', + method='POST', + resource_path='/api/v2/configs/operations/batch-delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2311,9 +2362,9 @@ def _poll_configs_batch_delete_serialize( @validate_call - def poll_configs_export_all( + def start_configs_export_all( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_all_operation: Optional[ExportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2327,12 +2378,12 @@ def poll_configs_export_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_configs_export_all + """start_configs_export_all - Get the state of an ongoing operation. + Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_all_operation: + :type export_all_operation: ExportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2355,8 +2406,8 @@ def poll_configs_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_export_all_serialize( - id=id, + _param = self._start_configs_export_all_serialize( + export_all_operation=export_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2364,20 +2415,19 @@ def poll_configs_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_export_all_with_http_info( + def start_configs_export_all_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_all_operation: Optional[ExportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2391,12 +2441,12 @@ def poll_configs_export_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_configs_export_all + """start_configs_export_all - Get the state of an ongoing operation. + Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_all_operation: + :type export_all_operation: ExportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2419,8 +2469,8 @@ def poll_configs_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_export_all_serialize( - id=id, + _param = self._start_configs_export_all_serialize( + export_all_operation=export_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2428,20 +2478,19 @@ def poll_configs_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_export_all_without_preload_content( + def start_configs_export_all_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_all_operation: Optional[ExportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2455,12 +2504,12 @@ def poll_configs_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_export_all + """start_configs_export_all - Get the state of an ongoing operation. + Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_all_operation: + :type export_all_operation: ExportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2483,8 +2532,8 @@ def poll_configs_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_export_all_serialize( - id=id, + _param = self._start_configs_export_all_serialize( + export_all_operation=export_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2492,19 +2541,18 @@ def poll_configs_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_export_all_serialize( + def _start_configs_export_all_serialize( self, - id, + export_all_operation, _request_auth, _content_type, _headers, @@ -2524,12 +2572,12 @@ def _poll_configs_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if export_all_operation is not None: + _body_params = export_all_operation # set the HTTP header `Accept` @@ -2540,6 +2588,19 @@ def _poll_configs_export_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2548,8 +2609,8 @@ def _poll_configs_export_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/exportAll/{id}', + method='POST', + resource_path='/api/v2/configs/operations/exportAll', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2566,9 +2627,9 @@ def _poll_configs_export_all_serialize( @validate_call - def poll_configs_import( + def start_configs_import( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + body: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2582,12 +2643,12 @@ def poll_configs_import( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_configs_import + """start_configs_import - Get the state of an ongoing operation. + Import a single configuration from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param body: + :type body: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2610,8 +2671,8 @@ def poll_configs_import( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._start_configs_import_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2619,20 +2680,19 @@ def poll_configs_import( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_with_http_info( + def start_configs_import_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + body: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2646,12 +2706,12 @@ def poll_configs_import_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_configs_import + """start_configs_import - Get the state of an ongoing operation. + Import a single configuration from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param body: + :type body: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2674,8 +2734,8 @@ def poll_configs_import_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._start_configs_import_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2683,20 +2743,19 @@ def poll_configs_import_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_without_preload_content( + def start_configs_import_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + body: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2710,12 +2769,12 @@ def poll_configs_import_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_import + """start_configs_import - Get the state of an ongoing operation. + Import a single configuration from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param body: + :type body: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2738,8 +2797,8 @@ def poll_configs_import_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._start_configs_import_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2747,19 +2806,18 @@ def poll_configs_import_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_import_serialize( + def _start_configs_import_serialize( self, - id, + body, _request_auth, _content_type, _headers, @@ -2779,12 +2837,17 @@ def _poll_configs_import_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if body is not None: + # convert to byte array if the input is a file name (str) + if isinstance(body, str): + with open(body, "rb") as _fp: + _body_params = _fp.read() + else: + _body_params = body # set the HTTP header `Accept` @@ -2795,6 +2858,21 @@ def _poll_configs_import_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-zip', + 'application/zip', + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2803,8 +2881,8 @@ def _poll_configs_import_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/import/{id}', + method='POST', + resource_path='/api/v2/configs/operations/import', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2821,9 +2899,9 @@ def _poll_configs_import_serialize( @validate_call - def poll_configs_import_all( + def start_configs_import_all( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + import_all_operation: Optional[ImportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2837,12 +2915,12 @@ def poll_configs_import_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_configs_import_all + """start_configs_import_all - Get the state of an ongoing operation. + Import all configurations from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param import_all_operation: + :type import_all_operation: ImportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2865,8 +2943,8 @@ def poll_configs_import_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._start_configs_import_all_serialize( + import_all_operation=import_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2874,20 +2952,19 @@ def poll_configs_import_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_all_with_http_info( + def start_configs_import_all_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + import_all_operation: Optional[ImportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2901,12 +2978,12 @@ def poll_configs_import_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_configs_import_all + """start_configs_import_all - Get the state of an ongoing operation. + Import all configurations from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param import_all_operation: + :type import_all_operation: ImportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2929,8 +3006,8 @@ def poll_configs_import_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._start_configs_import_all_serialize( + import_all_operation=import_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2938,20 +3015,19 @@ def poll_configs_import_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_all_without_preload_content( + def start_configs_import_all_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + import_all_operation: Optional[ImportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2965,12 +3041,12 @@ def poll_configs_import_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_import_all + """start_configs_import_all - Get the state of an ongoing operation. + Import all configurations from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param import_all_operation: + :type import_all_operation: ImportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2993,8 +3069,8 @@ def poll_configs_import_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._start_configs_import_all_serialize( + import_all_operation=import_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3002,19 +3078,18 @@ def poll_configs_import_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_import_all_serialize( + def _start_configs_import_all_serialize( self, - id, + import_all_operation, _request_auth, _content_type, _headers, @@ -3034,1067 +3109,12 @@ def _poll_configs_import_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/importAll/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_configs_batch_delete( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_configs_batch_delete - - Remove multiple configurations. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_batch_delete_with_http_info( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_configs_batch_delete - - Remove multiple configurations. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_batch_delete_without_preload_content( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_configs_batch_delete - - Remove multiple configurations. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_configs_batch_delete_serialize( - self, - start_agents_batch_delete_request_inner, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'StartAgentsBatchDeleteRequestInner': '', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if start_agents_batch_delete_request_inner is not None: - _body_params = start_agents_batch_delete_request_inner - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/configs/operations/batch-delete', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_configs_export_all( - self, - export_all_operation: Optional[ExportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_configs_export_all - - Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - - :param export_all_operation: - :type export_all_operation: ExportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_export_all_serialize( - export_all_operation=export_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_export_all_with_http_info( - self, - export_all_operation: Optional[ExportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_configs_export_all - - Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - - :param export_all_operation: - :type export_all_operation: ExportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_export_all_serialize( - export_all_operation=export_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_export_all_without_preload_content( - self, - export_all_operation: Optional[ExportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_configs_export_all - - Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - - :param export_all_operation: - :type export_all_operation: ExportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_export_all_serialize( - export_all_operation=export_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_configs_export_all_serialize( - self, - export_all_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if export_all_operation is not None: - _body_params = export_all_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/configs/operations/exportAll', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_configs_import( - self, - body: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_configs_import - - Import a single configuration from the specified file. - - :param body: - :type body: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_serialize( - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_import_with_http_info( - self, - body: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_configs_import - - Import a single configuration from the specified file. - - :param body: - :type body: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_serialize( - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_import_without_preload_content( - self, - body: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_configs_import - - Import a single configuration from the specified file. - - :param body: - :type body: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_serialize( - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_configs_import_serialize( - self, - body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - # convert to byte array if the input is a file name (str) - if isinstance(body, str): - with open(body, "rb") as _fp: - _body_params = _fp.read() - else: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-zip', - 'application/zip', - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/configs/operations/import', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_configs_import_all( - self, - import_all_operation: Optional[ImportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_configs_import_all - - Import all configurations from the specified file. - - :param import_all_operation: - :type import_all_operation: ImportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_all_serialize( - import_all_operation=import_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_import_all_with_http_info( - self, - import_all_operation: Optional[ImportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_configs_import_all - - Import all configurations from the specified file. - - :param import_all_operation: - :type import_all_operation: ImportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_all_serialize( - import_all_operation=import_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_import_all_without_preload_content( - self, - import_all_operation: Optional[ImportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_configs_import_all - - Import all configurations from the specified file. - - :param import_all_operation: - :type import_all_operation: ImportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_all_serialize( - import_all_operation=import_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_configs_import_all_serialize( - self, - import_all_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if import_all_operation is not None: - _body_params = import_all_operation + if import_all_operation is not None: + _body_params = import_all_operation # set the HTTP header `Accept` @@ -4211,7 +3231,7 @@ def update_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_config_with_http_info( @@ -4281,7 +3301,7 @@ def update_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_config_without_preload_content( @@ -4351,7 +3371,7 @@ def update_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_config_serialize( self, diff --git a/cyperf/api/data_migration_api.py b/cyperf/api/data_migration_api.py index 58b0d8e..674238c 100644 --- a/cyperf/api/data_migration_api.py +++ b/cyperf/api/data_migration_api.py @@ -42,512 +42,22 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def poll_controller_migration_export( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_export_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_export_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controller_migration_export_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controller-migration/operations/export/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) + + + - @validate_call - def poll_controller_migration_import( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controller_migration_import - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + - @validate_call - def poll_controller_migration_import_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controller_migration_import + - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_import_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controller_migration_import - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controller_migration_import_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controller-migration/operations/import/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -613,7 +123,7 @@ def start_controller_migration_export( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_export_with_http_info( @@ -676,7 +186,7 @@ def start_controller_migration_export_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_export_without_preload_content( @@ -739,7 +249,7 @@ def start_controller_migration_export_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controller_migration_export_serialize( self, @@ -874,7 +384,7 @@ def start_controller_migration_import( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_import_with_http_info( @@ -933,7 +443,7 @@ def start_controller_migration_import_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_import_without_preload_content( @@ -992,7 +502,7 @@ def start_controller_migration_import_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controller_migration_import_serialize( self, diff --git a/cyperf/api/diagnostics_api.py b/cyperf/api/diagnostics_api.py index 43eee01..9351718 100644 --- a/cyperf/api/diagnostics_api.py +++ b/cyperf/api/diagnostics_api.py @@ -102,7 +102,7 @@ def api_v2_diagnostics_components_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_components_get_with_http_info( @@ -162,7 +162,7 @@ def api_v2_diagnostics_components_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_components_get_without_preload_content( @@ -222,7 +222,7 @@ def api_v2_diagnostics_components_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_components_get_serialize( self, @@ -341,7 +341,7 @@ def api_v2_diagnostics_operations_delete_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_delete_with_http_info( @@ -400,7 +400,7 @@ def api_v2_diagnostics_operations_delete_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_delete_without_preload_content( @@ -459,7 +459,7 @@ def api_v2_diagnostics_operations_delete_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_delete_delete_serialize( self, @@ -582,7 +582,7 @@ def api_v2_diagnostics_operations_delete_id_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_id_delete_with_http_info( @@ -645,7 +645,7 @@ def api_v2_diagnostics_operations_delete_id_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_id_delete_without_preload_content( @@ -708,7 +708,7 @@ def api_v2_diagnostics_operations_delete_id_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_delete_id_delete_serialize( self, @@ -830,7 +830,7 @@ def api_v2_diagnostics_operations_export_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_get_with_http_info( @@ -889,7 +889,7 @@ def api_v2_diagnostics_operations_export_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_get_without_preload_content( @@ -948,7 +948,7 @@ def api_v2_diagnostics_operations_export_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_get_serialize( self, @@ -1072,7 +1072,7 @@ def api_v2_diagnostics_operations_export_id_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_get_with_http_info( @@ -1136,7 +1136,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_get_without_preload_content( @@ -1200,7 +1200,7 @@ def api_v2_diagnostics_operations_export_id_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_id_get_serialize( self, @@ -1327,7 +1327,7 @@ def api_v2_diagnostics_operations_export_id_result_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_result_get_with_http_info( @@ -1391,7 +1391,7 @@ def api_v2_diagnostics_operations_export_id_result_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_result_get_without_preload_content( @@ -1455,7 +1455,7 @@ def api_v2_diagnostics_operations_export_id_result_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_id_result_get_serialize( self, @@ -1582,7 +1582,7 @@ def api_v2_diagnostics_operations_export_post( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_post_with_http_info( @@ -1646,7 +1646,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_post_without_preload_content( @@ -1710,7 +1710,7 @@ def api_v2_diagnostics_operations_export_post_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_post_serialize( self, diff --git a/cyperf/api/license_servers_api.py b/cyperf/api/license_servers_api.py index 1e10137..a45eb7a 100644 --- a/cyperf/api/license_servers_api.py +++ b/cyperf/api/license_servers_api.py @@ -105,7 +105,7 @@ def create_license_servers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_license_servers_with_http_info( @@ -170,7 +170,7 @@ def create_license_servers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_license_servers_without_preload_content( @@ -235,7 +235,7 @@ def create_license_servers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_license_servers_serialize( self, @@ -377,7 +377,7 @@ def delete_license_server( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_license_server_with_http_info( @@ -442,7 +442,7 @@ def delete_license_server_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_license_server_without_preload_content( @@ -507,7 +507,7 @@ def delete_license_server_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_license_server_serialize( self, @@ -635,7 +635,7 @@ def get_license_server_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_server_by_id_with_http_info( @@ -700,7 +700,7 @@ def get_license_server_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_server_by_id_without_preload_content( @@ -765,7 +765,7 @@ def get_license_server_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_server_by_id_serialize( self, @@ -896,7 +896,7 @@ def get_license_servers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_servers_with_http_info( @@ -964,7 +964,7 @@ def get_license_servers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_servers_without_preload_content( @@ -1032,7 +1032,7 @@ def get_license_servers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_servers_serialize( self, @@ -1171,7 +1171,7 @@ def patch_license_server( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_license_server_with_http_info( @@ -1240,7 +1240,7 @@ def patch_license_server_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_license_server_without_preload_content( @@ -1309,7 +1309,7 @@ def patch_license_server_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_license_server_serialize( self, diff --git a/cyperf/api/licensing_api.py b/cyperf/api/licensing_api.py index f04d9a5..6206669 100644 --- a/cyperf/api/licensing_api.py +++ b/cyperf/api/licensing_api.py @@ -112,7 +112,7 @@ def activate_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def activate_licenses_with_http_info( @@ -175,7 +175,7 @@ def activate_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def activate_licenses_without_preload_content( @@ -238,7 +238,7 @@ def activate_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _activate_licenses_serialize( self, @@ -378,7 +378,7 @@ def deactivate_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def deactivate_licenses_with_http_info( @@ -441,7 +441,7 @@ def deactivate_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def deactivate_licenses_without_preload_content( @@ -504,7 +504,7 @@ def deactivate_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _deactivate_licenses_serialize( self, @@ -640,7 +640,7 @@ def generate_offline_request( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def generate_offline_request_with_http_info( @@ -699,7 +699,7 @@ def generate_offline_request_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def generate_offline_request_without_preload_content( @@ -758,7 +758,7 @@ def generate_offline_request_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _generate_offline_request_serialize( self, @@ -882,7 +882,7 @@ def get_activation_code_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_with_http_info( @@ -945,7 +945,7 @@ def get_activation_code_info_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_without_preload_content( @@ -1008,7 +1008,7 @@ def get_activation_code_info_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_activation_code_info_serialize( self, @@ -1147,7 +1147,7 @@ def get_activation_code_info_list( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_list_with_http_info( @@ -1210,7 +1210,7 @@ def get_activation_code_info_list_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_list_without_preload_content( @@ -1273,7 +1273,7 @@ def get_activation_code_info_list_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_activation_code_info_list_serialize( self, @@ -1416,7 +1416,7 @@ def get_async_operation_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_result_with_http_info( @@ -1483,7 +1483,7 @@ def get_async_operation_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_result_without_preload_content( @@ -1550,7 +1550,7 @@ def get_async_operation_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_async_operation_result_serialize( self, @@ -1683,7 +1683,7 @@ def get_async_operation_status( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_status_with_http_info( @@ -1750,7 +1750,7 @@ def get_async_operation_status_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_status_without_preload_content( @@ -1817,7 +1817,7 @@ def get_async_operation_status_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_async_operation_status_serialize( self, @@ -1943,7 +1943,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( @@ -2003,7 +2003,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( @@ -2063,7 +2063,7 @@ def get_counted_feature_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_counted_feature_stats_serialize( self, @@ -2186,7 +2186,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( @@ -2249,7 +2249,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( @@ -2312,7 +2312,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 +2447,7 @@ def get_hostid( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_hostid_with_http_info( @@ -2506,7 +2506,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 +2565,7 @@ def get_hostid_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_hostid_serialize( self, @@ -2684,7 +2684,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 +2743,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 +2802,7 @@ def get_installed_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_installed_licenses_serialize( self, @@ -2925,7 +2925,7 @@ def get_license( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_with_http_info( @@ -2988,7 +2988,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 +3051,7 @@ def get_license_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_serialize( self, @@ -3185,7 +3185,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 +3256,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 +3327,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, @@ -3467,7 +3467,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( @@ -3538,7 +3538,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( @@ -3609,7 +3609,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 +3741,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 +3804,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 +3867,7 @@ def import_offline_license_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _import_offline_license_serialize( self, @@ -4010,7 +4010,7 @@ def remove_reservation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def remove_reservation_with_http_info( @@ -4077,7 +4077,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( @@ -4144,7 +4144,7 @@ def remove_reservation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _remove_reservation_serialize( self, @@ -4283,7 +4283,7 @@ def sync_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def sync_licenses_with_http_info( @@ -4342,7 +4342,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( @@ -4401,7 +4401,7 @@ def sync_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _sync_licenses_serialize( self, @@ -4520,7 +4520,7 @@ def test_backend_connectivity( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def test_backend_connectivity_with_http_info( @@ -4579,7 +4579,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( @@ -4638,7 +4638,7 @@ def test_backend_connectivity_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _test_backend_connectivity_serialize( self, @@ -4765,7 +4765,7 @@ def update_reservation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_reservation_with_http_info( @@ -4832,7 +4832,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( @@ -4899,7 +4899,7 @@ def update_reservation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_reservation_serialize( self, diff --git a/cyperf/api/notifications_api.py b/cyperf/api/notifications_api.py index 48cebe5..aa99ac0 100644 --- a/cyperf/api/notifications_api.py +++ b/cyperf/api/notifications_api.py @@ -109,7 +109,7 @@ def delete_notification( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_notification_with_http_info( @@ -176,7 +176,7 @@ def delete_notification_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_notification_without_preload_content( @@ -243,7 +243,7 @@ def delete_notification_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_notification_serialize( self, @@ -370,7 +370,7 @@ def get_notification_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_by_id_with_http_info( @@ -434,7 +434,7 @@ def get_notification_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_by_id_without_preload_content( @@ -498,7 +498,7 @@ def get_notification_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notification_by_id_serialize( self, @@ -673,7 +673,7 @@ def get_notification_counts( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_counts_with_http_info( @@ -785,7 +785,7 @@ def get_notification_counts_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_counts_without_preload_content( @@ -897,7 +897,7 @@ def get_notification_counts_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notification_counts_serialize( self, @@ -1142,7 +1142,7 @@ def get_notifications( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notifications_with_http_info( @@ -1262,7 +1262,7 @@ def get_notifications_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notifications_without_preload_content( @@ -1382,7 +1382,7 @@ def get_notifications_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notifications_serialize( self, @@ -1519,512 +1519,22 @@ def _get_notifications_serialize( - @validate_call - def poll_notifications_cleanup( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_cleanup_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_cleanup_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_notifications_cleanup_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/notifications/operations/cleanup/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_notifications_dismiss( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_notifications_dismiss + - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - @validate_call - def poll_notifications_dismiss_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_notifications_dismiss - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_dismiss_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_notifications_dismiss - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_notifications_dismiss_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/notifications/operations/dismiss/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -2086,7 +1596,7 @@ def start_notifications_cleanup( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_cleanup_with_http_info( @@ -2145,7 +1655,7 @@ def start_notifications_cleanup_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_cleanup_without_preload_content( @@ -2204,7 +1714,7 @@ def start_notifications_cleanup_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_notifications_cleanup_serialize( self, @@ -2323,7 +1833,7 @@ def start_notifications_dismiss( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_dismiss_with_http_info( @@ -2382,7 +1892,7 @@ def start_notifications_dismiss_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_dismiss_without_preload_content( @@ -2441,7 +1951,7 @@ def start_notifications_dismiss_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_notifications_dismiss_serialize( self, diff --git a/cyperf/api/reports_api.py b/cyperf/api/reports_api.py index a6af096..83ca1ef 100644 --- a/cyperf/api/reports_api.py +++ b/cyperf/api/reports_api.py @@ -109,7 +109,7 @@ def download_pdf( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def download_pdf_with_http_info( @@ -177,7 +177,7 @@ def download_pdf_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def download_pdf_without_preload_content( @@ -245,7 +245,7 @@ def download_pdf_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _download_pdf_serialize( self, @@ -381,7 +381,7 @@ def get_result_download_csv_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_csv_by_id_with_http_info( @@ -450,7 +450,7 @@ def get_result_download_csv_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_csv_by_id_without_preload_content( @@ -519,7 +519,7 @@ def get_result_download_csv_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_csv_by_id_serialize( self, @@ -587,542 +587,22 @@ def _get_result_download_csv_by_id_serialize( - @validate_call - def poll_result_generate_csv( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_csv_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_csv_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_result_generate_csv_serialize( - self, - result_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-csv/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_result_generate_pdf( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_result_generate_pdf - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_pdf_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_result_generate_pdf - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_pdf_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_result_generate_pdf - - Get the state of an ongoing operation. + - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - def _poll_result_generate_pdf_serialize( - self, - result_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + + - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] + - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-pdf/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1192,7 +672,7 @@ def start_result_generate_csv( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_csv_with_http_info( @@ -1259,7 +739,7 @@ def start_result_generate_csv_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_csv_without_preload_content( @@ -1326,7 +806,7 @@ def start_result_generate_csv_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_result_generate_csv_serialize( self, @@ -1472,7 +952,7 @@ def start_result_generate_pdf( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_pdf_with_http_info( @@ -1539,7 +1019,7 @@ def start_result_generate_pdf_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_pdf_without_preload_content( @@ -1606,7 +1086,7 @@ def start_result_generate_pdf_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_result_generate_pdf_serialize( self, diff --git a/cyperf/api/sessions_api.py b/cyperf/api/sessions_api.py index 05fc432..705e787 100644 --- a/cyperf/api/sessions_api.py +++ b/cyperf/api/sessions_api.py @@ -121,7 +121,7 @@ def create_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_session_meta_with_http_info( @@ -190,7 +190,7 @@ def create_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_session_meta_without_preload_content( @@ -259,7 +259,7 @@ def create_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_session_meta_serialize( self, @@ -404,7 +404,7 @@ def create_sessions( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_sessions_with_http_info( @@ -469,7 +469,7 @@ def create_sessions_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_sessions_without_preload_content( @@ -534,7 +534,7 @@ def create_sessions_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_sessions_serialize( self, @@ -678,7 +678,7 @@ def delete_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_with_http_info( @@ -745,7 +745,7 @@ def delete_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_without_preload_content( @@ -812,7 +812,7 @@ def delete_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_session_serialize( self, @@ -944,7 +944,7 @@ def delete_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_meta_with_http_info( @@ -1013,7 +1013,7 @@ def delete_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_meta_without_preload_content( @@ -1082,7 +1082,7 @@ def delete_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_session_meta_serialize( self, @@ -1212,7 +1212,7 @@ def get_config_docs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_docs_with_http_info( @@ -1276,7 +1276,7 @@ def get_config_docs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_docs_without_preload_content( @@ -1340,7 +1340,7 @@ def get_config_docs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_docs_serialize( self, @@ -1467,7 +1467,7 @@ def get_config_granular_stats( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_with_http_info( @@ -1531,7 +1531,7 @@ def get_config_granular_stats_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_without_preload_content( @@ -1595,7 +1595,7 @@ def get_config_granular_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_granular_stats_serialize( self, @@ -1722,7 +1722,7 @@ def get_config_granular_stats_filters( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_filters_with_http_info( @@ -1786,7 +1786,7 @@ def get_config_granular_stats_filters_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_filters_without_preload_content( @@ -1850,7 +1850,7 @@ def get_config_granular_stats_filters_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_granular_stats_filters_serialize( self, @@ -1981,7 +1981,7 @@ def get_session_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_by_id_with_http_info( @@ -2049,7 +2049,7 @@ def get_session_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_by_id_without_preload_content( @@ -2117,7 +2117,7 @@ def get_session_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_by_id_serialize( self, @@ -2253,7 +2253,7 @@ def get_session_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_config_with_http_info( @@ -2321,7 +2321,7 @@ def get_session_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_config_without_preload_content( @@ -2389,7 +2389,7 @@ def get_session_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_config_serialize( self, @@ -2529,7 +2529,7 @@ def get_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_with_http_info( @@ -2601,7 +2601,7 @@ def get_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_without_preload_content( @@ -2673,7 +2673,7 @@ def get_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_meta_serialize( self, @@ -2814,7 +2814,7 @@ def get_session_meta_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_by_id_with_http_info( @@ -2882,7 +2882,7 @@ def get_session_meta_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_by_id_without_preload_content( @@ -2950,7 +2950,7 @@ def get_session_meta_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_meta_by_id_serialize( self, @@ -3079,7 +3079,7 @@ def get_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_test_with_http_info( @@ -3142,7 +3142,7 @@ def get_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_test_without_preload_content( @@ -3205,7 +3205,7 @@ def get_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_test_serialize( self, @@ -3355,7 +3355,7 @@ def get_sessions( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_sessions_with_http_info( @@ -3442,7 +3442,7 @@ def get_sessions_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_sessions_without_preload_content( @@ -3529,7 +3529,7 @@ def get_sessions_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_sessions_serialize( self, @@ -3693,7 +3693,7 @@ def patch_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_with_http_info( @@ -3762,7 +3762,7 @@ def patch_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_without_preload_content( @@ -3831,7 +3831,7 @@ def patch_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_serialize( self, @@ -3983,7 +3983,7 @@ def patch_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_meta_with_http_info( @@ -4056,7 +4056,7 @@ def patch_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_meta_without_preload_content( @@ -4129,7 +4129,7 @@ def patch_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_meta_serialize( self, @@ -4278,7 +4278,7 @@ def patch_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_test_with_http_info( @@ -4345,7 +4345,7 @@ def patch_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_test_without_preload_content( @@ -4412,7 +4412,7 @@ def patch_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_test_serialize( self, @@ -4493,12 +4493,102 @@ def _patch_session_test_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_config_add_applications( + def start_config_add_applications( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4512,16 +4602,16 @@ def poll_config_add_applications( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4544,10 +4634,10 @@ def poll_config_add_applications( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4555,21 +4645,21 @@ def poll_config_add_applications( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_config_add_applications_with_http_info( + def start_config_add_applications_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4583,16 +4673,16 @@ def poll_config_add_applications_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4615,10 +4705,10 @@ def poll_config_add_applications_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4626,21 +4716,21 @@ def poll_config_add_applications_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_config_add_applications_without_preload_content( + def start_config_add_applications_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4654,16 +4744,16 @@ def poll_config_add_applications_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4686,10 +4776,10 @@ def poll_config_add_applications_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4697,20 +4787,20 @@ def poll_config_add_applications_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_config_add_applications_serialize( + def _start_config_add_applications_serialize( self, session_id, traffic_profile_id, - id, + external_resource_info, _request_auth, _content_type, _headers, @@ -4720,6 +4810,7 @@ def _poll_config_add_applications_serialize( _host = None _collection_formats: Dict[str, str] = { + 'ExternalResourceInfo': '', } _path_params: Dict[str, str] = {} @@ -4734,12 +4825,12 @@ def _poll_config_add_applications_serialize( _path_params['sessionId'] = session_id if traffic_profile_id is not None: _path_params['trafficProfileId'] = traffic_profile_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if external_resource_info is not None: + _body_params = external_resource_info # set the HTTP header `Accept` @@ -4750,6 +4841,19 @@ def _poll_config_add_applications_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4758,8 +4862,8 @@ def _poll_config_add_applications_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4776,10 +4880,9 @@ def _poll_config_add_applications_serialize( @validate_call - def poll_session_config_granular_stats_default_dashboards( + def start_session_config_granular_stats_default_dashboards( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4793,14 +4896,12 @@ def poll_session_config_granular_stats_default_dashboards( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4823,9 +4924,8 @@ def poll_session_config_granular_stats_default_dashboards( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4833,21 +4933,19 @@ def poll_session_config_granular_stats_default_dashboards( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_granular_stats_default_dashboards_with_http_info( + def start_session_config_granular_stats_default_dashboards_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4861,14 +4959,12 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4891,9 +4987,8 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4901,21 +4996,19 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_granular_stats_default_dashboards_without_preload_content( + def start_session_config_granular_stats_default_dashboards_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4929,14 +5022,12 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4959,9 +5050,8 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4969,20 +5059,18 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_session_config_granular_stats_default_dashboards_serialize( + def _start_session_config_granular_stats_default_dashboards_serialize( self, session_id, - id, _request_auth, _content_type, _headers, @@ -5004,8 +5092,6 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( # process the path parameters if session_id is not None: _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -5028,8 +5114,8 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5046,10 +5132,10 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( @validate_call - def poll_session_config_save( + def start_session_config_save( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5063,14 +5149,14 @@ def poll_session_config_save( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5093,9 +5179,9 @@ def poll_session_config_save( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5103,21 +5189,20 @@ def poll_session_config_save( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_save_with_http_info( + def start_session_config_save_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5131,14 +5216,14 @@ def poll_session_config_save_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5161,9 +5246,9 @@ def poll_session_config_save_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5171,21 +5256,20 @@ def poll_session_config_save_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_save_without_preload_content( + def start_session_config_save_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5199,14 +5283,14 @@ def poll_session_config_save_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5229,9 +5313,9 @@ def poll_session_config_save_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5239,20 +5323,19 @@ def poll_session_config_save_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_session_config_save_serialize( + def _start_session_config_save_serialize( self, session_id, - id, + save_config_operation, _request_auth, _content_type, _headers, @@ -5274,12 +5357,12 @@ def _poll_session_config_save_serialize( # process the path parameters if session_id is not None: _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if save_config_operation is not None: + _body_params = save_config_operation # set the HTTP header `Accept` @@ -5290,6 +5373,19 @@ def _poll_session_config_save_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5298,8 +5394,8 @@ def _poll_session_config_save_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/operations/save/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/operations/save', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5316,10 +5412,10 @@ def _poll_session_config_save_serialize( @validate_call - def poll_session_load_config( + def start_session_load_config( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + load_config_operation: Optional[LoadConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5333,14 +5429,14 @@ def poll_session_load_config( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_load_config + """start_session_load_config - Get the state of an ongoing operation. + Load a new test in the current session. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param load_config_operation: + :type load_config_operation: LoadConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5363,9 +5459,9 @@ def poll_session_load_config( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_load_config_serialize( + _param = self._start_session_load_config_serialize( session_id=session_id, - id=id, + load_config_operation=load_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5373,21 +5469,20 @@ def poll_session_load_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_load_config_with_http_info( + def start_session_load_config_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + load_config_operation: Optional[LoadConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5401,2441 +5496,9 @@ def poll_session_load_config_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_load_config + """start_session_load_config - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_load_config_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_load_config_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_load_config - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_load_config_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_load_config_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/loadConfig/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_prepare_test( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_prepare_test_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_prepare_test_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_prepare_test_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/prepareTest/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_test_end( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_end_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_end_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_test_end_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/testEnd/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_test_init( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_init_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_init_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_test_init_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/testInit/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_touch( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_touch_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_touch_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_touch_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/touch/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_sessions_batch_delete( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_sessions_batch_delete_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_sessions_batch_delete_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_sessions_batch_delete_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/operations/batch-delete/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_config_add_applications( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_config_add_applications_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_config_add_applications_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_config_add_applications_serialize( - self, - session_id, - traffic_profile_id, - external_resource_info, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'ExternalResourceInfo': '', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if traffic_profile_id is not None: - _path_params['trafficProfileId'] = traffic_profile_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if external_resource_info is not None: - _body_params = external_resource_info - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_config_granular_stats_default_dashboards( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_granular_stats_default_dashboards_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_granular_stats_default_dashboards_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_session_config_granular_stats_default_dashboards_serialize( - self, - session_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_config_save( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_save_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_save_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_session_config_save_serialize( - self, - session_id, - save_config_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if save_config_operation is not None: - _body_params = save_config_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/operations/save', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_load_config( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - load_config_operation: Optional[LoadConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_load_config - - Load a new test in the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param load_config_operation: - :type load_config_operation: LoadConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_load_config_serialize( - session_id=session_id, - load_config_operation=load_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_load_config_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - load_config_operation: Optional[LoadConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_load_config - - Load a new test in the current session. + Load a new test in the current session. :param session_id: The ID of the session. (required) :type session_id: str @@ -7880,7 +5543,7 @@ def start_session_load_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_load_config_without_preload_content( @@ -7947,7 +5610,7 @@ def start_session_load_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_load_config_serialize( self, @@ -8093,7 +5756,7 @@ def start_session_prepare_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_prepare_test_with_http_info( @@ -8160,7 +5823,7 @@ def start_session_prepare_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_prepare_test_without_preload_content( @@ -8227,7 +5890,7 @@ def start_session_prepare_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_prepare_test_serialize( self, @@ -8374,7 +6037,7 @@ def start_session_test_end( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_end_with_http_info( @@ -8441,7 +6104,7 @@ def start_session_test_end_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_end_without_preload_content( @@ -8508,7 +6171,7 @@ def start_session_test_end_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_test_end_serialize( self, @@ -8655,7 +6318,7 @@ def start_session_test_init( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_init_with_http_info( @@ -8722,7 +6385,7 @@ def start_session_test_init_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_init_without_preload_content( @@ -8789,7 +6452,7 @@ def start_session_test_init_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_test_init_serialize( self, @@ -8936,7 +6599,7 @@ def start_session_touch( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_touch_with_http_info( @@ -9003,7 +6666,7 @@ def start_session_touch_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_touch_without_preload_content( @@ -9070,7 +6733,7 @@ def start_session_touch_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_touch_serialize( self, @@ -9212,7 +6875,7 @@ def start_sessions_batch_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_sessions_batch_delete_with_http_info( @@ -9275,7 +6938,7 @@ def start_sessions_batch_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_sessions_batch_delete_without_preload_content( @@ -9338,7 +7001,7 @@ def start_sessions_batch_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_sessions_batch_delete_serialize( self, @@ -9484,7 +7147,7 @@ def update_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_with_http_info( @@ -9554,7 +7217,7 @@ def update_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_without_preload_content( @@ -9624,7 +7287,7 @@ def update_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_serialize( self, @@ -9771,7 +7434,7 @@ def update_session_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_config_with_http_info( @@ -9839,7 +7502,7 @@ def update_session_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_config_without_preload_content( @@ -9907,7 +7570,7 @@ def update_session_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_config_serialize( self, @@ -10055,7 +7718,7 @@ def update_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_meta_with_http_info( @@ -10124,7 +7787,7 @@ def update_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_meta_without_preload_content( @@ -10193,7 +7856,7 @@ def update_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_meta_serialize( self, @@ -10340,7 +8003,7 @@ def update_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_test_with_http_info( @@ -10407,7 +8070,7 @@ def update_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_test_without_preload_content( @@ -10474,7 +8137,7 @@ def update_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_test_serialize( self, diff --git a/cyperf/api/statistics_api.py b/cyperf/api/statistics_api.py index 9146fad..0a818ba 100644 --- a/cyperf/api/statistics_api.py +++ b/cyperf/api/statistics_api.py @@ -109,7 +109,7 @@ def create_stats_plugins( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_stats_plugins_with_http_info( @@ -174,7 +174,7 @@ def create_stats_plugins_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_stats_plugins_without_preload_content( @@ -239,7 +239,7 @@ def create_stats_plugins_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_stats_plugins_serialize( self, @@ -381,7 +381,7 @@ def delete_stats_plugin( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_stats_plugin_with_http_info( @@ -446,7 +446,7 @@ def delete_stats_plugin_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_stats_plugin_without_preload_content( @@ -511,7 +511,7 @@ def delete_stats_plugin_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_stats_plugin_serialize( self, @@ -660,7 +660,7 @@ def get_result_stat_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stat_by_id_with_http_info( @@ -746,7 +746,7 @@ def get_result_stat_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stat_by_id_without_preload_content( @@ -832,7 +832,7 @@ def get_result_stat_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_stat_by_id_serialize( self, @@ -992,7 +992,7 @@ def get_result_stats( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stats_with_http_info( @@ -1066,7 +1066,7 @@ def get_result_stats_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stats_without_preload_content( @@ -1140,7 +1140,7 @@ def get_result_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_stats_serialize( self, @@ -1280,7 +1280,7 @@ def get_stats_plugins( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_stats_plugins_with_http_info( @@ -1347,7 +1347,7 @@ def get_stats_plugins_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_stats_plugins_without_preload_content( @@ -1414,7 +1414,7 @@ def get_stats_plugins_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_stats_plugins_serialize( self, @@ -1486,257 +1486,12 @@ def _get_stats_plugins_serialize( - @validate_call - def poll_stats_plugins_ingest( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_stats_plugins_ingest_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_stats_plugins_ingest_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_stats_plugins_ingest_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/stats/plugins/operations/ingest/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1802,7 +1557,7 @@ def start_stats_plugins_ingest( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_stats_plugins_ingest_with_http_info( @@ -1865,7 +1620,7 @@ def start_stats_plugins_ingest_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_stats_plugins_ingest_without_preload_content( @@ -1928,7 +1683,7 @@ def start_stats_plugins_ingest_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_stats_plugins_ingest_serialize( self, diff --git a/cyperf/api/test_operations_api.py b/cyperf/api/test_operations_api.py index 4363b40..1051319 100644 --- a/cyperf/api/test_operations_api.py +++ b/cyperf/api/test_operations_api.py @@ -40,1352 +40,52 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def poll_test_calibrate_start( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_start_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_start_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_calibrate_start_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_calibrate_stop( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_stop_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_stop_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_calibrate_stop_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_run_abort( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_abort_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_abort_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_run_abort_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/abort/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_run_start( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_start_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_start_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_run_start_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/start/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) + + + - @validate_call - def poll_test_run_stop( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_stop - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + + - @validate_call - def poll_test_run_stop_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_stop - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + + - @validate_call - def poll_test_run_stop_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_stop + - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) + - def _poll_test_run_stop_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: + - _host = None + - _collection_formats: Dict[str, str] = { - } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + + - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] + - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/stop/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1451,7 +151,7 @@ def start_test_calibrate_start( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_start_with_http_info( @@ -1514,7 +214,7 @@ def start_test_calibrate_start_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_start_without_preload_content( @@ -1577,7 +277,7 @@ def start_test_calibrate_start_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_calibrate_start_serialize( self, @@ -1703,7 +403,7 @@ def start_test_calibrate_stop( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_stop_with_http_info( @@ -1766,7 +466,7 @@ def start_test_calibrate_stop_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_stop_without_preload_content( @@ -1829,7 +529,7 @@ def start_test_calibrate_stop_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_calibrate_stop_serialize( self, @@ -1955,7 +655,7 @@ def start_test_run_abort( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_abort_with_http_info( @@ -2018,7 +718,7 @@ def start_test_run_abort_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_abort_without_preload_content( @@ -2081,7 +781,7 @@ def start_test_run_abort_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_abort_serialize( self, @@ -2207,7 +907,7 @@ def start_test_run_start( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_start_with_http_info( @@ -2270,7 +970,7 @@ def start_test_run_start_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_start_without_preload_content( @@ -2333,7 +1033,7 @@ def start_test_run_start_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_start_serialize( self, @@ -2459,7 +1159,7 @@ def start_test_run_stop( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_stop_with_http_info( @@ -2522,7 +1222,7 @@ def start_test_run_stop_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_stop_without_preload_content( @@ -2585,7 +1285,7 @@ def start_test_run_stop_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_stop_serialize( self, diff --git a/cyperf/api/test_results_api.py b/cyperf/api/test_results_api.py index 4d09c5c..e6a095e 100644 --- a/cyperf/api/test_results_api.py +++ b/cyperf/api/test_results_api.py @@ -112,7 +112,7 @@ def delete_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_with_http_info( @@ -178,7 +178,7 @@ def delete_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_without_preload_content( @@ -244,7 +244,7 @@ def delete_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_result_serialize( self, @@ -376,7 +376,7 @@ def delete_result_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_file_with_http_info( @@ -445,7 +445,7 @@ def delete_result_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_file_without_preload_content( @@ -514,7 +514,7 @@ def delete_result_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_result_file_serialize( self, @@ -645,7 +645,7 @@ def get_result_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_by_id_with_http_info( @@ -710,7 +710,7 @@ def get_result_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_by_id_without_preload_content( @@ -775,7 +775,7 @@ def get_result_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_by_id_serialize( self, @@ -906,7 +906,7 @@ def get_result_download_all_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_all_by_id_with_http_info( @@ -974,7 +974,7 @@ def get_result_download_all_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_all_by_id_without_preload_content( @@ -1042,7 +1042,7 @@ def get_result_download_all_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_all_by_id_serialize( self, @@ -1172,7 +1172,7 @@ def get_result_download_result_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_result_config_with_http_info( @@ -1236,7 +1236,7 @@ def get_result_download_result_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_result_config_without_preload_content( @@ -1300,7 +1300,7 @@ def get_result_download_result_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_result_config_serialize( self, @@ -1432,7 +1432,7 @@ def get_result_file_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_by_id_with_http_info( @@ -1501,7 +1501,7 @@ def get_result_file_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_by_id_without_preload_content( @@ -1570,7 +1570,7 @@ def get_result_file_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_file_by_id_serialize( self, @@ -1705,7 +1705,7 @@ def get_result_file_content( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_content_with_http_info( @@ -1774,7 +1774,7 @@ def get_result_file_content_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_content_without_preload_content( @@ -1843,7 +1843,7 @@ def get_result_file_content_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_file_content_serialize( self, @@ -1982,7 +1982,7 @@ def get_result_files( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_files_with_http_info( @@ -2055,7 +2055,7 @@ def get_result_files_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_files_without_preload_content( @@ -2128,7 +2128,7 @@ def get_result_files_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_files_serialize( self, @@ -2285,7 +2285,7 @@ def get_results( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_with_http_info( @@ -2369,7 +2369,7 @@ def get_results_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_without_preload_content( @@ -2453,7 +2453,7 @@ def get_results_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_results_serialize( self, @@ -2611,7 +2611,7 @@ def get_results_tags( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_tags_with_http_info( @@ -2679,7 +2679,7 @@ def get_results_tags_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_tags_without_preload_content( @@ -2747,7 +2747,7 @@ def get_results_tags_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_results_tags_serialize( self, @@ -2819,11 +2819,51 @@ def _get_results_tags_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_result_generate_all( + def start_result_generate_all( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2837,14 +2877,14 @@ def poll_result_generate_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_generate_all + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2867,9 +2907,9 @@ def poll_result_generate_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2877,21 +2917,20 @@ def poll_result_generate_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_all_with_http_info( + def start_result_generate_all_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2905,14 +2944,14 @@ def poll_result_generate_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_generate_all + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2935,9 +2974,9 @@ def poll_result_generate_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2945,21 +2984,20 @@ def poll_result_generate_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_all_without_preload_content( + def start_result_generate_all_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2973,14 +3011,14 @@ def poll_result_generate_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_generate_all + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3003,9 +3041,9 @@ def poll_result_generate_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3013,20 +3051,19 @@ def poll_result_generate_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_generate_all_serialize( + def _start_result_generate_all_serialize( self, result_id, - id, + generate_all_operation, _request_auth, _content_type, _headers, @@ -3048,12 +3085,12 @@ def _poll_result_generate_all_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if generate_all_operation is not None: + _body_params = generate_all_operation # set the HTTP header `Accept` @@ -3064,6 +3101,19 @@ def _poll_result_generate_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3072,8 +3122,8 @@ def _poll_result_generate_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-all/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/generate-all', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3090,10 +3140,9 @@ def _poll_result_generate_all_serialize( @validate_call - def poll_result_generate_results( + def start_result_generate_results( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3107,14 +3156,12 @@ def poll_result_generate_results( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_generate_results + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3137,9 +3184,8 @@ def poll_result_generate_results( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3147,21 +3193,19 @@ def poll_result_generate_results( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_results_with_http_info( + def start_result_generate_results_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3175,14 +3219,12 @@ def poll_result_generate_results_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_generate_results + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3205,9 +3247,8 @@ def poll_result_generate_results_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3215,21 +3256,19 @@ def poll_result_generate_results_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_results_without_preload_content( + def start_result_generate_results_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3243,14 +3282,12 @@ def poll_result_generate_results_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_generate_results + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3273,9 +3310,8 @@ def poll_result_generate_results_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3283,20 +3319,18 @@ def poll_result_generate_results_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_generate_results_serialize( + def _start_result_generate_results_serialize( self, result_id, - id, _request_auth, _content_type, _headers, @@ -3318,8 +3352,6 @@ def _poll_result_generate_results_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3342,8 +3374,8 @@ def _poll_result_generate_results_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-results/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/generate-results', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3360,10 +3392,9 @@ def _poll_result_generate_results_serialize( @validate_call - def poll_result_load( + def start_result_load( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3377,14 +3408,12 @@ def poll_result_load( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_load + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3407,9 +3436,8 @@ def poll_result_load( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_load_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3417,21 +3445,19 @@ def poll_result_load( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_load_with_http_info( + def start_result_load_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3445,14 +3471,12 @@ def poll_result_load_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_load + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3475,9 +3499,8 @@ def poll_result_load_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_load_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3485,21 +3508,19 @@ def poll_result_load_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_load_without_preload_content( + def start_result_load_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3513,14 +3534,12 @@ def poll_result_load_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_load + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3543,9 +3562,8 @@ def poll_result_load_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_load_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3553,20 +3571,18 @@ def poll_result_load_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_load_serialize( + def _start_result_load_serialize( self, result_id, - id, _request_auth, _content_type, _headers, @@ -3588,8 +3604,6 @@ def _poll_result_load_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3612,8 +3626,8 @@ def _poll_result_load_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/load/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/load', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3630,9 +3644,9 @@ def _poll_result_load_serialize( @validate_call - def poll_results_batch_delete( + def start_results_batch_delete( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3646,12 +3660,12 @@ def poll_results_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_results_batch_delete + """start_results_batch_delete - Get the state of an ongoing operation. + Remove multiple results. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3674,8 +3688,8 @@ def poll_results_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3683,20 +3697,19 @@ def poll_results_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_results_batch_delete_with_http_info( + def start_results_batch_delete_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3710,12 +3723,12 @@ def poll_results_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_results_batch_delete + """start_results_batch_delete - Get the state of an ongoing operation. + Remove multiple results. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3738,8 +3751,8 @@ def poll_results_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3747,20 +3760,19 @@ def poll_results_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_results_batch_delete_without_preload_content( + def start_results_batch_delete_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3774,12 +3786,12 @@ def poll_results_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_results_batch_delete + """start_results_batch_delete - Get the state of an ongoing operation. + Remove multiple results. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3802,8 +3814,8 @@ def poll_results_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3811,1051 +3823,14 @@ def poll_results_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) - - - def _poll_results_batch_delete_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/operations/batch-delete/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_result_generate_all( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_result_generate_all - - Generate all result types. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_all_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_result_generate_all - - Generate all result types. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_all_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_result_generate_all - - Generate all result types. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_result_generate_all_serialize( - self, - result_id, - generate_all_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if generate_all_operation is not None: - _body_params = generate_all_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/generate-all', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_result_generate_results( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_results_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_results_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_result_generate_results_serialize( - self, - result_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/generate-results', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_result_load( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_load_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_load_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_result_load_serialize( - self, - result_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/load', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_results_batch_delete( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_results_batch_delete_with_http_info( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_results_batch_delete_without_preload_content( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - + def _start_results_batch_delete_serialize( self, diff --git a/cyperf/api/utils_api.py b/cyperf/api/utils_api.py index 0d167b2..b4eaf2f 100644 --- a/cyperf/api/utils_api.py +++ b/cyperf/api/utils_api.py @@ -110,7 +110,7 @@ def check_eulas( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def check_eulas_with_http_info( @@ -173,7 +173,7 @@ def check_eulas_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def check_eulas_without_preload_content( @@ -236,7 +236,7 @@ def check_eulas_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _check_eulas_serialize( self, @@ -352,7 +352,7 @@ def get_cert_manager_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_cert_manager_certificate_with_http_info( @@ -412,7 +412,7 @@ def get_cert_manager_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_cert_manager_certificate_without_preload_content( @@ -472,7 +472,7 @@ def get_cert_manager_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_cert_manager_certificate_serialize( self, @@ -592,7 +592,7 @@ def get_disk_usage( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_with_http_info( @@ -652,7 +652,7 @@ def get_disk_usage_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_without_preload_content( @@ -712,7 +712,7 @@ def get_disk_usage_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_serialize( self, @@ -837,7 +837,7 @@ def get_disk_usage_consumer_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumer_by_id_with_http_info( @@ -902,7 +902,7 @@ def get_disk_usage_consumer_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumer_by_id_without_preload_content( @@ -967,7 +967,7 @@ def get_disk_usage_consumer_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_consumer_by_id_serialize( self, @@ -1098,7 +1098,7 @@ def get_disk_usage_consumers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumers_with_http_info( @@ -1166,7 +1166,7 @@ def get_disk_usage_consumers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumers_without_preload_content( @@ -1234,7 +1234,7 @@ def get_disk_usage_consumers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_consumers_serialize( self, @@ -1364,7 +1364,7 @@ def get_docs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_with_http_info( @@ -1424,7 +1424,7 @@ def get_docs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_without_preload_content( @@ -1484,7 +1484,7 @@ def get_docs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_serialize( self, @@ -1604,7 +1604,7 @@ def get_docs_json( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_json_with_http_info( @@ -1664,7 +1664,7 @@ def get_docs_json_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_json_without_preload_content( @@ -1724,7 +1724,7 @@ def get_docs_json_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_json_serialize( self, @@ -1844,7 +1844,7 @@ def get_docs_yaml( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_yaml_with_http_info( @@ -1904,7 +1904,7 @@ def get_docs_yaml_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_yaml_without_preload_content( @@ -1964,7 +1964,7 @@ def get_docs_yaml_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_yaml_serialize( self, @@ -2084,7 +2084,7 @@ def get_eula( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_eula_with_http_info( @@ -2143,7 +2143,7 @@ def get_eula_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_eula_without_preload_content( @@ -2202,7 +2202,7 @@ def get_eula_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_eula_serialize( self, @@ -2322,7 +2322,7 @@ def get_log_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_log_config_with_http_info( @@ -2382,7 +2382,7 @@ def get_log_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_log_config_without_preload_content( @@ -2442,7 +2442,7 @@ def get_log_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_log_config_serialize( self, @@ -2561,7 +2561,7 @@ def get_time( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_time_with_http_info( @@ -2620,7 +2620,7 @@ def get_time_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_time_without_preload_content( @@ -2679,7 +2679,7 @@ def get_time_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_time_serialize( self, @@ -2797,7 +2797,7 @@ def list_eulas( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def list_eulas_with_http_info( @@ -2855,7 +2855,7 @@ def list_eulas_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def list_eulas_without_preload_content( @@ -2913,7 +2913,7 @@ def list_eulas_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _list_eulas_serialize( self, @@ -2975,10 +2975,80 @@ def _list_eulas_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_cert_manager_generate( + def post_eula( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2991,13 +3061,12 @@ def poll_cert_manager_generate( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_cert_manager_generate + ) -> str: + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3020,8 +3089,8 @@ def poll_cert_manager_generate( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3029,20 +3098,20 @@ def poll_cert_manager_generate( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_generate_with_http_info( + def post_eula_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3055,13 +3124,12 @@ def poll_cert_manager_generate_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_cert_manager_generate + ) -> ApiResponse[str]: + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3084,8 +3152,8 @@ def poll_cert_manager_generate_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3093,20 +3161,20 @@ def poll_cert_manager_generate_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_generate_without_preload_content( + def post_eula_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3120,12 +3188,11 @@ def poll_cert_manager_generate_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_cert_manager_generate + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3148,8 +3215,8 @@ def poll_cert_manager_generate_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3157,19 +3224,19 @@ def poll_cert_manager_generate_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_cert_manager_generate_serialize( + def _post_eula_serialize( self, - id, + eula_summary, _request_auth, _content_type, _headers, @@ -3189,12 +3256,12 @@ def _poll_cert_manager_generate_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if eula_summary is not None: + _body_params = eula_summary # set the HTTP header `Accept` @@ -3205,6 +3272,19 @@ def _poll_cert_manager_generate_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3213,8 +3293,8 @@ def _poll_cert_manager_generate_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/cert-manager/operations/generate/{id}', + method='POST', + resource_path='/eula/v1/eula/CyPerf', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3231,9 +3311,9 @@ def _poll_cert_manager_generate_serialize( @validate_call - def poll_cert_manager_upload( + def start_cert_manager_generate( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3247,12 +3327,12 @@ def poll_cert_manager_upload( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3275,8 +3355,8 @@ def poll_cert_manager_upload( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3284,20 +3364,19 @@ def poll_cert_manager_upload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_upload_with_http_info( + def start_cert_manager_generate_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3311,12 +3390,12 @@ def poll_cert_manager_upload_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3339,8 +3418,8 @@ def poll_cert_manager_upload_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3348,20 +3427,19 @@ def poll_cert_manager_upload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_upload_without_preload_content( + def start_cert_manager_generate_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3375,12 +3453,12 @@ def poll_cert_manager_upload_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3403,8 +3481,8 @@ def poll_cert_manager_upload_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3412,19 +3490,18 @@ def poll_cert_manager_upload_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_cert_manager_upload_serialize( + def _start_cert_manager_generate_serialize( self, - id, + certificate, _request_auth, _content_type, _headers, @@ -3444,12 +3521,12 @@ def _poll_cert_manager_upload_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if certificate is not None: + _body_params = certificate # set the HTTP header `Accept` @@ -3460,6 +3537,19 @@ def _poll_cert_manager_upload_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3468,8 +3558,8 @@ def _poll_cert_manager_upload_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/cert-manager/operations/upload/{id}', + method='POST', + resource_path='/api/v2/cert-manager/operations/generate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3486,9 +3576,8 @@ def _poll_cert_manager_upload_serialize( @validate_call - def poll_disk_usage_cleanup_diagnostics( + def start_cert_manager_upload( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3502,12 +3591,10 @@ def poll_disk_usage_cleanup_diagnostics( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3530,8 +3617,7 @@ def poll_disk_usage_cleanup_diagnostics( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3539,20 +3625,18 @@ def poll_disk_usage_cleanup_diagnostics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_diagnostics_with_http_info( + def start_cert_manager_upload_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3566,12 +3650,10 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3594,8 +3676,7 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3603,20 +3684,18 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_diagnostics_without_preload_content( + def start_cert_manager_upload_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3630,12 +3709,10 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3658,8 +3735,7 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3667,19 +3743,17 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_disk_usage_cleanup_diagnostics_serialize( + def _start_cert_manager_upload_serialize( self, - id, _request_auth, _content_type, _headers, @@ -3699,8 +3773,6 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3723,8 +3795,8 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics/{id}', + method='POST', + resource_path='/api/v2/cert-manager/operations/upload', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3741,9 +3813,8 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( @validate_call - def poll_disk_usage_cleanup_logs( + def start_disk_usage_cleanup_diagnostics( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3757,12 +3828,10 @@ def poll_disk_usage_cleanup_logs( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3785,8 +3854,7 @@ def poll_disk_usage_cleanup_logs( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3794,20 +3862,18 @@ def poll_disk_usage_cleanup_logs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_logs_with_http_info( + def start_disk_usage_cleanup_diagnostics_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3821,12 +3887,10 @@ def poll_disk_usage_cleanup_logs_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3849,8 +3913,7 @@ def poll_disk_usage_cleanup_logs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3858,20 +3921,18 @@ def poll_disk_usage_cleanup_logs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_logs_without_preload_content( + def start_disk_usage_cleanup_diagnostics_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3885,12 +3946,10 @@ def poll_disk_usage_cleanup_logs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3913,8 +3972,7 @@ def poll_disk_usage_cleanup_logs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3922,19 +3980,17 @@ def poll_disk_usage_cleanup_logs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_disk_usage_cleanup_logs_serialize( + def _start_disk_usage_cleanup_diagnostics_serialize( self, - id, _request_auth, _content_type, _headers, @@ -3954,8 +4010,6 @@ def _poll_disk_usage_cleanup_logs_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3978,8 +4032,8 @@ def _poll_disk_usage_cleanup_logs_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-logs/{id}', + method='POST', + resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3996,9 +4050,8 @@ def _poll_disk_usage_cleanup_logs_serialize( @validate_call - def poll_disk_usage_cleanup_migration( + def start_disk_usage_cleanup_logs( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4012,12 +4065,10 @@ def poll_disk_usage_cleanup_migration( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_migration + """start_disk_usage_cleanup_logs - Get the state of an ongoing operation. + Clean the system logs. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4040,8 +4091,7 @@ def poll_disk_usage_cleanup_migration( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, + _param = self._start_disk_usage_cleanup_logs_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4049,20 +4099,18 @@ def poll_disk_usage_cleanup_migration( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_migration_with_http_info( + def start_disk_usage_cleanup_logs_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4076,12 +4124,10 @@ def poll_disk_usage_cleanup_migration_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_migration + """start_disk_usage_cleanup_logs - Get the state of an ongoing operation. + Clean the system logs. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4104,1768 +4150,7 @@ def poll_disk_usage_cleanup_migration_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_migration_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_migration - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_migration_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-migration/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_disk_usage_cleanup_notifications( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_notifications_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_notifications_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_notifications_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-notifications/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_disk_usage_cleanup_results( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_results_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_results_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_results_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-results/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_eula( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def post_eula_with_http_info( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def post_eula_without_preload_content( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _post_eula_serialize( - self, - eula_summary, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if eula_summary is not None: - _body_params = eula_summary - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/eula/v1/eula/CyPerf', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_cert_manager_generate( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_generate_with_http_info( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_generate_without_preload_content( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_cert_manager_generate_serialize( - self, - certificate, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if certificate is not None: - _body_params = certificate - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/cert-manager/operations/generate', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_cert_manager_upload( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_upload_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_upload_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_cert_manager_upload_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/cert-manager/operations/upload', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_disk_usage_cleanup_diagnostics( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_diagnostics_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_diagnostics_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_disk_usage_cleanup_diagnostics_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_disk_usage_cleanup_logs( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_disk_usage_cleanup_logs - - Clean the system logs. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_logs_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_logs_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_disk_usage_cleanup_logs - - Clean the system logs. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_logs_serialize( + _param = self._start_disk_usage_cleanup_logs_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5880,7 +4165,7 @@ def start_disk_usage_cleanup_logs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_logs_without_preload_content( @@ -5939,7 +4224,7 @@ def start_disk_usage_cleanup_logs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_logs_serialize( self, @@ -6058,7 +4343,7 @@ def start_disk_usage_cleanup_migration( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_migration_with_http_info( @@ -6117,7 +4402,7 @@ def start_disk_usage_cleanup_migration_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_migration_without_preload_content( @@ -6176,7 +4461,7 @@ def start_disk_usage_cleanup_migration_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_migration_serialize( self, @@ -6295,7 +4580,7 @@ def start_disk_usage_cleanup_notifications( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_notifications_with_http_info( @@ -6354,7 +4639,7 @@ def start_disk_usage_cleanup_notifications_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_notifications_without_preload_content( @@ -6413,7 +4698,7 @@ def start_disk_usage_cleanup_notifications_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_notifications_serialize( self, @@ -6532,7 +4817,7 @@ def start_disk_usage_cleanup_results( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_results_with_http_info( @@ -6591,7 +4876,7 @@ def start_disk_usage_cleanup_results_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_results_without_preload_content( @@ -6650,7 +4935,7 @@ def start_disk_usage_cleanup_results_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_results_serialize( self, @@ -6774,7 +5059,7 @@ def update_log_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_log_config_with_http_info( @@ -6838,7 +5123,7 @@ def update_log_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_log_config_without_preload_content( @@ -6902,7 +5187,7 @@ def update_log_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_log_config_serialize( self, diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index cf80f4f..3fdf669 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -309,6 +309,8 @@ PreparedTestOptions = DynamicModel('PreparedTestOptions', (), {} ) PrfP1Algorithm = DynamicModel('PrfP1Algorithm', (), {} ) ProtectedSubnetConfig = DynamicModel('ProtectedSubnetConfig', (), {} ) +QUICProfile = DynamicModel('QUICProfile', (), {} ) +QUICVersion = DynamicModel('QUICVersion', (), {} ) RTPEncryptionMode = DynamicModel('RTPEncryptionMode', (), {} ) RTPProfile = DynamicModel('RTPProfile', (), {} ) RTPProfileMeta = DynamicModel('RTPProfileMeta', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index b2c27b9..d6851fc 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -309,6 +309,8 @@ class LinkNameException(Exception): from cyperf.models.prepared_test_options import PreparedTestOptions from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from cyperf.models.protected_subnet_config import ProtectedSubnetConfig +from cyperf.models.quic_profile import QUICProfile +from cyperf.models.quic_version import QUICVersion from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from cyperf.models.rtp_profile import RTPProfile from cyperf.models.rtp_profile_meta import RTPProfileMeta diff --git a/cyperf/models/action.py b/cyperf/models/action.py index af6770c..ea3a2c8 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index fae4a52..8b4808b 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 4e13108..3f0811d 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -29,6 +29,7 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params +from cyperf.models.quic_profile import QUICProfile from cyperf.models.stateless_stream import StatelessStream from cyperf.models.tls_profile import TLSProfile from cyperf.models.track import Track @@ -44,6 +45,7 @@ class Application(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -54,6 +56,7 @@ class Application(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -65,6 +68,7 @@ class Application(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") @@ -74,6 +78,7 @@ class Application(BaseModel): data_types: Optional[List[DataType]] = Field(default=None, alias="DataTypes") inherit_tls: Optional[StrictBool] = Field(default=None, alias="InheritTLS") is_stateless_stream: Optional[StrictBool] = Field(default=None, alias="IsStatelessStream") + is_streaming: Optional[StrictBool] = Field(default=None, alias="IsStreaming") objective_weight: StrictInt = Field(description="The objective weight of the application.", alias="ObjectiveWeight") protocol_found: Optional[StrictBool] = Field(default=None, alias="ProtocolFound") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") @@ -81,6 +86,7 @@ class Application(BaseModel): static: Optional[StrictBool] = Field(default=None, alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, alias="SupportedApps") supports_calibration: Optional[StrictBool] = Field(default=None, alias="SupportsCalibration") + supports_multi_flow: Optional[StrictBool] = Field(default=None, alias="SupportsMultiFlow") supports_strikes: Optional[StrictBool] = Field(default=None, alias="SupportsStrikes") supports_tls: Optional[StrictBool] = Field(default=None, alias="SupportsTLS") tracks: Optional[List[Track]] = Field(default=None, alias="Tracks") @@ -88,7 +94,7 @@ class Application(BaseModel): _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "IsStreaming", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsMultiFlow", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -142,6 +148,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -169,6 +178,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -230,6 +242,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), @@ -240,6 +253,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), @@ -251,6 +265,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), @@ -260,6 +275,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, "InheritTLS": obj.get("InheritTLS"), "IsStatelessStream": obj.get("IsStatelessStream"), + "IsStreaming": obj.get("IsStreaming"), "ObjectiveWeight": obj.get("ObjectiveWeight"), "ProtocolFound": obj.get("ProtocolFound"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, @@ -267,6 +283,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps"), "SupportsCalibration": obj.get("SupportsCalibration"), + "SupportsMultiFlow": obj.get("SupportsMultiFlow"), "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), "Tracks": [Track.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index b1b5222..4e5243e 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -37,6 +37,7 @@ class ApplicationProfile(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None applications: Optional[List[Application]] = Field(default=None, alias="Applications") @@ -51,7 +52,7 @@ class ApplicationProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateTrafficProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetTrafficProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,6 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "Applications": [Application.from_dict(_item) for _item in obj["Applications"]] if obj.get("Applications") is not None else None, diff --git a/cyperf/models/attack.py b/cyperf/models/attack.py index a2922f0..c985108 100644 --- a/cyperf/models/attack.py +++ b/cyperf/models/attack.py @@ -30,6 +30,7 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params +from cyperf.models.quic_profile import QUICProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union, GenericAlias, get_args @@ -43,6 +44,7 @@ class Attack(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -53,6 +55,7 @@ class Attack(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -64,6 +67,7 @@ class Attack(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") @@ -80,7 +84,7 @@ class Attack(BaseModel): _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritTLS", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritTLS", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -134,6 +138,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -161,6 +168,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -219,6 +229,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), @@ -229,6 +240,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), @@ -240,6 +252,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 2f104f1..425cdb7 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index c5085d6..8ceeeed 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -37,6 +37,7 @@ class AttackProfile(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None attacks: Optional[List[Attack]] = Field(default=None, alias="Attacks") @@ -51,7 +52,7 @@ class AttackProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetAttackProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,6 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "Attacks": [Attack.from_dict(_item) for _item in obj["Attacks"]] if obj.get("Attacks") is not None else None, diff --git a/cyperf/models/connection.py b/cyperf/models/connection.py index 681d812..1fe6b20 100644 --- a/cyperf/models/connection.py +++ b/cyperf/models/connection.py @@ -69,8 +69,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['http', 'https', 'tcp', 'tls', 'udp', 'ssl']): - raise ValueError("must be one of enum values ('http', 'https', 'tcp', 'tls', 'udp', 'ssl')") + if value not in set(['http', 'https', 'tcp', 'tls', 'udp', 'ssl', 'google_quic']): + raise ValueError("must be one of enum values ('http', 'https', 'tcp', 'tls', 'udp', 'ssl', 'google_quic')") return value model_config = ConfigDict( diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index 5125401..b9d51a4 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -33,8 +33,9 @@ class CreateAppOperation(BaseModel): actions: Optional[List[ActionInput]] = Field(default=None, alias="Actions") app_name: Optional[StrictStr] = Field(default=None, alias="AppName") app_type: Optional[StrictStr] = Field(default=None, alias="AppType") + description: Optional[StrictStr] = Field(default=None, alias="Description") parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") - __properties: ClassVar[List[str]] = ["Actions", "AppName", "AppType", "Parameters"] + __properties: ClassVar[List[str]] = ["Actions", "AppName", "AppType", "Description", "Parameters"] model_config = ConfigDict( populate_by_name=True, @@ -106,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Actions": [ActionInput.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, "AppName": obj.get("AppName"), "AppType": obj.get("AppType"), + "Description": obj.get("Description"), "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index 8fd419e..d59c7b9 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -74,8 +74,8 @@ def client_dut_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('config_settings') @@ -94,8 +94,8 @@ def hostname_suffix_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('http_forward_proxy_mode') @@ -114,8 +114,8 @@ def server_dut_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('host') @@ -124,8 +124,8 @@ def host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 99f63fe..9d73af5 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -36,6 +36,7 @@ class EditAppOperation(BaseModel): EditAppOperation """ # noqa: E501 add_inputs: Optional[List[AddInput]] = Field(default=None, alias="AddInputs") + app_description: Optional[StrictStr] = Field(default=None, alias="AppDescription") app_id: Optional[StrictStr] = Field(default=None, alias="AppId") app_name: Optional[StrictStr] = Field(default=None, alias="AppName") app_parameters: Optional[List[Parameter]] = Field(default=None, alias="AppParameters") @@ -44,7 +45,7 @@ class EditAppOperation(BaseModel): rename_inputs: Optional[List[RenameInput]] = Field(default=None, alias="RenameInputs") reorder_actions_inputs: Optional[List[ReorderActionInput]] = Field(default=None, alias="ReorderActionsInputs") reorder_exchanges_inputs: Optional[List[ReorderExchangesInput]] = Field(default=None, alias="ReorderExchangesInputs") - __properties: ClassVar[List[str]] = ["AddInputs", "AppId", "AppName", "AppParameters", "DeleteInputs", "EditActionInputs", "RenameInputs", "ReorderActionsInputs", "ReorderExchangesInputs"] + __properties: ClassVar[List[str]] = ["AddInputs", "AppDescription", "AppId", "AppName", "AppParameters", "DeleteInputs", "EditActionInputs", "RenameInputs", "ReorderActionsInputs", "ReorderExchangesInputs"] model_config = ConfigDict( populate_by_name=True, @@ -149,6 +150,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AddInputs": [AddInput.from_dict(_item) for _item in obj["AddInputs"]] if obj.get("AddInputs") is not None else None, + "AppDescription": obj.get("AppDescription"), "AppId": obj.get("AppId"), "AppName": obj.get("AppName"), "AppParameters": [Parameter.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 3600451..eb20e9c 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -33,8 +33,10 @@ class Metadata(BaseModel): """ # noqa: E501 direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") + is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") + no_multi_flow_support: Optional[StrictBool] = Field(default=None, description="If true, only a single application with this protocol id can be present in the configuration", alias="NoMultiFlowSupport") protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") rtp_profile_meta: Optional[RTPProfileMeta] = Field(default=None, alias="RTPProfileMeta") references: Optional[List[Reference]] = Field(default=None, description="The references of the strike", alias="References") @@ -45,7 +47,7 @@ class Metadata(BaseModel): static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "Keywords", "LegacyNames", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -119,8 +121,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), + "IsStreaming": obj.get("IsStreaming"), "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, "LegacyNames": obj.get("LegacyNames"), + "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index a30f21b..3540950 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -20,8 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.api_link import APILink -from cyperf.models.parameter_metadata import ParameterMetadata +from cyperf.models.parameter_match import ParameterMatch from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,19 +29,12 @@ class Parameter(BaseModel): """ Parameter """ # noqa: E501 - default_array_elements: Optional[List[Dict[str, StrictStr]]] = Field(default=None, description="The default values of the parameter", alias="DefaultArrayElements") - default_source: Optional[StrictStr] = Field(default=None, description="The default source of the parameter", alias="DefaultSource") - default_value: Optional[StrictStr] = Field(default=None, description="The default value of the parameter", alias="DefaultValue") - element_type: Optional[StrictStr] = Field(default=None, description="The type of elements in the values array", alias="ElementType") - metadata: Optional[ParameterMetadata] = Field(default=None, alias="Metadata") - sources: Optional[List[StrictStr]] = Field(default=None, description="The sources of the parameter", alias="Sources") - type: Optional[StrictStr] = Field(default=None, description="The type of the parameter", alias="Type") + matches: Optional[List[ParameterMatch]] = Field(default=None, alias="Matches") + name: Optional[StrictStr] = Field(default=None, alias="Name") var_field: Optional[StrictStr] = Field(default=None, description="The name of the ES document field", alias="field") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the parameter") - links: Optional[List[APILink]] = None operator: Optional[StrictStr] = Field(default=None, description="The operator that the parameter supports") query_param: Optional[StrictStr] = Field(default=None, description="The corresponding query param", alias="queryParam") - __properties: ClassVar[List[str]] = ["DefaultArrayElements", "DefaultSource", "DefaultValue", "ElementType", "Metadata", "Sources", "Type", "field", "id", "links", "operator", "queryParam"] + __properties: ClassVar[List[str]] = ["Matches", "Name", "field", "operator", "queryParam"] model_config = ConfigDict( populate_by_name=True, @@ -74,10 +66,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ - "id", ]) _dict = self.model_dump( @@ -85,16 +75,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of metadata - if self.metadata: - _dict['Metadata'] = self.metadata.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in links (list) + # override the default output from pydantic by calling `to_dict()` of each item in matches (list) _items = [] - if self.links: - for _item in self.links: + if self.matches: + for _item in self.matches: if _item: _items.append(_item.to_dict()) - _dict['links'] = _items + _dict['Matches'] = _items return _dict @classmethod @@ -109,16 +96,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "DefaultArrayElements": obj.get("DefaultArrayElements"), - "DefaultSource": obj.get("DefaultSource"), - "DefaultValue": obj.get("DefaultValue"), - "ElementType": obj.get("ElementType"), - "Metadata": ParameterMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, - "Sources": obj.get("Sources"), - "Type": obj.get("Type"), + "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, + "Name": obj.get("Name"), "field": obj.get("field"), - "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "operator": obj.get("operator"), "queryParam": obj.get("queryParam") , diff --git a/cyperf/models/pep_dut.py b/cyperf/models/pep_dut.py index e43b9d3..aabbc1e 100644 --- a/cyperf/models/pep_dut.py +++ b/cyperf/models/pep_dut.py @@ -50,8 +50,8 @@ def hostname_suffix_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('pep_host') @@ -60,8 +60,8 @@ def pep_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/quic_profile.py b/cyperf/models/quic_profile.py new file mode 100644 index 0000000..e0d9898 --- /dev/null +++ b/cyperf/models/quic_profile.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.quic_version import QUICVersion +from cyperf.models.tls_profile import TLSProfile +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class QUICProfile(BaseModel): + """ + QUICProfile + """ # noqa: E501 + client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") + min_rto: Optional[StrictInt] = Field(default=None, alias="MinRTO") + name: Optional[StrictStr] = Field(default=None, description="The name of the QUIC profile.", alias="Name") + quic_version: Optional[QUICVersion] = Field(default=None, alias="QUICVersion") + rx_buffer: Optional[StrictInt] = Field(default=None, alias="RxBuffer") + server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["ClientTLSProfile", "MinRTO", "Name", "QUICVersion", "RxBuffer", "ServerTLSProfile", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QUICProfile from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of client_tls_profile + if self.client_tls_profile: + _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_tls_profile + if self.server_tls_profile: + _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QUICProfile from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, + "MinRTO": obj.get("MinRTO"), + "Name": obj.get("Name"), + "QUICVersion": obj.get("QUICVersion"), + "RxBuffer": obj.get("RxBuffer"), + "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/quic_version.py b/cyperf/models/quic_version.py new file mode 100644 index 0000000..6ae4dbb --- /dev/null +++ b/cyperf/models/quic_version.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class QUICVersion(str, Enum): + """ + QUICVersion + """ + + """ + allowed enum values + """ + Q043 = 'Q043' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of QUICVersion from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/scenario.py b/cyperf/models/scenario.py index 91ff912..7ddb33d 100644 --- a/cyperf/models/scenario.py +++ b/cyperf/models/scenario.py @@ -28,6 +28,7 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params +from cyperf.models.quic_profile import QUICProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -39,6 +40,7 @@ class Scenario(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -49,6 +51,7 @@ class Scenario(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -60,12 +63,13 @@ class Scenario(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -119,6 +123,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -146,6 +153,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -170,6 +180,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), @@ -180,6 +191,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), @@ -191,6 +203,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), diff --git a/cyperf/models/supported_group_tls13.py b/cyperf/models/supported_group_tls13.py index 7e6a8ed..3184772 100644 --- a/cyperf/models/supported_group_tls13.py +++ b/cyperf/models/supported_group_tls13.py @@ -47,6 +47,7 @@ class SupportedGroupTLS13(str, Enum): P384_MLKEM768 = 'P384_MLKEM768' P256_MLKEM768 = 'P256_MLKEM768' P256_MLKEM512 = 'P256_MLKEM512' + X25519 = 'X25519' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index d3a0ed7..637afa5 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -32,9 +32,10 @@ class TrafficProfileBase(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] model_config = ConfigDict( populate_by_name=True, @@ -101,6 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , diff --git a/cyperf/models/transport_profile.py b/cyperf/models/transport_profile.py index 5b14cb0..37a0715 100644 --- a/cyperf/models/transport_profile.py +++ b/cyperf/models/transport_profile.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.http_profile import HTTPProfile +from cyperf.models.quic_profile import QUICProfile from cyperf.models.rtp_profile import RTPProfile from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile @@ -35,18 +36,20 @@ class TransportProfile(BaseModel): TransportProfile """ # noqa: E501 client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") client_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ClientTcpProfile") ip_tos: Optional[StrictInt] = Field(default=None, alias="IpTos") rtp_profile: Optional[RTPProfile] = Field(default=None, alias="RTPProfile") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") server_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ServerTcpProfile") udp_profile: Optional[UdpProfile] = Field(default=None, alias="UdpProfile") vlan_prio: Optional[StrictInt] = Field(default=None, alias="VlanPrio") links: Optional[List[APILink]] = None l4_profile_name: StrictStr = Field(alias="L4ProfileName") - __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links", "L4ProfileName"] + __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links", "L4ProfileName"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +93,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of client_tls_profile if self.client_tls_profile: _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() @@ -102,6 +108,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of server_tls_profile if self.server_tls_profile: _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() @@ -133,11 +142,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "ClientTcpProfile": TcpProfile.from_dict(obj["ClientTcpProfile"]) if obj.get("ClientTcpProfile") is not None else None, "IpTos": obj.get("IpTos"), "RTPProfile": RTPProfile.from_dict(obj["RTPProfile"]) if obj.get("RTPProfile") is not None else None, "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, diff --git a/cyperf/models/transport_profile_base.py b/cyperf/models/transport_profile_base.py index 0a608e7..0a19ccd 100644 --- a/cyperf/models/transport_profile_base.py +++ b/cyperf/models/transport_profile_base.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.http_profile import HTTPProfile +from cyperf.models.quic_profile import QUICProfile from cyperf.models.rtp_profile import RTPProfile from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile @@ -35,17 +36,19 @@ class TransportProfileBase(BaseModel): TransportProfileBase """ # noqa: E501 client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") client_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ClientTcpProfile") ip_tos: Optional[StrictInt] = Field(default=None, alias="IpTos") rtp_profile: Optional[RTPProfile] = Field(default=None, alias="RTPProfile") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") server_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ServerTcpProfile") udp_profile: Optional[UdpProfile] = Field(default=None, alias="UdpProfile") vlan_prio: Optional[StrictInt] = Field(default=None, alias="VlanPrio") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links"] + __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of client_tls_profile if self.client_tls_profile: _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() @@ -101,6 +107,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of server_tls_profile if self.server_tls_profile: _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() @@ -132,11 +141,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "ClientTcpProfile": TcpProfile.from_dict(obj["ClientTcpProfile"]) if obj.get("ClientTcpProfile") is not None else None, "IpTos": obj.get("IpTos"), "RTPProfile": RTPProfile.from_dict(obj["RTPProfile"]) if obj.get("RTPProfile") is not None else None, "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index a28507d..dfe18d8 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -15,20 +15,6 @@ Method | HTTP request | Description [**get_controller_compute_nodes**](AgentsApi.md#get_controller_compute_nodes) | **GET** /api/v2/controllers/{controllerId}/compute-nodes | [**get_controllers**](AgentsApi.md#get_controllers) | **GET** /api/v2/controllers | [**patch_agent**](AgentsApi.md#patch_agent) | **PATCH** /api/v2/agents/{agentId} | -[**poll_agents_batch_delete**](AgentsApi.md#poll_agents_batch_delete) | **GET** /api/v2/agents/operations/batch-delete/{id} | -[**poll_agents_export_files**](AgentsApi.md#poll_agents_export_files) | **GET** /api/v2/agents/operations/exportFiles/{id} | -[**poll_agents_reboot**](AgentsApi.md#poll_agents_reboot) | **GET** /api/v2/agents/operations/reboot/{id} | -[**poll_agents_release**](AgentsApi.md#poll_agents_release) | **GET** /api/v2/agents/operations/release/{id} | -[**poll_agents_reserve**](AgentsApi.md#poll_agents_reserve) | **GET** /api/v2/agents/operations/reserve/{id} | -[**poll_agents_set_dpdk_mode**](AgentsApi.md#poll_agents_set_dpdk_mode) | **GET** /api/v2/agents/operations/set-dpdk-mode/{id} | -[**poll_agents_set_ntp**](AgentsApi.md#poll_agents_set_ntp) | **GET** /api/v2/agents/operations/set-ntp/{id} | -[**poll_agents_update**](AgentsApi.md#poll_agents_update) | **GET** /api/v2/agents/operations/update/{id} | -[**poll_controllers_clear_port_ownership**](AgentsApi.md#poll_controllers_clear_port_ownership) | **GET** /api/v2/controllers/operations/clear-port-ownership/{id} | -[**poll_controllers_power_cycle_nodes**](AgentsApi.md#poll_controllers_power_cycle_nodes) | **GET** /api/v2/controllers/operations/power-cycle-nodes/{id} | -[**poll_controllers_reboot_port**](AgentsApi.md#poll_controllers_reboot_port) | **GET** /api/v2/controllers/operations/reboot-port/{id} | -[**poll_controllers_set_app**](AgentsApi.md#poll_controllers_set_app) | **GET** /api/v2/controllers/operations/set-app/{id} | -[**poll_controllers_set_node_aggregation**](AgentsApi.md#poll_controllers_set_node_aggregation) | **GET** /api/v2/controllers/operations/set-node-aggregation/{id} | -[**poll_controllers_set_port_link_state**](AgentsApi.md#poll_controllers_set_port_link_state) | **GET** /api/v2/controllers/operations/set-port-link-state/{id} | [**start_agents_batch_delete**](AgentsApi.md#start_agents_batch_delete) | **POST** /api/v2/agents/operations/batch-delete | [**start_agents_export_files**](AgentsApi.md#start_agents_export_files) | **POST** /api/v2/agents/operations/exportFiles | [**start_agents_reboot**](AgentsApi.md#start_agents_reboot) | **POST** /api/v2/agents/operations/reboot | @@ -929,1098 +915,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_agents_batch_delete** -> AsyncContext poll_agents_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_batch_delete(id) - print("The response of AgentsApi->poll_agents_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_export_files** -> AsyncContext poll_agents_export_files(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_export_files(id) - print("The response of AgentsApi->poll_agents_export_files:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_export_files: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_reboot** -> AsyncContext poll_agents_reboot(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_reboot(id) - print("The response of AgentsApi->poll_agents_reboot:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_reboot: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_release** -> AsyncContext poll_agents_release(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_release(id) - print("The response of AgentsApi->poll_agents_release:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_release: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_reserve** -> AsyncContext poll_agents_reserve(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_reserve(id) - print("The response of AgentsApi->poll_agents_reserve:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_reserve: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_set_dpdk_mode** -> AsyncContext poll_agents_set_dpdk_mode(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_set_dpdk_mode(id) - print("The response of AgentsApi->poll_agents_set_dpdk_mode:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_set_dpdk_mode: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_set_ntp** -> AsyncContext poll_agents_set_ntp(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_set_ntp(id) - print("The response of AgentsApi->poll_agents_set_ntp:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_set_ntp: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_update** -> AsyncContext poll_agents_update(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_update(id) - print("The response of AgentsApi->poll_agents_update:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_update: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_clear_port_ownership** -> AsyncContext poll_controllers_clear_port_ownership(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_clear_port_ownership(id) - print("The response of AgentsApi->poll_controllers_clear_port_ownership:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_clear_port_ownership: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_power_cycle_nodes** -> AsyncContext poll_controllers_power_cycle_nodes(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_power_cycle_nodes(id) - print("The response of AgentsApi->poll_controllers_power_cycle_nodes:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_power_cycle_nodes: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_reboot_port** -> AsyncContext poll_controllers_reboot_port(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_reboot_port(id) - print("The response of AgentsApi->poll_controllers_reboot_port:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_reboot_port: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_set_app** -> AsyncContext poll_controllers_set_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_set_app(id) - print("The response of AgentsApi->poll_controllers_set_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_set_node_aggregation** -> AsyncContext poll_controllers_set_node_aggregation(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_set_node_aggregation(id) - print("The response of AgentsApi->poll_controllers_set_node_aggregation:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_node_aggregation: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_set_port_link_state** -> AsyncContext poll_controllers_set_port_link_state(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_set_port_link_state(id) - print("The response of AgentsApi->poll_controllers_set_port_link_state:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_port_link_state: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_agents_batch_delete** > AsyncContext start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) diff --git a/docs/Application.md b/docs/Application.md index 589625c..64b0257 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] @@ -38,6 +41,7 @@ Name | Type | Description | Notes **data_types** | [**List[DataType]**](DataType.md) | | [optional] **inherit_tls** | **bool** | | [optional] **is_stateless_stream** | **bool** | | [optional] +**is_streaming** | **bool** | | [optional] **objective_weight** | **int** | The objective weight of the application. | **protocol_found** | **bool** | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] @@ -45,6 +49,7 @@ Name | Type | Description | Notes **static** | **bool** | | [optional] **supported_apps** | **List[str]** | | [optional] **supports_calibration** | **bool** | | [optional] +**supports_multi_flow** | **bool** | | [optional] **supports_strikes** | **bool** | | [optional] **supports_tls** | **bool** | | [optional] **tracks** | [**List[Track]**](Track.md) | | [optional] diff --git a/docs/ApplicationProfile.md b/docs/ApplicationProfile.md index 70d5ae1..6cde695 100644 --- a/docs/ApplicationProfile.md +++ b/docs/ApplicationProfile.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **applications** | [**List[Application]**](Application.md) | | [optional] diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index c49b33f..78b3044 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -108,35 +108,6 @@ Method | HTTP request | Description [**get_resources_tls_keys_upload_file_result**](ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | [**get_resources_user_defined_apps**](ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | [**get_resources_user_defined_apps_upload_file_result**](ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | -[**poll_resources_apps_export_all**](ApplicationResourcesApi.md#poll_resources_apps_export_all) | **GET** /api/v2/resources/apps/operations/export-all/{id} | -[**poll_resources_captures_batch_delete**](ApplicationResourcesApi.md#poll_resources_captures_batch_delete) | **GET** /api/v2/resources/captures/operations/batch-delete/{id} | -[**poll_resources_captures_upload_file**](ApplicationResourcesApi.md#poll_resources_captures_upload_file) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId} | -[**poll_resources_certificates_upload_file**](ApplicationResourcesApi.md#poll_resources_certificates_upload_file) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} | -[**poll_resources_config_export_user_defined_apps**](ApplicationResourcesApi.md#poll_resources_config_export_user_defined_apps) | **GET** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id} | -[**poll_resources_create_app**](ApplicationResourcesApi.md#poll_resources_create_app) | **GET** /api/v2/resources/operations/create-app/{id} | -[**poll_resources_custom_fuzzing_scripts_upload_file**](ApplicationResourcesApi.md#poll_resources_custom_fuzzing_scripts_upload_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId} | -[**poll_resources_edit_app**](ApplicationResourcesApi.md#poll_resources_edit_app) | **GET** /api/v2/resources/operations/edit-app/{id} | -[**poll_resources_find_param_matches**](ApplicationResourcesApi.md#poll_resources_find_param_matches) | **GET** /api/v2/resources/operations/find-param-matches/{id} | -[**poll_resources_flow_library_upload_file**](ApplicationResourcesApi.md#poll_resources_flow_library_upload_file) | **GET** /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_get_attack_categories**](ApplicationResourcesApi.md#poll_resources_get_attack_categories) | **GET** /api/v2/resources/operations/get-attack-categories/{id} | -[**poll_resources_get_attacks**](ApplicationResourcesApi.md#poll_resources_get_attacks) | **GET** /api/v2/resources/operations/get-attacks/{id} | -[**poll_resources_get_strike_categories**](ApplicationResourcesApi.md#poll_resources_get_strike_categories) | **GET** /api/v2/resources/operations/get-strike-categories/{id} | -[**poll_resources_get_strikes**](ApplicationResourcesApi.md#poll_resources_get_strikes) | **GET** /api/v2/resources/operations/get-strikes/{id} | -[**poll_resources_global_playlists_upload_file**](ApplicationResourcesApi.md#poll_resources_global_playlists_upload_file) | **GET** /api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId} | -[**poll_resources_http_library_upload_file**](ApplicationResourcesApi.md#poll_resources_http_library_upload_file) | **GET** /api/v2/resources/http-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_media_files_upload_file**](ApplicationResourcesApi.md#poll_resources_media_files_upload_file) | **GET** /api/v2/resources/media-files/operations/uploadFile/{uploadFileId} | -[**poll_resources_media_library_upload_file**](ApplicationResourcesApi.md#poll_resources_media_library_upload_file) | **GET** /api/v2/resources/media-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_other_library_upload_file**](ApplicationResourcesApi.md#poll_resources_other_library_upload_file) | **GET** /api/v2/resources/other-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_payloads_upload_file**](ApplicationResourcesApi.md#poll_resources_payloads_upload_file) | **GET** /api/v2/resources/payloads/operations/uploadFile/{uploadFileId} | -[**poll_resources_pcaps_upload_file**](ApplicationResourcesApi.md#poll_resources_pcaps_upload_file) | **GET** /api/v2/resources/pcaps/operations/uploadFile/{uploadFileId} | -[**poll_resources_playlists_upload_file**](ApplicationResourcesApi.md#poll_resources_playlists_upload_file) | **GET** /api/v2/resources/playlists/operations/uploadFile/{uploadFileId} | -[**poll_resources_sip_library_upload_file**](ApplicationResourcesApi.md#poll_resources_sip_library_upload_file) | **GET** /api/v2/resources/sip-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_stats_profile_upload_file**](ApplicationResourcesApi.md#poll_resources_stats_profile_upload_file) | **GET** /api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_certificates_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_certificates_upload_file) | **GET** /api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_dhs_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_dhs_upload_file) | **GET** /api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_keys_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_keys_upload_file) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId} | -[**poll_resources_user_defined_apps_export_all**](ApplicationResourcesApi.md#poll_resources_user_defined_apps_export_all) | **GET** /api/v2/resources/user-defined-apps/operations/export-all/{id} | -[**poll_resources_user_defined_apps_upload_file**](ApplicationResourcesApi.md#poll_resources_user_defined_apps_upload_file) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId} | [**start_resources_apps_export_all**](ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | [**start_resources_captures_batch_delete**](ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | [**start_resources_captures_upload_file**](ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | @@ -8331,2237 +8302,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_apps_export_all** -> AsyncContext poll_resources_apps_export_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_apps_export_all(id) - print("The response of ApplicationResourcesApi->poll_resources_apps_export_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_apps_export_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_captures_batch_delete** -> AsyncContext poll_resources_captures_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_captures_batch_delete(id) - print("The response of ApplicationResourcesApi->poll_resources_captures_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_captures_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_captures_upload_file** -> AsyncContext poll_resources_captures_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_response = api_instance.poll_resources_captures_upload_file(upload_file_id) - print("The response of ApplicationResourcesApi->poll_resources_captures_upload_file:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_captures_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_certificates_upload_file** -> poll_resources_certificates_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_certificates_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_certificates_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_config_export_user_defined_apps** -> AsyncContext poll_resources_config_export_user_defined_apps(config_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - config_id = 'config_id_example' # str | The ID of the config. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_config_export_user_defined_apps(config_id, id) - print("The response of ApplicationResourcesApi->poll_resources_config_export_user_defined_apps:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_config_export_user_defined_apps: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **config_id** | **str**| The ID of the config. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_create_app** -> AsyncContext poll_resources_create_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_create_app(id) - print("The response of ApplicationResourcesApi->poll_resources_create_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_create_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_custom_fuzzing_scripts_upload_file** -> poll_resources_custom_fuzzing_scripts_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_custom_fuzzing_scripts_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_custom_fuzzing_scripts_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_edit_app** -> AsyncContext poll_resources_edit_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_edit_app(id) - print("The response of ApplicationResourcesApi->poll_resources_edit_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_edit_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_find_param_matches** -> AsyncContext poll_resources_find_param_matches(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_find_param_matches(id) - print("The response of ApplicationResourcesApi->poll_resources_find_param_matches:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_find_param_matches: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_flow_library_upload_file** -> poll_resources_flow_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_flow_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_flow_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_attack_categories** -> AsyncContext poll_resources_get_attack_categories(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_attack_categories(id) - print("The response of ApplicationResourcesApi->poll_resources_get_attack_categories:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_attack_categories: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_attacks** -> AsyncContext poll_resources_get_attacks(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_attacks(id) - print("The response of ApplicationResourcesApi->poll_resources_get_attacks:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_attacks: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_strike_categories** -> AsyncContext poll_resources_get_strike_categories(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_strike_categories(id) - print("The response of ApplicationResourcesApi->poll_resources_get_strike_categories:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_strike_categories: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_strikes** -> AsyncContext poll_resources_get_strikes(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_strikes(id) - print("The response of ApplicationResourcesApi->poll_resources_get_strikes:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_strikes: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_global_playlists_upload_file** -> poll_resources_global_playlists_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_global_playlists_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_global_playlists_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_http_library_upload_file** -> poll_resources_http_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_http_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_http_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_media_files_upload_file** -> poll_resources_media_files_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_media_files_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_media_files_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_media_library_upload_file** -> poll_resources_media_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_media_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_media_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_other_library_upload_file** -> poll_resources_other_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_other_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_other_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_payloads_upload_file** -> poll_resources_payloads_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_payloads_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_payloads_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_pcaps_upload_file** -> poll_resources_pcaps_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_pcaps_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_pcaps_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_playlists_upload_file** -> poll_resources_playlists_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_playlists_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_playlists_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_sip_library_upload_file** -> poll_resources_sip_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_sip_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_sip_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_stats_profile_upload_file** -> poll_resources_stats_profile_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_stats_profile_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_stats_profile_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_certificates_upload_file** -> poll_resources_tls_certificates_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_certificates_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_certificates_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_dhs_upload_file** -> poll_resources_tls_dhs_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_dhs_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_dhs_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_keys_upload_file** -> poll_resources_tls_keys_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_keys_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_keys_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_user_defined_apps_export_all** -> AsyncContext poll_resources_user_defined_apps_export_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_user_defined_apps_export_all(id) - print("The response of ApplicationResourcesApi->poll_resources_user_defined_apps_export_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_user_defined_apps_export_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_user_defined_apps_upload_file** -> poll_resources_user_defined_apps_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_user_defined_apps_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_user_defined_apps_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_resources_apps_export_all** > AsyncContext start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) diff --git a/docs/Attack.md b/docs/Attack.md index 7fe5d99..25e0e0d 100644 --- a/docs/Attack.md +++ b/docs/Attack.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] diff --git a/docs/AttackProfile.md b/docs/AttackProfile.md index 923e8bc..4d64831 100644 --- a/docs/AttackProfile.md +++ b/docs/AttackProfile.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **attacks** | [**List[Attack]**](Attack.md) | | [optional] diff --git a/docs/ConfigurationsApi.md b/docs/ConfigurationsApi.md index da5887d..5766462 100644 --- a/docs/ConfigurationsApi.md +++ b/docs/ConfigurationsApi.md @@ -11,10 +11,6 @@ Method | HTTP request | Description [**get_configs**](ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | [**get_resources_custom_import_operations**](ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | [**patch_config**](ConfigurationsApi.md#patch_config) | **PATCH** /api/v2/configs/{configId} | -[**poll_configs_batch_delete**](ConfigurationsApi.md#poll_configs_batch_delete) | **GET** /api/v2/configs/operations/batch-delete/{id} | -[**poll_configs_export_all**](ConfigurationsApi.md#poll_configs_export_all) | **GET** /api/v2/configs/operations/exportAll/{id} | -[**poll_configs_import**](ConfigurationsApi.md#poll_configs_import) | **GET** /api/v2/configs/operations/import/{id} | -[**poll_configs_import_all**](ConfigurationsApi.md#poll_configs_import_all) | **GET** /api/v2/configs/operations/importAll/{id} | [**start_configs_batch_delete**](ConfigurationsApi.md#start_configs_batch_delete) | **POST** /api/v2/configs/operations/batch-delete | [**start_configs_export_all**](ConfigurationsApi.md#start_configs_export_all) | **POST** /api/v2/configs/operations/exportAll | [**start_configs_import**](ConfigurationsApi.md#start_configs_import) | **POST** /api/v2/configs/operations/import | @@ -588,318 +584,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_configs_batch_delete** -> AsyncContext poll_configs_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_batch_delete(id) - print("The response of ConfigurationsApi->poll_configs_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_configs_export_all** -> AsyncContext poll_configs_export_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_export_all(id) - print("The response of ConfigurationsApi->poll_configs_export_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_export_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_configs_import** -> AsyncContext poll_configs_import(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_import(id) - print("The response of ConfigurationsApi->poll_configs_import:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_import: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_configs_import_all** -> AsyncContext poll_configs_import_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_import_all(id) - print("The response of ConfigurationsApi->poll_configs_import_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_import_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_configs_batch_delete** > AsyncContext start_configs_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) diff --git a/docs/CreateAppOperation.md b/docs/CreateAppOperation.md index ddbdac5..549b210 100644 --- a/docs/CreateAppOperation.md +++ b/docs/CreateAppOperation.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **actions** | [**List[ActionInput]**](ActionInput.md) | | [optional] **app_name** | **str** | | [optional] **app_type** | **str** | | [optional] +**description** | **str** | | [optional] **parameters** | [**List[Parameter]**](Parameter.md) | | [optional] ## Example diff --git a/docs/DataMigrationApi.md b/docs/DataMigrationApi.md index e2a0b64..cb37771 100644 --- a/docs/DataMigrationApi.md +++ b/docs/DataMigrationApi.md @@ -4,168 +4,10 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**poll_controller_migration_export**](DataMigrationApi.md#poll_controller_migration_export) | **GET** /api/v2/controller-migration/operations/export/{id} | -[**poll_controller_migration_import**](DataMigrationApi.md#poll_controller_migration_import) | **GET** /api/v2/controller-migration/operations/import/{id} | [**start_controller_migration_export**](DataMigrationApi.md#start_controller_migration_export) | **POST** /api/v2/controller-migration/operations/export | [**start_controller_migration_import**](DataMigrationApi.md#start_controller_migration_import) | **POST** /api/v2/controller-migration/operations/import | -# **poll_controller_migration_export** -> AsyncContext poll_controller_migration_export(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.DataMigrationApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controller_migration_export(id) - print("The response of DataMigrationApi->poll_controller_migration_export:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DataMigrationApi->poll_controller_migration_export: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controller_migration_import** -> AsyncContext poll_controller_migration_import(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.DataMigrationApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controller_migration_import(id) - print("The response of DataMigrationApi->poll_controller_migration_import:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DataMigrationApi->poll_controller_migration_import: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_controller_migration_export** > AsyncContext start_controller_migration_export(export_package_operation=export_package_operation) diff --git a/docs/EditAppOperation.md b/docs/EditAppOperation.md index c556303..0906600 100644 --- a/docs/EditAppOperation.md +++ b/docs/EditAppOperation.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **add_inputs** | [**List[AddInput]**](AddInput.md) | | [optional] +**app_description** | **str** | | [optional] **app_id** | **str** | | [optional] **app_name** | **str** | | [optional] **app_parameters** | [**List[Parameter]**](Parameter.md) | | [optional] diff --git a/docs/Metadata.md b/docs/Metadata.md index 5c57877..228d7c7 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -7,8 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **direction** | **str** | The direction of the strike | [optional] **is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] +**is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] **keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The keywords of the strike | [optional] **legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] +**no_multi_flow_support** | **bool** | If true, only a single application with this protocol id can be present in the configuration | [optional] **protocol** | **str** | The protocol of the strike | [optional] **rtp_profile_meta** | [**RTPProfileMeta**](RTPProfileMeta.md) | | [optional] **references** | [**List[Reference]**](Reference.md) | The references of the strike | [optional] diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index d9bb141..ef41a55 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -8,8 +8,6 @@ Method | HTTP request | Description [**get_notification_by_id**](NotificationsApi.md#get_notification_by_id) | **GET** /api/v2/notifications/{notificationId} | [**get_notification_counts**](NotificationsApi.md#get_notification_counts) | **GET** /api/v2/notification-counts | [**get_notifications**](NotificationsApi.md#get_notifications) | **GET** /api/v2/notifications | -[**poll_notifications_cleanup**](NotificationsApi.md#poll_notifications_cleanup) | **GET** /api/v2/notifications/operations/cleanup/{id} | -[**poll_notifications_dismiss**](NotificationsApi.md#poll_notifications_dismiss) | **GET** /api/v2/notifications/operations/dismiss/{id} | [**start_notifications_cleanup**](NotificationsApi.md#start_notifications_cleanup) | **POST** /api/v2/notifications/operations/cleanup | [**start_notifications_dismiss**](NotificationsApi.md#start_notifications_dismiss) | **POST** /api/v2/notifications/operations/dismiss | @@ -378,162 +376,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_notifications_cleanup** -> AsyncContext poll_notifications_cleanup(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.NotificationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_notifications_cleanup(id) - print("The response of NotificationsApi->poll_notifications_cleanup:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling NotificationsApi->poll_notifications_cleanup: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_notifications_dismiss** -> AsyncContext poll_notifications_dismiss(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.NotificationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_notifications_dismiss(id) - print("The response of NotificationsApi->poll_notifications_dismiss:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling NotificationsApi->poll_notifications_dismiss: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_notifications_cleanup** > AsyncContext start_notifications_cleanup() diff --git a/docs/Parameter.md b/docs/Parameter.md index 0da9abe..4484128 100644 --- a/docs/Parameter.md +++ b/docs/Parameter.md @@ -5,16 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**default_array_elements** | **List[Dict[str, str]]** | The default values of the parameter | [optional] -**default_source** | **str** | The default source of the parameter | [optional] -**default_value** | **str** | The default value of the parameter | [optional] -**element_type** | **str** | The type of elements in the values array | [optional] -**metadata** | [**ParameterMetadata**](ParameterMetadata.md) | | [optional] -**sources** | **List[str]** | The sources of the parameter | [optional] -**type** | **str** | The type of the parameter | [optional] +**matches** | [**List[ParameterMatch]**](ParameterMatch.md) | | [optional] +**name** | **str** | | [optional] **var_field** | **str** | The name of the ES document field | [optional] -**id** | **str** | The unique identifier of the parameter | [optional] [readonly] -**links** | [**List[APILink]**](APILink.md) | | [optional] **operator** | **str** | The operator that the parameter supports | [optional] **query_param** | **str** | The corresponding query param | [optional] diff --git a/docs/QUICProfile.md b/docs/QUICProfile.md new file mode 100644 index 0000000..9473738 --- /dev/null +++ b/docs/QUICProfile.md @@ -0,0 +1,35 @@ +# QUICProfile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] +**min_rto** | **int** | | [optional] +**name** | **str** | The name of the QUIC profile. | [optional] +**quic_version** | [**QUICVersion**](QUICVersion.md) | | [optional] +**rx_buffer** | **int** | | [optional] +**server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.quic_profile import QUICProfile + +# TODO update the JSON string below +json = "{}" +# create an instance of QUICProfile from a JSON string +quic_profile_instance = QUICProfile.from_json(json) +# print the JSON string representation of the object +print(QUICProfile.to_json()) + +# convert the object into a dict +quic_profile_dict = quic_profile_instance.to_dict() +# create an instance of QUICProfile from a dict +quic_profile_from_dict = QUICProfile.from_dict(quic_profile_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QUICVersion.md b/docs/QUICVersion.md new file mode 100644 index 0000000..e4d44eb --- /dev/null +++ b/docs/QUICVersion.md @@ -0,0 +1,10 @@ +# QUICVersion + + +## Enum + +* `Q043` (value: `'Q043'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md index 19e9a35..58775af 100644 --- a/docs/ReportsApi.md +++ b/docs/ReportsApi.md @@ -6,8 +6,6 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**download_pdf**](ReportsApi.md#download_pdf) | **GET** /api/v2/results/{resultId}/download-pdf/{pdfId} | [**get_result_download_csv_by_id**](ReportsApi.md#get_result_download_csv_by_id) | **GET** /api/v2/results/{resultId}/download-csv/{downloadCsvId} | -[**poll_result_generate_csv**](ReportsApi.md#poll_result_generate_csv) | **GET** /api/v2/results/{resultId}/operations/generate-csv/{id} | -[**poll_result_generate_pdf**](ReportsApi.md#poll_result_generate_pdf) | **GET** /api/v2/results/{resultId}/operations/generate-pdf/{id} | [**start_result_generate_csv**](ReportsApi.md#start_result_generate_csv) | **POST** /api/v2/results/{resultId}/operations/generate-csv | [**start_result_generate_pdf**](ReportsApi.md#start_result_generate_pdf) | **POST** /api/v2/results/{resultId}/operations/generate-pdf | @@ -169,166 +167,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_result_generate_csv** -> AsyncContext poll_result_generate_csv(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ReportsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_csv(result_id, id) - print("The response of ReportsApi->poll_result_generate_csv:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportsApi->poll_result_generate_csv: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_result_generate_pdf** -> AsyncContext poll_result_generate_pdf(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ReportsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_pdf(result_id, id) - print("The response of ReportsApi->poll_result_generate_pdf:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportsApi->poll_result_generate_pdf: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_result_generate_csv** > AsyncContext start_result_generate_csv(result_id, generate_csv_reports_operation=generate_csv_reports_operation) diff --git a/docs/Scenario.md b/docs/Scenario.md index 700d401..f019ab1 100644 --- a/docs/Scenario.md +++ b/docs/Scenario.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] diff --git a/docs/SessionsApi.md b/docs/SessionsApi.md index 2a95787..f34d6a3 100644 --- a/docs/SessionsApi.md +++ b/docs/SessionsApi.md @@ -20,15 +20,6 @@ Method | HTTP request | Description [**patch_session**](SessionsApi.md#patch_session) | **PATCH** /api/v2/sessions/{sessionId} | [**patch_session_meta**](SessionsApi.md#patch_session_meta) | **PATCH** /api/v2/sessions/{sessionId}/meta/{metaId} | [**patch_session_test**](SessionsApi.md#patch_session_test) | **PATCH** /api/v2/sessions/{sessionId}/test | -[**poll_config_add_applications**](SessionsApi.md#poll_config_add_applications) | **GET** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id} | -[**poll_session_config_granular_stats_default_dashboards**](SessionsApi.md#poll_session_config_granular_stats_default_dashboards) | **GET** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} | -[**poll_session_config_save**](SessionsApi.md#poll_session_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | -[**poll_session_load_config**](SessionsApi.md#poll_session_load_config) | **GET** /api/v2/sessions/{sessionId}/operations/loadConfig/{id} | -[**poll_session_prepare_test**](SessionsApi.md#poll_session_prepare_test) | **GET** /api/v2/sessions/{sessionId}/operations/prepareTest/{id} | -[**poll_session_test_end**](SessionsApi.md#poll_session_test_end) | **GET** /api/v2/sessions/{sessionId}/operations/testEnd/{id} | -[**poll_session_test_init**](SessionsApi.md#poll_session_test_init) | **GET** /api/v2/sessions/{sessionId}/operations/testInit/{id} | -[**poll_session_touch**](SessionsApi.md#poll_session_touch) | **GET** /api/v2/sessions/{sessionId}/operations/touch/{id} | -[**poll_sessions_batch_delete**](SessionsApi.md#poll_sessions_batch_delete) | **GET** /api/v2/sessions/operations/batch-delete/{id} | [**start_config_add_applications**](SessionsApi.md#start_config_add_applications) | **POST** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications | [**start_session_config_granular_stats_default_dashboards**](SessionsApi.md#start_session_config_granular_stats_default_dashboards) | **POST** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards | [**start_session_config_save**](SessionsApi.md#start_session_config_save) | **POST** /api/v2/sessions/{sessionId}/config/operations/save | @@ -1315,725 +1306,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_config_add_applications** -> AsyncContext poll_config_add_applications(session_id, traffic_profile_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - traffic_profile_id = 'traffic_profile_id_example' # str | The ID of the traffic profile. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_config_add_applications(session_id, traffic_profile_id, id) - print("The response of SessionsApi->poll_config_add_applications:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_config_add_applications: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **traffic_profile_id** | **str**| The ID of the traffic profile. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_config_granular_stats_default_dashboards** -> AsyncContext poll_session_config_granular_stats_default_dashboards(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_config_granular_stats_default_dashboards(session_id, id) - print("The response of SessionsApi->poll_session_config_granular_stats_default_dashboards:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_config_granular_stats_default_dashboards: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_config_save** -> AsyncContext poll_session_config_save(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_config_save(session_id, id) - print("The response of SessionsApi->poll_session_config_save:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_config_save: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_load_config** -> AsyncContext poll_session_load_config(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_load_config(session_id, id) - print("The response of SessionsApi->poll_session_load_config:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_load_config: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_prepare_test** -> AsyncContext poll_session_prepare_test(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_prepare_test(session_id, id) - print("The response of SessionsApi->poll_session_prepare_test:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_prepare_test: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_test_end** -> AsyncContext poll_session_test_end(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_test_end(session_id, id) - print("The response of SessionsApi->poll_session_test_end:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_test_end: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_test_init** -> AsyncContext poll_session_test_init(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_test_init(session_id, id) - print("The response of SessionsApi->poll_session_test_init:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_test_init: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_touch** -> AsyncContext poll_session_touch(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_touch(session_id, id) - print("The response of SessionsApi->poll_session_touch:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_touch: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_sessions_batch_delete** -> AsyncContext poll_sessions_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_sessions_batch_delete(id) - print("The response of SessionsApi->poll_sessions_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_sessions_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_config_add_applications** > AsyncContext start_config_add_applications(session_id, traffic_profile_id, external_resource_info=external_resource_info) diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index 33fb993..e4b4b0b 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -9,7 +9,6 @@ Method | HTTP request | Description [**get_result_stat_by_id**](StatisticsApi.md#get_result_stat_by_id) | **GET** /api/v2/results/{resultId}/stats/{statId} | [**get_result_stats**](StatisticsApi.md#get_result_stats) | **GET** /api/v2/results/{resultId}/stats | [**get_stats_plugins**](StatisticsApi.md#get_stats_plugins) | **GET** /api/v2/stats/plugins | -[**poll_stats_plugins_ingest**](StatisticsApi.md#poll_stats_plugins_ingest) | **GET** /api/v2/stats/plugins/operations/ingest/{id} | [**start_stats_plugins_ingest**](StatisticsApi.md#start_stats_plugins_ingest) | **POST** /api/v2/stats/plugins/operations/ingest | @@ -421,84 +420,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_stats_plugins_ingest** -> AsyncContext poll_stats_plugins_ingest(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.StatisticsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_stats_plugins_ingest(id) - print("The response of StatisticsApi->poll_stats_plugins_ingest:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StatisticsApi->poll_stats_plugins_ingest: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_stats_plugins_ingest** > AsyncContext start_stats_plugins_ingest(ingest_operation=ingest_operation) diff --git a/docs/SupportedGroupTLS13.md b/docs/SupportedGroupTLS13.md index 69e1439..9f5da16 100644 --- a/docs/SupportedGroupTLS13.md +++ b/docs/SupportedGroupTLS13.md @@ -44,6 +44,8 @@ The TLSv1.3 supported groups (default: P-256). * `P256_MLKEM512` (value: `'P256_MLKEM512'`) +* `X25519` (value: `'X25519'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestOperationsApi.md b/docs/TestOperationsApi.md index 2dd0003..f72b493 100644 --- a/docs/TestOperationsApi.md +++ b/docs/TestOperationsApi.md @@ -4,11 +4,6 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**poll_test_calibrate_start**](TestOperationsApi.md#poll_test_calibrate_start) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id} | -[**poll_test_calibrate_stop**](TestOperationsApi.md#poll_test_calibrate_stop) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id} | -[**poll_test_run_abort**](TestOperationsApi.md#poll_test_run_abort) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/abort/{id} | -[**poll_test_run_start**](TestOperationsApi.md#poll_test_run_start) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/start/{id} | -[**poll_test_run_stop**](TestOperationsApi.md#poll_test_run_stop) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/stop/{id} | [**start_test_calibrate_start**](TestOperationsApi.md#start_test_calibrate_start) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/start | [**start_test_calibrate_stop**](TestOperationsApi.md#start_test_calibrate_stop) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop | [**start_test_run_abort**](TestOperationsApi.md#start_test_run_abort) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/abort | @@ -16,406 +11,6 @@ Method | HTTP request | Description [**start_test_run_stop**](TestOperationsApi.md#start_test_run_stop) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/stop | -# **poll_test_calibrate_start** -> AsyncContext poll_test_calibrate_start(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_calibrate_start(session_id, id) - print("The response of TestOperationsApi->poll_test_calibrate_start:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_calibrate_start: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_calibrate_stop** -> AsyncContext poll_test_calibrate_stop(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_calibrate_stop(session_id, id) - print("The response of TestOperationsApi->poll_test_calibrate_stop:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_calibrate_stop: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_abort** -> AsyncContext poll_test_run_abort(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_abort(session_id, id) - print("The response of TestOperationsApi->poll_test_run_abort:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_abort: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_start** -> AsyncContext poll_test_run_start(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_start(session_id, id) - print("The response of TestOperationsApi->poll_test_run_start:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_start: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_stop** -> AsyncContext poll_test_run_stop(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_stop(session_id, id) - print("The response of TestOperationsApi->poll_test_run_stop:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_stop: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_test_calibrate_start** > AsyncContext start_test_calibrate_start(session_id) diff --git a/docs/TestResultsApi.md b/docs/TestResultsApi.md index 6de66cb..7aff89c 100644 --- a/docs/TestResultsApi.md +++ b/docs/TestResultsApi.md @@ -14,10 +14,6 @@ Method | HTTP request | Description [**get_result_files**](TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | [**get_results**](TestResultsApi.md#get_results) | **GET** /api/v2/results | [**get_results_tags**](TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | -[**poll_result_generate_all**](TestResultsApi.md#poll_result_generate_all) | **GET** /api/v2/results/{resultId}/operations/generate-all/{id} | -[**poll_result_generate_results**](TestResultsApi.md#poll_result_generate_results) | **GET** /api/v2/results/{resultId}/operations/generate-results/{id} | -[**poll_result_load**](TestResultsApi.md#poll_result_load) | **GET** /api/v2/results/{resultId}/operations/load/{id} | -[**poll_results_batch_delete**](TestResultsApi.md#poll_results_batch_delete) | **GET** /api/v2/results/operations/batch-delete/{id} | [**start_result_generate_all**](TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | [**start_result_generate_results**](TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | [**start_result_load**](TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -821,324 +817,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_result_generate_all** -> AsyncContext poll_result_generate_all(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_all(result_id, id) - print("The response of TestResultsApi->poll_result_generate_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_result_generate_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_result_generate_results** -> AsyncContext poll_result_generate_results(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_results(result_id, id) - print("The response of TestResultsApi->poll_result_generate_results:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_result_generate_results: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_result_load** -> AsyncContext poll_result_load(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_load(result_id, id) - print("The response of TestResultsApi->poll_result_load:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_result_load: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_results_batch_delete** -> AsyncContext poll_results_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_results_batch_delete(id) - print("The response of TestResultsApi->poll_results_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_results_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_result_generate_all** > AsyncContext start_result_generate_all(result_id, generate_all_operation=generate_all_operation) diff --git a/docs/TrafficProfileBase.md b/docs/TrafficProfileBase.md index 96f745f..31f48b9 100644 --- a/docs/TrafficProfileBase.md +++ b/docs/TrafficProfileBase.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/TransportProfile.md b/docs/TransportProfile.md index 6341000..c774900 100644 --- a/docs/TransportProfile.md +++ b/docs/TransportProfile.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **client_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **ip_tos** | **int** | | [optional] **rtp_profile** | [**RTPProfile**](RTPProfile.md) | | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **server_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **udp_profile** | [**UdpProfile**](UdpProfile.md) | | [optional] diff --git a/docs/TransportProfileBase.md b/docs/TransportProfileBase.md index 9d21b20..7f9a509 100644 --- a/docs/TransportProfileBase.md +++ b/docs/TransportProfileBase.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **client_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **ip_tos** | **int** | | [optional] **rtp_profile** | [**RTPProfile**](RTPProfile.md) | | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **server_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **udp_profile** | [**UdpProfile**](UdpProfile.md) | | [optional] diff --git a/docs/UtilsApi.md b/docs/UtilsApi.md index 3f6844d..22033a9 100644 --- a/docs/UtilsApi.md +++ b/docs/UtilsApi.md @@ -16,13 +16,6 @@ Method | HTTP request | Description [**get_log_config**](UtilsApi.md#get_log_config) | **GET** /api/v2/log-config | [**get_time**](UtilsApi.md#get_time) | **GET** /api/v2/time | [**list_eulas**](UtilsApi.md#list_eulas) | **GET** /eula/v1/eula | list of EULAs -[**poll_cert_manager_generate**](UtilsApi.md#poll_cert_manager_generate) | **GET** /api/v2/cert-manager/operations/generate/{id} | -[**poll_cert_manager_upload**](UtilsApi.md#poll_cert_manager_upload) | **GET** /api/v2/cert-manager/operations/upload/{id} | -[**poll_disk_usage_cleanup_diagnostics**](UtilsApi.md#poll_disk_usage_cleanup_diagnostics) | **GET** /api/v2/disk-usage/operations/cleanup-diagnostics/{id} | -[**poll_disk_usage_cleanup_logs**](UtilsApi.md#poll_disk_usage_cleanup_logs) | **GET** /api/v2/disk-usage/operations/cleanup-logs/{id} | -[**poll_disk_usage_cleanup_migration**](UtilsApi.md#poll_disk_usage_cleanup_migration) | **GET** /api/v2/disk-usage/operations/cleanup-migration/{id} | -[**poll_disk_usage_cleanup_notifications**](UtilsApi.md#poll_disk_usage_cleanup_notifications) | **GET** /api/v2/disk-usage/operations/cleanup-notifications/{id} | -[**poll_disk_usage_cleanup_results**](UtilsApi.md#poll_disk_usage_cleanup_results) | **GET** /api/v2/disk-usage/operations/cleanup-results/{id} | [**post_eula**](UtilsApi.md#post_eula) | **POST** /eula/v1/eula/CyPerf | Update properties an EULA [**start_cert_manager_generate**](UtilsApi.md#start_cert_manager_generate) | **POST** /api/v2/cert-manager/operations/generate | [**start_cert_manager_upload**](UtilsApi.md#start_cert_manager_upload) | **POST** /api/v2/cert-manager/operations/upload | @@ -922,552 +915,6 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_cert_manager_generate** -> AsyncContext poll_cert_manager_generate(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_cert_manager_generate(id) - print("The response of UtilsApi->poll_cert_manager_generate:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_cert_manager_generate: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_cert_manager_upload** -> AsyncContext poll_cert_manager_upload(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_cert_manager_upload(id) - print("The response of UtilsApi->poll_cert_manager_upload:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_cert_manager_upload: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_diagnostics** -> AsyncContext poll_disk_usage_cleanup_diagnostics(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_diagnostics(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_diagnostics:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_diagnostics: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_logs** -> AsyncContext poll_disk_usage_cleanup_logs(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_logs(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_logs:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_logs: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_migration** -> AsyncContext poll_disk_usage_cleanup_migration(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_migration(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_migration:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_migration: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_notifications** -> AsyncContext poll_disk_usage_cleanup_notifications(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_notifications(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_notifications:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_notifications: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_results** -> AsyncContext poll_disk_usage_cleanup_results(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_results(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_results:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_results: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_eula** > str post_eula(eula_summary=eula_summary) diff --git a/test/test_action.py b/test/test_action.py index 3518ac6..2406369 100644 --- a/test/test_action.py +++ b/test/test_action.py @@ -170,5 +170,6 @@ def testAction(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_action_base.py b/test/test_action_base.py index c5e72a9..11bcb07 100644 --- a/test/test_action_base.py +++ b/test/test_action_base.py @@ -170,5 +170,6 @@ def testActionBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_action_input.py b/test/test_action_input.py index 39c7b19..e29a19c 100644 --- a/test/test_action_input.py +++ b/test/test_action_input.py @@ -50,87 +50,19 @@ def make_instance(self, include_optional) -> ActionInput: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -145,5 +77,6 @@ def testActionInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_action_input_find_param.py b/test/test_action_input_find_param.py index 5b6e8a0..f1446ed 100644 --- a/test/test_action_input_find_param.py +++ b/test/test_action_input_find_param.py @@ -67,5 +67,6 @@ def testActionInputFindParam(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py index 0bd785a..752771c 100644 --- a/test/test_action_metadata.py +++ b/test/test_action_metadata.py @@ -116,87 +116,19 @@ def make_instance(self, include_optional) -> ActionMetadata: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -211,5 +143,6 @@ def testActionMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_activation_code_info.py b/test/test_activation_code_info.py index 77adae3..b3251c0 100644 --- a/test/test_activation_code_info.py +++ b/test/test_activation_code_info.py @@ -57,5 +57,6 @@ def testActivationCodeInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_activation_code_list_request.py b/test/test_activation_code_list_request.py index f4f2476..40288bc 100644 --- a/test/test_activation_code_list_request.py +++ b/test/test_activation_code_list_request.py @@ -50,5 +50,6 @@ def testActivationCodeListRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_activation_code_request.py b/test/test_activation_code_request.py index 4e44607..75bfa2f 100644 --- a/test/test_activation_code_request.py +++ b/test/test_activation_code_request.py @@ -49,5 +49,6 @@ def testActivationCodeRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_add_action_info.py b/test/test_add_action_info.py index c3dd4fe..977b55f 100644 --- a/test/test_add_action_info.py +++ b/test/test_add_action_info.py @@ -55,5 +55,6 @@ def testAddActionInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_add_input.py b/test/test_add_input.py index 8d0c9cc..e00bf60 100644 --- a/test/test_add_input.py +++ b/test/test_add_input.py @@ -53,87 +53,19 @@ def make_instance(self, include_optional) -> AddInput: flow_index_insert_at = 56, parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -149,5 +81,6 @@ def testAddInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_advanced_settings.py b/test/test_advanced_settings.py index d1d51e5..69a531f 100644 --- a/test/test_advanced_settings.py +++ b/test/test_advanced_settings.py @@ -53,5 +53,6 @@ def testAdvancedSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent.py b/test/test_agent.py index 7495dbd..1385468 100644 --- a/test/test_agent.py +++ b/test/test_agent.py @@ -142,5 +142,6 @@ def testAgent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_assignment_by_port.py b/test/test_agent_assignment_by_port.py index 127ec2d..6565e24 100644 --- a/test/test_agent_assignment_by_port.py +++ b/test/test_agent_assignment_by_port.py @@ -65,5 +65,6 @@ def testAgentAssignmentByPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_assignment_details.py b/test/test_agent_assignment_details.py index d01abda..db0bf5a 100644 --- a/test/test_agent_assignment_details.py +++ b/test/test_agent_assignment_details.py @@ -69,5 +69,6 @@ def testAgentAssignmentDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_assignments.py b/test/test_agent_assignments.py index a1ce132..14c3c92 100644 --- a/test/test_agent_assignments.py +++ b/test/test_agent_assignments.py @@ -69,5 +69,6 @@ def testAgentAssignments(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_cpu_info.py b/test/test_agent_cpu_info.py index 74a3d38..8e4453c 100644 --- a/test/test_agent_cpu_info.py +++ b/test/test_agent_cpu_info.py @@ -53,5 +53,6 @@ def testAgentCPUInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_features.py b/test/test_agent_features.py index e8cae7e..d22bc59 100644 --- a/test/test_agent_features.py +++ b/test/test_agent_features.py @@ -50,5 +50,6 @@ def testAgentFeatures(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_optimization_mode.py b/test/test_agent_optimization_mode.py index 07b5daf..2434525 100644 --- a/test/test_agent_optimization_mode.py +++ b/test/test_agent_optimization_mode.py @@ -30,5 +30,6 @@ def testAgentOptimizationMode(self): """Test AgentOptimizationMode""" # inst = AgentOptimizationMode() + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_release.py b/test/test_agent_release.py index 69559e8..cd48053 100644 --- a/test/test_agent_release.py +++ b/test/test_agent_release.py @@ -48,5 +48,6 @@ def testAgentRelease(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_reservation.py b/test/test_agent_reservation.py index cbfa0a8..25c38c6 100644 --- a/test/test_agent_reservation.py +++ b/test/test_agent_reservation.py @@ -57,5 +57,6 @@ def testAgentReservation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_to_be_rebooted.py b/test/test_agent_to_be_rebooted.py index dc591b4..a69e2fb 100644 --- a/test/test_agent_to_be_rebooted.py +++ b/test/test_agent_to_be_rebooted.py @@ -48,5 +48,6 @@ def testAgentToBeRebooted(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agents_api.py b/test/test_agents_api.py index 3dd5c47..702c73f 100644 --- a/test/test_agents_api.py +++ b/test/test_agents_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_delete_agent(self) -> None: """Test case for delete_agent @@ -93,89 +94,19 @@ def test_patch_agent(self) -> None: """ pass - def test_poll_agents_batch_delete(self) -> None: - """Test case for poll_agents_batch_delete - """ - pass - - def test_poll_agents_export_files(self) -> None: - """Test case for poll_agents_export_files - - """ - pass - def test_poll_agents_reboot(self) -> None: - """Test case for poll_agents_reboot - """ - pass - - def test_poll_agents_release(self) -> None: - """Test case for poll_agents_release - - """ - pass - def test_poll_agents_reserve(self) -> None: - """Test case for poll_agents_reserve - """ - pass - def test_poll_agents_set_dpdk_mode(self) -> None: - """Test case for poll_agents_set_dpdk_mode - """ - pass - def test_poll_agents_set_ntp(self) -> None: - """Test case for poll_agents_set_ntp - """ - pass - def test_poll_agents_update(self) -> None: - """Test case for poll_agents_update - """ - pass - def test_poll_controllers_clear_port_ownership(self) -> None: - """Test case for poll_controllers_clear_port_ownership - """ - pass - - def test_poll_controllers_power_cycle_nodes(self) -> None: - """Test case for poll_controllers_power_cycle_nodes - - """ - pass - - def test_poll_controllers_reboot_port(self) -> None: - """Test case for poll_controllers_reboot_port - - """ - pass - - def test_poll_controllers_set_app(self) -> None: - """Test case for poll_controllers_set_app - - """ - pass - - def test_poll_controllers_set_node_aggregation(self) -> None: - """Test case for poll_controllers_set_node_aggregation - - """ - pass - - def test_poll_controllers_set_port_link_state(self) -> None: - """Test case for poll_controllers_set_port_link_state - - """ - pass def test_start_agents_batch_delete(self) -> None: """Test case for start_agents_batch_delete @@ -261,6 +192,5 @@ def test_start_controllers_set_port_link_state(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_agents_group.py b/test/test_agents_group.py index ce71987..aacc607 100644 --- a/test/test_agents_group.py +++ b/test/test_agents_group.py @@ -53,5 +53,6 @@ def testAgentsGroup(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_api_link.py b/test/test_api_link.py index 02936c3..5b231a7 100644 --- a/test/test_api_link.py +++ b/test/test_api_link.py @@ -54,5 +54,6 @@ def testAPILink(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_api_relationship.py b/test/test_api_relationship.py index 79ee5d5..f752f7f 100644 --- a/test/test_api_relationship.py +++ b/test/test_api_relationship.py @@ -30,5 +30,6 @@ def testAPIRelationship(self): """Test APIRelationship""" # inst = APIRelationship() + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_exchange.py b/test/test_app_exchange.py index 48d9a91..81bea07 100644 --- a/test/test_app_exchange.py +++ b/test/test_app_exchange.py @@ -111,5 +111,6 @@ def testAppExchange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_flow.py b/test/test_app_flow.py index 420faa7..d03db57 100644 --- a/test/test_app_flow.py +++ b/test/test_app_flow.py @@ -117,5 +117,6 @@ def testAppFlow(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_flow_desc.py b/test/test_app_flow_desc.py index 854b68e..3f12f7c 100644 --- a/test/test_app_flow_desc.py +++ b/test/test_app_flow_desc.py @@ -51,5 +51,6 @@ def testAppFlowDesc(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_flow_input.py b/test/test_app_flow_input.py index dd7ab1f..b062770 100644 --- a/test/test_app_flow_input.py +++ b/test/test_app_flow_input.py @@ -51,5 +51,6 @@ def testAppFlowInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_flow_input_find_param.py b/test/test_app_flow_input_find_param.py index c360adc..8a38529 100644 --- a/test/test_app_flow_input_find_param.py +++ b/test/test_app_flow_input_find_param.py @@ -59,5 +59,6 @@ def testAppFlowInputFindParam(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_id.py b/test/test_app_id.py index 5321903..6b7fe62 100644 --- a/test/test_app_id.py +++ b/test/test_app_id.py @@ -48,5 +48,6 @@ def testAppId(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_mode.py b/test/test_app_mode.py index 0227908..8ab87ed 100644 --- a/test/test_app_mode.py +++ b/test/test_app_mode.py @@ -49,5 +49,6 @@ def testAppMode(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_application.py b/test/test_application.py index 9b0e095..7e32b8c 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -145,6 +145,23 @@ def make_instance(self, include_optional) -> Application: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), connections = [ cyperf.models.connection.Connection( client_endpoint = '', @@ -202,6 +219,7 @@ def make_instance(self, include_optional) -> Application: external_resource_url = '', index = 56, inherit_http_profile = True, + inherit_quic_profile = True, ip_preference = 'IPV4_ONLY', is_deprecated = True, iteration_count = 56, @@ -422,6 +440,23 @@ def make_instance(self, include_optional) -> Application: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), supports_client_http_profile = True, supports_http_profiles = True, supports_server_http_profile = True, @@ -521,6 +556,7 @@ def make_instance(self, include_optional) -> Application: ], inherit_tls = True, is_stateless_stream = True, + is_streaming = True, objective_weight = 56, protocol_found = True, server_tls_profile = cyperf.models.tls_profile.TLSProfile( @@ -617,6 +653,7 @@ def make_instance(self, include_optional) -> Application: '' ], supports_calibration = True, + supports_multi_flow = True, supports_strikes = True, supports_tls = True, tracks = [ @@ -685,5 +722,6 @@ def testApplication(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_application_profile.py b/test/test_application_profile.py index 26cd298..bf198d1 100644 --- a/test/test_application_profile.py +++ b/test/test_application_profile.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> ApplicationProfile: rel = '', type = '', ) ], ), + use_all_source_ips_per_user = True, id = '', links = [ cyperf.models.api_link.APILink( @@ -157,5 +158,6 @@ def testApplicationProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py index 0bad3a7..2b794b6 100644 --- a/test/test_application_resources_api.py +++ b/test/test_application_resources_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_delete_resources_capture(self) -> None: """Test case for delete_resources_capture @@ -651,179 +652,34 @@ def test_get_resources_user_defined_apps_upload_file_result(self) -> None: """ pass - def test_poll_resources_apps_export_all(self) -> None: - """Test case for poll_resources_apps_export_all - """ - pass - - def test_poll_resources_captures_batch_delete(self) -> None: - """Test case for poll_resources_captures_batch_delete - - """ - pass - - def test_poll_resources_captures_upload_file(self) -> None: - """Test case for poll_resources_captures_upload_file - - """ - pass - - def test_poll_resources_certificates_upload_file(self) -> None: - """Test case for poll_resources_certificates_upload_file - - """ - pass - - def test_poll_resources_config_export_user_defined_apps(self) -> None: - """Test case for poll_resources_config_export_user_defined_apps - - """ - pass - - def test_poll_resources_create_app(self) -> None: - """Test case for poll_resources_create_app - - """ - pass - - def test_poll_resources_custom_fuzzing_scripts_upload_file(self) -> None: - """Test case for poll_resources_custom_fuzzing_scripts_upload_file - - """ - pass - - def test_poll_resources_edit_app(self) -> None: - """Test case for poll_resources_edit_app - - """ - pass - - def test_poll_resources_find_param_matches(self) -> None: - """Test case for poll_resources_find_param_matches - - """ - pass - - def test_poll_resources_flow_library_upload_file(self) -> None: - """Test case for poll_resources_flow_library_upload_file - - """ - pass - - def test_poll_resources_get_attack_categories(self) -> None: - """Test case for poll_resources_get_attack_categories - - """ - pass - - def test_poll_resources_get_attacks(self) -> None: - """Test case for poll_resources_get_attacks - - """ - pass - - def test_poll_resources_get_strike_categories(self) -> None: - """Test case for poll_resources_get_strike_categories - - """ - pass - - def test_poll_resources_get_strikes(self) -> None: - """Test case for poll_resources_get_strikes - - """ - pass - - def test_poll_resources_global_playlists_upload_file(self) -> None: - """Test case for poll_resources_global_playlists_upload_file - """ - pass - def test_poll_resources_http_library_upload_file(self) -> None: - """Test case for poll_resources_http_library_upload_file - """ - pass - def test_poll_resources_media_files_upload_file(self) -> None: - """Test case for poll_resources_media_files_upload_file - """ - pass - def test_poll_resources_media_library_upload_file(self) -> None: - """Test case for poll_resources_media_library_upload_file - """ - pass - - def test_poll_resources_other_library_upload_file(self) -> None: - """Test case for poll_resources_other_library_upload_file - - """ - pass - def test_poll_resources_payloads_upload_file(self) -> None: - """Test case for poll_resources_payloads_upload_file - """ - pass - def test_poll_resources_pcaps_upload_file(self) -> None: - """Test case for poll_resources_pcaps_upload_file - """ - pass - def test_poll_resources_playlists_upload_file(self) -> None: - """Test case for poll_resources_playlists_upload_file - """ - pass - def test_poll_resources_sip_library_upload_file(self) -> None: - """Test case for poll_resources_sip_library_upload_file - """ - pass - def test_poll_resources_stats_profile_upload_file(self) -> None: - """Test case for poll_resources_stats_profile_upload_file - """ - pass - def test_poll_resources_tls_certificates_upload_file(self) -> None: - """Test case for poll_resources_tls_certificates_upload_file - """ - pass - def test_poll_resources_tls_dhs_upload_file(self) -> None: - """Test case for poll_resources_tls_dhs_upload_file - """ - pass - def test_poll_resources_tls_keys_upload_file(self) -> None: - """Test case for poll_resources_tls_keys_upload_file - """ - pass - def test_poll_resources_user_defined_apps_export_all(self) -> None: - """Test case for poll_resources_user_defined_apps_export_all - """ - pass - def test_poll_resources_user_defined_apps_upload_file(self) -> None: - """Test case for poll_resources_user_defined_apps_upload_file - """ - pass def test_start_resources_apps_export_all(self) -> None: """Test case for start_resources_apps_export_all @@ -999,6 +855,5 @@ def test_start_resources_user_defined_apps_upload_file(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_application_type.py b/test/test_application_type.py index 184d3ad..14b2058 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -51,12 +51,14 @@ def make_instance(self, include_optional) -> ApplicationType: metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -83,29 +85,19 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -193,12 +185,14 @@ def make_instance(self, include_optional) -> ApplicationType: metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -225,87 +219,19 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -325,12 +251,14 @@ def make_instance(self, include_optional) -> ApplicationType: metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -357,29 +285,19 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -422,5 +340,6 @@ def testApplicationType(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index 1bcc761..f97a9dc 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -124,79 +124,27 @@ def make_instance(self, include_optional) -> AppsecApp: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ), @@ -225,5 +173,6 @@ def testAppsecApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index 23d1ea7..493d584 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -118,154 +118,38 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -280,5 +164,6 @@ def testAppsecAppMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_appsec_attack.py b/test/test_appsec_attack.py index f1c4d0f..a986c65 100644 --- a/test/test_appsec_attack.py +++ b/test/test_appsec_attack.py @@ -79,5 +79,6 @@ def testAppsecAttack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_appsec_config.py b/test/test_appsec_config.py index c8c2807..756d4c4 100644 --- a/test/test_appsec_config.py +++ b/test/test_appsec_config.py @@ -121,5 +121,6 @@ def testAppsecConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_archive_info.py b/test/test_archive_info.py index 4481c14..7566b54 100644 --- a/test/test_archive_info.py +++ b/test/test_archive_info.py @@ -62,5 +62,6 @@ def testArchiveInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_array_v2_element_metadata.py b/test/test_array_v2_element_metadata.py index 3c1fbef..5a95bd3 100644 --- a/test/test_array_v2_element_metadata.py +++ b/test/test_array_v2_element_metadata.py @@ -49,5 +49,6 @@ def testArrayV2ElementMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_async_context.py b/test/test_async_context.py index 4692da5..1850aaa 100644 --- a/test/test_async_context.py +++ b/test/test_async_context.py @@ -55,5 +55,6 @@ def testAsyncContext(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_async_operation_response.py b/test/test_async_operation_response.py index 8f981b1..f13001e 100644 --- a/test/test_async_operation_response.py +++ b/test/test_async_operation_response.py @@ -61,5 +61,6 @@ def testAsyncOperationResponse(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack.py b/test/test_attack.py index 7486b14..4123d93 100644 --- a/test/test_attack.py +++ b/test/test_attack.py @@ -145,6 +145,23 @@ def make_instance(self, include_optional) -> Attack: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), connections = [ cyperf.models.connection.Connection( client_endpoint = '', @@ -202,6 +219,7 @@ def make_instance(self, include_optional) -> Attack: external_resource_url = '', index = 56, inherit_http_profile = True, + inherit_quic_profile = True, ip_preference = 'IPV4_ONLY', is_deprecated = True, iteration_count = 56, @@ -422,6 +440,23 @@ def make_instance(self, include_optional) -> Attack: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), supports_client_http_profile = True, supports_http_profiles = True, supports_server_http_profile = True, @@ -662,5 +697,6 @@ def testAttack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_action.py b/test/test_attack_action.py index a763354..77c1235 100644 --- a/test/test_attack_action.py +++ b/test/test_attack_action.py @@ -170,5 +170,6 @@ def testAttackAction(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_metadata.py b/test/test_attack_metadata.py index fd5876a..bdfd6b1 100644 --- a/test/test_attack_metadata.py +++ b/test/test_attack_metadata.py @@ -62,5 +62,6 @@ def testAttackMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_metadata_keywords_inner.py b/test/test_attack_metadata_keywords_inner.py index bb36988..7268e1c 100644 --- a/test/test_attack_metadata_keywords_inner.py +++ b/test/test_attack_metadata_keywords_inner.py @@ -47,5 +47,6 @@ def testAttackMetadataKeywordsInner(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_objectives_and_timeline.py b/test/test_attack_objectives_and_timeline.py index 9370f21..8d9a02d 100644 --- a/test/test_attack_objectives_and_timeline.py +++ b/test/test_attack_objectives_and_timeline.py @@ -60,5 +60,6 @@ def testAttackObjectivesAndTimeline(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_profile.py b/test/test_attack_profile.py index 7064f97..a939f6f 100644 --- a/test/test_attack_profile.py +++ b/test/test_attack_profile.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> AttackProfile: rel = '', type = '', ) ], ), + use_all_source_ips_per_user = True, id = '', links = [ cyperf.models.api_link.APILink( @@ -133,5 +134,6 @@ def testAttackProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_timeline_segment.py b/test/test_attack_timeline_segment.py index 835188b..5cbc796 100644 --- a/test/test_attack_timeline_segment.py +++ b/test/test_attack_timeline_segment.py @@ -60,5 +60,6 @@ def testAttackTimelineSegment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_track.py b/test/test_attack_track.py index 5e7665e..b9bc799 100644 --- a/test/test_attack_track.py +++ b/test/test_attack_track.py @@ -73,5 +73,6 @@ def testAttackTrack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_auth_method_type.py b/test/test_auth_method_type.py index 5ac9849..fadf297 100644 --- a/test/test_auth_method_type.py +++ b/test/test_auth_method_type.py @@ -30,5 +30,6 @@ def testAuthMethodType(self): """Test AuthMethodType""" # inst = AuthMethodType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py index 8607853..51c9aa1 100644 --- a/test/test_auth_profile.py +++ b/test/test_auth_profile.py @@ -113,87 +113,19 @@ def make_instance(self, include_optional) -> AuthProfile: sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -221,5 +153,6 @@ def testAuthProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_auth_profile_metadata.py b/test/test_auth_profile_metadata.py index e1ef241..4acf2af 100644 --- a/test/test_auth_profile_metadata.py +++ b/test/test_auth_profile_metadata.py @@ -69,5 +69,6 @@ def testAuthProfileMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_auth_settings.py b/test/test_auth_settings.py index 7e0296e..30392d8 100644 --- a/test/test_auth_settings.py +++ b/test/test_auth_settings.py @@ -530,5 +530,6 @@ def testAuthSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_authenticate200_response.py b/test/test_authenticate200_response.py index 296d0a7..c3cf86b 100644 --- a/test/test_authenticate200_response.py +++ b/test/test_authenticate200_response.py @@ -51,5 +51,6 @@ def testAuthenticate200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_authentication_settings.py b/test/test_authentication_settings.py index 91aad9d..62e8e3b 100644 --- a/test/test_authentication_settings.py +++ b/test/test_authentication_settings.py @@ -246,5 +246,6 @@ def testAuthenticationSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_authorization_api.py b/test/test_authorization_api.py index 8ccc12c..6c38f78 100644 --- a/test/test_authorization_api.py +++ b/test/test_authorization_api.py @@ -27,12 +27,12 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_authenticate(self) -> None: """Test case for authenticate """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_automatic_ip_type.py b/test/test_automatic_ip_type.py index 3220447..906050d 100644 --- a/test/test_automatic_ip_type.py +++ b/test/test_automatic_ip_type.py @@ -30,5 +30,6 @@ def testAutomaticIpType(self): """Test AutomaticIpType""" # inst = AutomaticIpType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_broker.py b/test/test_broker.py index e5121a2..6f0ee21 100644 --- a/test/test_broker.py +++ b/test/test_broker.py @@ -58,5 +58,6 @@ def testBroker(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_brokers_api.py b/test/test_brokers_api.py index 3a4ef8a..9c1859d 100644 --- a/test/test_brokers_api.py +++ b/test/test_brokers_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_brokers(self) -> None: """Test case for create_brokers @@ -57,6 +58,5 @@ def test_patch_broker(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_capture_input.py b/test/test_capture_input.py index d19bf6b..8206790 100644 --- a/test/test_capture_input.py +++ b/test/test_capture_input.py @@ -55,5 +55,6 @@ def testCaptureInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_capture_input_find_param.py b/test/test_capture_input_find_param.py index 15641e6..14725e9 100644 --- a/test/test_capture_input_find_param.py +++ b/test/test_capture_input_find_param.py @@ -63,5 +63,6 @@ def testCaptureInputFindParam(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_capture_settings.py b/test/test_capture_settings.py index 8338f6a..2cce494 100644 --- a/test/test_capture_settings.py +++ b/test/test_capture_settings.py @@ -53,5 +53,6 @@ def testCaptureSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_category.py b/test/test_category.py index 47e4026..69f858d 100644 --- a/test/test_category.py +++ b/test/test_category.py @@ -54,5 +54,6 @@ def testCategory(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_category_filter.py b/test/test_category_filter.py index f88a949..e737113 100644 --- a/test/test_category_filter.py +++ b/test/test_category_filter.py @@ -51,5 +51,6 @@ def testCategoryFilter(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_category_value.py b/test/test_category_value.py index 01c28c5..2acac89 100644 --- a/test/test_category_value.py +++ b/test/test_category_value.py @@ -49,5 +49,6 @@ def testCategoryValue(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_cert_config.py b/test/test_cert_config.py index 370819e..593648d 100644 --- a/test/test_cert_config.py +++ b/test/test_cert_config.py @@ -355,5 +355,6 @@ def testCertConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_certificate.py b/test/test_certificate.py index 8601cc3..7bb1ede 100644 --- a/test/test_certificate.py +++ b/test/test_certificate.py @@ -58,5 +58,6 @@ def testCertificate(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_chassis_info.py b/test/test_chassis_info.py index 8ef3816..cfc1697 100644 --- a/test/test_chassis_info.py +++ b/test/test_chassis_info.py @@ -50,5 +50,6 @@ def testChassisInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_choice.py b/test/test_choice.py index b8bde76..72a7347 100644 --- a/test/test_choice.py +++ b/test/test_choice.py @@ -51,5 +51,6 @@ def testChoice(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_cipher_tls12.py b/test/test_cipher_tls12.py index 8e92fea..c4ba3da 100644 --- a/test/test_cipher_tls12.py +++ b/test/test_cipher_tls12.py @@ -30,5 +30,6 @@ def testCipherTLS12(self): """Test CipherTLS12""" # inst = CipherTLS12() + if __name__ == '__main__': unittest.main() diff --git a/test/test_cipher_tls13.py b/test/test_cipher_tls13.py index ef4834e..8347bfe 100644 --- a/test/test_cipher_tls13.py +++ b/test/test_cipher_tls13.py @@ -30,5 +30,6 @@ def testCipherTLS13(self): """Test CipherTLS13""" # inst = CipherTLS13() + if __name__ == '__main__': unittest.main() diff --git a/test/test_cisco_any_connect_settings.py b/test/test_cisco_any_connect_settings.py index 006acb3..465bd02 100644 --- a/test/test_cisco_any_connect_settings.py +++ b/test/test_cisco_any_connect_settings.py @@ -197,5 +197,6 @@ def testCiscoAnyConnectSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_cisco_encapsulation.py b/test/test_cisco_encapsulation.py index db518fb..e9d88df 100644 --- a/test/test_cisco_encapsulation.py +++ b/test/test_cisco_encapsulation.py @@ -76,5 +76,6 @@ def testCiscoEncapsulation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_clear_ports_ownership_operation.py b/test/test_clear_ports_ownership_operation.py index 240fd43..133b66e 100644 --- a/test/test_clear_ports_ownership_operation.py +++ b/test/test_clear_ports_ownership_operation.py @@ -58,5 +58,6 @@ def testClearPortsOwnershipOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_command.py b/test/test_command.py index 6140bfb..562af7c 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -49,12 +49,14 @@ def make_instance(self, include_optional) -> Command: metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -81,87 +83,19 @@ def make_instance(self, include_optional) -> Command: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -186,5 +120,6 @@ def testCommand(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_compute_node.py b/test/test_compute_node.py index 3df2cf3..6b25d28 100644 --- a/test/test_compute_node.py +++ b/test/test_compute_node.py @@ -84,5 +84,6 @@ def testComputeNode(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config.py b/test/test_config.py index a3808ba..2b995f1 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -140,5 +140,6 @@ def testConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config_category.py b/test/test_config_category.py index 5eaf032..4a35c88 100644 --- a/test/test_config_category.py +++ b/test/test_config_category.py @@ -48,5 +48,6 @@ def testConfigCategory(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config_id.py b/test/test_config_id.py index c7e60c0..afac615 100644 --- a/test/test_config_id.py +++ b/test/test_config_id.py @@ -48,5 +48,6 @@ def testConfigId(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config_metadata.py b/test/test_config_metadata.py index 0358ee0..636a312 100644 --- a/test/test_config_metadata.py +++ b/test/test_config_metadata.py @@ -79,5 +79,6 @@ def testConfigMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config_validation.py b/test/test_config_validation.py index b6fc329..1905fd6 100644 --- a/test/test_config_validation.py +++ b/test/test_config_validation.py @@ -64,5 +64,6 @@ def testConfigValidation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_configurations_api.py b/test/test_configurations_api.py index 66a82a6..1fae14c 100644 --- a/test/test_configurations_api.py +++ b/test/test_configurations_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_configs(self) -> None: """Test case for create_configs @@ -69,29 +70,9 @@ def test_patch_config(self) -> None: """ pass - def test_poll_configs_batch_delete(self) -> None: - """Test case for poll_configs_batch_delete - """ - pass - def test_poll_configs_export_all(self) -> None: - """Test case for poll_configs_export_all - """ - pass - - def test_poll_configs_import(self) -> None: - """Test case for poll_configs_import - - """ - pass - - def test_poll_configs_import_all(self) -> None: - """Test case for poll_configs_import_all - - """ - pass def test_start_configs_batch_delete(self) -> None: """Test case for start_configs_batch_delete @@ -123,6 +104,5 @@ def test_update_config(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_conflict.py b/test/test_conflict.py index 8e3115d..71d4253 100644 --- a/test/test_conflict.py +++ b/test/test_conflict.py @@ -57,5 +57,6 @@ def testConflict(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_connection.py b/test/test_connection.py index 36839f3..cf069f2 100644 --- a/test/test_connection.py +++ b/test/test_connection.py @@ -191,5 +191,6 @@ def testConnection(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_connection_persistence.py b/test/test_connection_persistence.py index 45fd368..f63efcc 100644 --- a/test/test_connection_persistence.py +++ b/test/test_connection_persistence.py @@ -30,5 +30,6 @@ def testConnectionPersistence(self): """Test ConnectionPersistence""" # inst = ConnectionPersistence() + if __name__ == '__main__': unittest.main() diff --git a/test/test_consumer.py b/test/test_consumer.py index 4afa9b6..5543eb7 100644 --- a/test/test_consumer.py +++ b/test/test_consumer.py @@ -50,5 +50,6 @@ def testConsumer(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_controller.py b/test/test_controller.py index 7f98509..12c1ab2 100644 --- a/test/test_controller.py +++ b/test/test_controller.py @@ -107,5 +107,6 @@ def testController(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_counted_feature_consumer.py b/test/test_counted_feature_consumer.py index c57cffc..28f7e41 100644 --- a/test/test_counted_feature_consumer.py +++ b/test/test_counted_feature_consumer.py @@ -59,5 +59,6 @@ def testCountedFeatureConsumer(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_counted_feature_stats.py b/test/test_counted_feature_stats.py index c024840..0298224 100644 --- a/test/test_counted_feature_stats.py +++ b/test/test_counted_feature_stats.py @@ -71,5 +71,6 @@ def testCountedFeatureStats(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_create_app_operation.py b/test/test_create_app_operation.py index b9dc5b1..4e52551 100644 --- a/test/test_create_app_operation.py +++ b/test/test_create_app_operation.py @@ -52,176 +52,41 @@ def make_instance(self, include_optional) -> CreateAppOperation: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], ) ], app_name = '', app_type = '', + description = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -236,5 +101,6 @@ def testCreateAppOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_create_app_or_attack_operation_input.py b/test/test_create_app_or_attack_operation_input.py index b848d70..1a1ac7e 100644 --- a/test/test_create_app_or_attack_operation_input.py +++ b/test/test_create_app_or_attack_operation_input.py @@ -62,5 +62,6 @@ def testCreateAppOrAttackOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_custom_dashboards.py b/test/test_custom_dashboards.py index 9e367f5..18d4f1a 100644 --- a/test/test_custom_dashboards.py +++ b/test/test_custom_dashboards.py @@ -69,5 +69,6 @@ def testCustomDashboards(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_custom_import_handler.py b/test/test_custom_import_handler.py index f687846..d1aa397 100644 --- a/test/test_custom_import_handler.py +++ b/test/test_custom_import_handler.py @@ -56,5 +56,6 @@ def testCustomImportHandler(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_custom_stat.py b/test/test_custom_stat.py index 206b1b8..2fd89b9 100644 --- a/test/test_custom_stat.py +++ b/test/test_custom_stat.py @@ -49,5 +49,6 @@ def testCustomStat(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dashboard.py b/test/test_dashboard.py index 2ecd60b..1b18219 100644 --- a/test/test_dashboard.py +++ b/test/test_dashboard.py @@ -49,5 +49,6 @@ def testDashboard(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_data_migration_api.py b/test/test_data_migration_api.py index d9cf667..9b43983 100644 --- a/test/test_data_migration_api.py +++ b/test/test_data_migration_api.py @@ -27,17 +27,8 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_poll_controller_migration_export(self) -> None: - """Test case for poll_controller_migration_export + - """ - pass - - def test_poll_controller_migration_import(self) -> None: - """Test case for poll_controller_migration_import - - """ - pass def test_start_controller_migration_export(self) -> None: """Test case for start_controller_migration_export @@ -51,6 +42,5 @@ def test_start_controller_migration_import(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_data_type.py b/test/test_data_type.py index 91530b9..446008e 100644 --- a/test/test_data_type.py +++ b/test/test_data_type.py @@ -53,5 +53,6 @@ def testDataType(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_data_type_values_inner.py b/test/test_data_type_values_inner.py index 4161c81..864d8e6 100644 --- a/test/test_data_type_values_inner.py +++ b/test/test_data_type_values_inner.py @@ -49,5 +49,6 @@ def testDataTypeValuesInner(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_definition.py b/test/test_definition.py index 180faa6..5bde617 100644 --- a/test/test_definition.py +++ b/test/test_definition.py @@ -48,5 +48,6 @@ def testDefinition(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_delete_input.py b/test/test_delete_input.py index 0f16040..e7ad4fc 100644 --- a/test/test_delete_input.py +++ b/test/test_delete_input.py @@ -51,5 +51,6 @@ def testDeleteInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dh_p1_group.py b/test/test_dh_p1_group.py index 3b91a6c..8850446 100644 --- a/test/test_dh_p1_group.py +++ b/test/test_dh_p1_group.py @@ -30,5 +30,6 @@ def testDhP1Group(self): """Test DhP1Group""" # inst = DhP1Group() + if __name__ == '__main__': unittest.main() diff --git a/test/test_diagnostic_component.py b/test/test_diagnostic_component.py index 0452351..a2a2790 100644 --- a/test/test_diagnostic_component.py +++ b/test/test_diagnostic_component.py @@ -66,5 +66,6 @@ def testDiagnosticComponent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_diagnostic_component_context.py b/test/test_diagnostic_component_context.py index 1c9e04d..1ffa41a 100644 --- a/test/test_diagnostic_component_context.py +++ b/test/test_diagnostic_component_context.py @@ -78,5 +78,6 @@ def testDiagnosticComponentContext(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_diagnostic_options.py b/test/test_diagnostic_options.py index 18453be..f9aa64a 100644 --- a/test/test_diagnostic_options.py +++ b/test/test_diagnostic_options.py @@ -49,5 +49,6 @@ def testDiagnosticOptions(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_diagnostics_api.py b/test/test_diagnostics_api.py index 11136fc..e7fbfb1 100644 --- a/test/test_diagnostics_api.py +++ b/test/test_diagnostics_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_api_v2_diagnostics_components_get(self) -> None: """Test case for api_v2_diagnostics_components_get @@ -69,6 +70,5 @@ def test_api_v2_diagnostics_operations_export_post(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_disk_usage.py b/test/test_disk_usage.py index f26f957..e2d7830 100644 --- a/test/test_disk_usage.py +++ b/test/test_disk_usage.py @@ -72,5 +72,6 @@ def testDiskUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dns_resolver.py b/test/test_dns_resolver.py index fd1ab28..c6abfb2 100644 --- a/test/test_dns_resolver.py +++ b/test/test_dns_resolver.py @@ -63,5 +63,6 @@ def testDNSResolver(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dns_server.py b/test/test_dns_server.py index 925f950..9b40409 100644 --- a/test/test_dns_server.py +++ b/test/test_dns_server.py @@ -53,5 +53,6 @@ def testDNSServer(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dtls_settings.py b/test/test_dtls_settings.py index 6ef06c5..235f214 100644 --- a/test/test_dtls_settings.py +++ b/test/test_dtls_settings.py @@ -139,5 +139,6 @@ def testDTLSSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dut_network.py b/test/test_dut_network.py index 768d859..7100ee9 100644 --- a/test/test_dut_network.py +++ b/test/test_dut_network.py @@ -784,5 +784,6 @@ def testDUTNetwork(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_edit_action_input.py b/test/test_edit_action_input.py index 9850903..1e6d2d7 100644 --- a/test/test_edit_action_input.py +++ b/test/test_edit_action_input.py @@ -39,87 +39,19 @@ def make_instance(self, include_optional) -> EditActionInput: action_index = 56, parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -134,5 +66,6 @@ def testEditActionInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_edit_app_operation.py b/test/test_edit_app_operation.py index d91e709..fdf3510 100644 --- a/test/test_edit_app_operation.py +++ b/test/test_edit_app_operation.py @@ -55,177 +55,42 @@ def make_instance(self, include_optional) -> EditAppOperation: flow_index_insert_at = 56, parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], type = '', ) ], + app_description = '', app_id = '', app_name = '', app_parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -241,87 +106,19 @@ def make_instance(self, include_optional) -> EditAppOperation: action_index = 56, parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], ) @@ -357,5 +154,6 @@ def testEditAppOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_effective_ports.py b/test/test_effective_ports.py index 246bbb0..d6c350d 100644 --- a/test/test_effective_ports.py +++ b/test/test_effective_ports.py @@ -52,5 +52,6 @@ def testEffectivePorts(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_emulated_router.py b/test/test_emulated_router.py index 85c22be..a7cc440 100644 --- a/test/test_emulated_router.py +++ b/test/test_emulated_router.py @@ -62,5 +62,6 @@ def testEmulatedRouter(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_emulated_router_range.py b/test/test_emulated_router_range.py index 989ff24..0a41ab4 100644 --- a/test/test_emulated_router_range.py +++ b/test/test_emulated_router_range.py @@ -115,5 +115,6 @@ def testEmulatedRouterRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_emulated_subnet_config.py b/test/test_emulated_subnet_config.py index b50c563..42a6a41 100644 --- a/test/test_emulated_subnet_config.py +++ b/test/test_emulated_subnet_config.py @@ -67,5 +67,6 @@ def testEmulatedSubnetConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_enc_p1_algorithm.py b/test/test_enc_p1_algorithm.py index 3d97088..ff4dfac 100644 --- a/test/test_enc_p1_algorithm.py +++ b/test/test_enc_p1_algorithm.py @@ -30,5 +30,6 @@ def testEncP1Algorithm(self): """Test EncP1Algorithm""" # inst = EncP1Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_enc_p2_algorithm.py b/test/test_enc_p2_algorithm.py index ed5c5a7..9ed9dab 100644 --- a/test/test_enc_p2_algorithm.py +++ b/test/test_enc_p2_algorithm.py @@ -30,5 +30,6 @@ def testEncP2Algorithm(self): """Test EncP2Algorithm""" # inst = EncP2Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_endpoint.py b/test/test_endpoint.py index 3f6185d..5d02f07 100644 --- a/test/test_endpoint.py +++ b/test/test_endpoint.py @@ -73,5 +73,6 @@ def testEndpoint(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_entitlement_code_info.py b/test/test_entitlement_code_info.py index 66cf031..2cb6e29 100644 --- a/test/test_entitlement_code_info.py +++ b/test/test_entitlement_code_info.py @@ -65,5 +65,6 @@ def testEntitlementCodeInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_entitlement_code_request.py b/test/test_entitlement_code_request.py index 18a3647..664d044 100644 --- a/test/test_entitlement_code_request.py +++ b/test/test_entitlement_code_request.py @@ -49,5 +49,6 @@ def testEntitlementCodeRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_enum.py b/test/test_enum.py index 213c1f9..5c1a63f 100644 --- a/test/test_enum.py +++ b/test/test_enum.py @@ -55,5 +55,6 @@ def testEnum(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_error_description.py b/test/test_error_description.py index e453080..4822994 100644 --- a/test/test_error_description.py +++ b/test/test_error_description.py @@ -49,5 +49,6 @@ def testErrorDescription(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_error_response.py b/test/test_error_response.py index a11a3b6..44c8cd8 100644 --- a/test/test_error_response.py +++ b/test/test_error_response.py @@ -48,5 +48,6 @@ def testErrorResponse(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_esp_over_udp_settings.py b/test/test_esp_over_udp_settings.py index 455597f..44a1666 100644 --- a/test/test_esp_over_udp_settings.py +++ b/test/test_esp_over_udp_settings.py @@ -65,5 +65,6 @@ def testESPOverUDPSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_eth_range.py b/test/test_eth_range.py index fa7c29c..e090676 100644 --- a/test/test_eth_range.py +++ b/test/test_eth_range.py @@ -74,5 +74,6 @@ def testEthRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_eula_details.py b/test/test_eula_details.py index faa31e3..a501789 100644 --- a/test/test_eula_details.py +++ b/test/test_eula_details.py @@ -52,5 +52,6 @@ def testEulaDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_eula_summary.py b/test/test_eula_summary.py index c49d562..2a6214b 100644 --- a/test/test_eula_summary.py +++ b/test/test_eula_summary.py @@ -50,5 +50,6 @@ def testEulaSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_exchange.py b/test/test_exchange.py index 3dcc3d1..fc42292 100644 --- a/test/test_exchange.py +++ b/test/test_exchange.py @@ -52,5 +52,6 @@ def testExchange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_exchange_order.py b/test/test_exchange_order.py index d4032bd..60401d0 100644 --- a/test/test_exchange_order.py +++ b/test/test_exchange_order.py @@ -49,5 +49,6 @@ def testExchangeOrder(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_exchange_payload.py b/test/test_exchange_payload.py index 20435dd..6547c53 100644 --- a/test/test_exchange_payload.py +++ b/test/test_exchange_payload.py @@ -49,5 +49,6 @@ def testExchangePayload(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_expected_disk_space.py b/test/test_expected_disk_space.py index ca83fda..de7986f 100644 --- a/test/test_expected_disk_space.py +++ b/test/test_expected_disk_space.py @@ -71,5 +71,6 @@ def testExpectedDiskSpace(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_expected_disk_space_message.py b/test/test_expected_disk_space_message.py index b48292d..54fb84d 100644 --- a/test/test_expected_disk_space_message.py +++ b/test/test_expected_disk_space_message.py @@ -53,5 +53,6 @@ def testExpectedDiskSpaceMessage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_expected_disk_space_pretty_size.py b/test/test_expected_disk_space_pretty_size.py index 0609a1c..fb5c6cf 100644 --- a/test/test_expected_disk_space_pretty_size.py +++ b/test/test_expected_disk_space_pretty_size.py @@ -53,5 +53,6 @@ def testExpectedDiskSpacePrettySize(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_expected_disk_space_size.py b/test/test_expected_disk_space_size.py index 7741b81..3bd9b3d 100644 --- a/test/test_expected_disk_space_size.py +++ b/test/test_expected_disk_space_size.py @@ -53,5 +53,6 @@ def testExpectedDiskSpaceSize(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_all_operation.py b/test/test_export_all_operation.py index 973b21b..04c8641 100644 --- a/test/test_export_all_operation.py +++ b/test/test_export_all_operation.py @@ -51,5 +51,6 @@ def testExportAllOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_apps_operation_input.py b/test/test_export_apps_operation_input.py index dbd1e68..6ebdc1c 100644 --- a/test/test_export_apps_operation_input.py +++ b/test/test_export_apps_operation_input.py @@ -51,5 +51,6 @@ def testExportAppsOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_files_operation_input.py b/test/test_export_files_operation_input.py index 881459e..990561f 100644 --- a/test/test_export_files_operation_input.py +++ b/test/test_export_files_operation_input.py @@ -60,5 +60,6 @@ def testExportFilesOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_files_request.py b/test/test_export_files_request.py index b052768..47787c8 100644 --- a/test/test_export_files_request.py +++ b/test/test_export_files_request.py @@ -54,5 +54,6 @@ def testExportFilesRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_package_operation.py b/test/test_export_package_operation.py index b27bd11..eb3302a 100644 --- a/test/test_export_package_operation.py +++ b/test/test_export_package_operation.py @@ -52,5 +52,6 @@ def testExportPackageOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_external_resource_info.py b/test/test_external_resource_info.py index 5b714d4..5acd989 100644 --- a/test/test_external_resource_info.py +++ b/test/test_external_resource_info.py @@ -48,5 +48,6 @@ def testExternalResourceInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_f5_encapsulation.py b/test/test_f5_encapsulation.py index 76c50e0..21c0677 100644 --- a/test/test_f5_encapsulation.py +++ b/test/test_f5_encapsulation.py @@ -76,5 +76,6 @@ def testF5Encapsulation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_f5_settings.py b/test/test_f5_settings.py index 57615f2..d82e209 100644 --- a/test/test_f5_settings.py +++ b/test/test_f5_settings.py @@ -191,5 +191,6 @@ def testF5Settings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py index 5602d98..282ee60 100644 --- a/test/test_feature.py +++ b/test/test_feature.py @@ -65,5 +65,6 @@ def testFeature(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_feature_reservation.py b/test/test_feature_reservation.py index 33e5757..c888b82 100644 --- a/test/test_feature_reservation.py +++ b/test/test_feature_reservation.py @@ -55,5 +55,6 @@ def testFeatureReservation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_feature_reservation_reserve.py b/test/test_feature_reservation_reserve.py index 527a240..3e706b6 100644 --- a/test/test_feature_reservation_reserve.py +++ b/test/test_feature_reservation_reserve.py @@ -53,5 +53,6 @@ def testFeatureReservationReserve(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_file_metadata.py b/test/test_file_metadata.py index b72421c..69239f4 100644 --- a/test/test_file_metadata.py +++ b/test/test_file_metadata.py @@ -49,5 +49,6 @@ def testFileMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_file_value.py b/test/test_file_value.py index d08420a..d8ea071 100644 --- a/test/test_file_value.py +++ b/test/test_file_value.py @@ -53,5 +53,6 @@ def testFileValue(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_filter.py b/test/test_filter.py index 7aed557..648f91e 100644 --- a/test/test_filter.py +++ b/test/test_filter.py @@ -49,5 +49,6 @@ def testFilter(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_filtered_stat.py b/test/test_filtered_stat.py index c03baf0..869cf3f 100644 --- a/test/test_filtered_stat.py +++ b/test/test_filtered_stat.py @@ -53,5 +53,6 @@ def testFilteredStat(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_find_param_matches_operation.py b/test/test_find_param_matches_operation.py index 539023a..2f515a0 100644 --- a/test/test_find_param_matches_operation.py +++ b/test/test_find_param_matches_operation.py @@ -75,5 +75,6 @@ def testFindParamMatchesOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_fortinet_encapsulation.py b/test/test_fortinet_encapsulation.py index 57fc05d..652cc5c 100644 --- a/test/test_fortinet_encapsulation.py +++ b/test/test_fortinet_encapsulation.py @@ -76,5 +76,6 @@ def testFortinetEncapsulation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_fortinet_settings.py b/test/test_fortinet_settings.py index f1e30ab..686bd84 100644 --- a/test/test_fortinet_settings.py +++ b/test/test_fortinet_settings.py @@ -191,5 +191,6 @@ def testFortinetSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_fulfillment_request.py b/test/test_fulfillment_request.py index 34f8f9d..f60d103 100644 --- a/test/test_fulfillment_request.py +++ b/test/test_fulfillment_request.py @@ -51,5 +51,6 @@ def testFulfillmentRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_generate_all_operation.py b/test/test_generate_all_operation.py index e6291c7..1805517 100644 --- a/test/test_generate_all_operation.py +++ b/test/test_generate_all_operation.py @@ -48,5 +48,6 @@ def testGenerateAllOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_generate_csv_reports_operation.py b/test/test_generate_csv_reports_operation.py index 84a926b..81f1f97 100644 --- a/test/test_generate_csv_reports_operation.py +++ b/test/test_generate_csv_reports_operation.py @@ -61,5 +61,6 @@ def testGenerateCSVReportsOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_generate_pdf_report_operation.py b/test/test_generate_pdf_report_operation.py index ba80ec2..d78459c 100644 --- a/test/test_generate_pdf_report_operation.py +++ b/test/test_generate_pdf_report_operation.py @@ -49,5 +49,6 @@ def testGeneratePDFReportOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_generic_file.py b/test/test_generic_file.py index b11eb37..c4b10c6 100644 --- a/test/test_generic_file.py +++ b/test/test_generic_file.py @@ -65,5 +65,6 @@ def testGenericFile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_agents200_response.py b/test/test_get_agents200_response.py index f67eaa7..11d00ad 100644 --- a/test/test_get_agents200_response.py +++ b/test/test_get_agents200_response.py @@ -134,5 +134,6 @@ def testGetAgents200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_agents200_response_one_of.py b/test/test_get_agents200_response_one_of.py index 9cb8a6b..4e45330 100644 --- a/test/test_get_agents200_response_one_of.py +++ b/test/test_get_agents200_response_one_of.py @@ -134,5 +134,6 @@ def testGetAgents200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_agents_tags200_response.py b/test/test_get_agents_tags200_response.py index 5c63afa..129ed22 100644 --- a/test/test_get_agents_tags200_response.py +++ b/test/test_get_agents_tags200_response.py @@ -57,5 +57,6 @@ def testGetAgentsTags200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_agents_tags200_response_one_of.py b/test/test_get_agents_tags200_response_one_of.py index d4eea38..6ca13d5 100644 --- a/test/test_get_agents_tags200_response_one_of.py +++ b/test/test_get_agents_tags200_response_one_of.py @@ -57,5 +57,6 @@ def testGetAgentsTags200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_async_operation_result200_response.py b/test/test_get_async_operation_result200_response.py index c500665..ed8812b 100644 --- a/test/test_get_async_operation_result200_response.py +++ b/test/test_get_async_operation_result200_response.py @@ -99,5 +99,6 @@ def testGetAsyncOperationResult200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_attacks_operation.py b/test/test_get_attacks_operation.py index 6e3571d..bcf1f0d 100644 --- a/test/test_get_attacks_operation.py +++ b/test/test_get_attacks_operation.py @@ -68,5 +68,6 @@ def testGetAttacksOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_brokers200_response.py b/test/test_get_brokers200_response.py index 2109755..55b2cb3 100644 --- a/test/test_get_brokers200_response.py +++ b/test/test_get_brokers200_response.py @@ -62,5 +62,6 @@ def testGetBrokers200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_brokers200_response_one_of.py b/test/test_get_brokers200_response_one_of.py index 62fbc07..ba56136 100644 --- a/test/test_get_brokers200_response_one_of.py +++ b/test/test_get_brokers200_response_one_of.py @@ -62,5 +62,6 @@ def testGetBrokers200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_categories_operation.py b/test/test_get_categories_operation.py index 3fcee63..da2d217 100644 --- a/test/test_get_categories_operation.py +++ b/test/test_get_categories_operation.py @@ -54,5 +54,6 @@ def testGetCategoriesOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_config_categories200_response.py b/test/test_get_config_categories200_response.py index 23fea41..c236f10 100644 --- a/test/test_get_config_categories200_response.py +++ b/test/test_get_config_categories200_response.py @@ -52,5 +52,6 @@ def testGetConfigCategories200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_config_categories200_response_one_of.py b/test/test_get_config_categories200_response_one_of.py index d1a36a4..93f1d59 100644 --- a/test/test_get_config_categories200_response_one_of.py +++ b/test/test_get_config_categories200_response_one_of.py @@ -52,5 +52,6 @@ def testGetConfigCategories200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_configs200_response.py b/test/test_get_configs200_response.py index 8a89d14..c0f4ea2 100644 --- a/test/test_get_configs200_response.py +++ b/test/test_get_configs200_response.py @@ -83,5 +83,6 @@ def testGetConfigs200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_configs200_response_one_of.py b/test/test_get_configs200_response_one_of.py index 0530958..cd8ed17 100644 --- a/test/test_get_configs200_response_one_of.py +++ b/test/test_get_configs200_response_one_of.py @@ -83,5 +83,6 @@ def testGetConfigs200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_controllers200_response.py b/test/test_get_controllers200_response.py index 252e7b0..f5e63b8 100644 --- a/test/test_get_controllers200_response.py +++ b/test/test_get_controllers200_response.py @@ -111,5 +111,6 @@ def testGetControllers200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_controllers200_response_one_of.py b/test/test_get_controllers200_response_one_of.py index 6818dde..d0f6a78 100644 --- a/test/test_get_controllers200_response_one_of.py +++ b/test/test_get_controllers200_response_one_of.py @@ -111,5 +111,6 @@ def testGetControllers200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response.py b/test/test_get_disk_usage_consumers200_response.py index b4eab85..c6be685 100644 --- a/test/test_get_disk_usage_consumers200_response.py +++ b/test/test_get_disk_usage_consumers200_response.py @@ -54,5 +54,6 @@ def testGetDiskUsageConsumers200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response_one_of.py b/test/test_get_disk_usage_consumers200_response_one_of.py index 5ecfddb..6c399df 100644 --- a/test/test_get_disk_usage_consumers200_response_one_of.py +++ b/test/test_get_disk_usage_consumers200_response_one_of.py @@ -54,5 +54,6 @@ def testGetDiskUsageConsumers200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_license_async_operation_result200_response.py b/test/test_get_license_async_operation_result200_response.py index 9b9c4e7..76f3335 100644 --- a/test/test_get_license_async_operation_result200_response.py +++ b/test/test_get_license_async_operation_result200_response.py @@ -101,5 +101,6 @@ def testGetLicenseAsyncOperationResult200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_license_servers200_response.py b/test/test_get_license_servers200_response.py index ca1da80..dfa1c7d 100644 --- a/test/test_get_license_servers200_response.py +++ b/test/test_get_license_servers200_response.py @@ -62,5 +62,6 @@ def testGetLicenseServers200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_license_servers200_response_one_of.py b/test/test_get_license_servers200_response_one_of.py index daa2ada..4074a90 100644 --- a/test/test_get_license_servers200_response_one_of.py +++ b/test/test_get_license_servers200_response_one_of.py @@ -62,5 +62,6 @@ def testGetLicenseServers200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_notifications200_response.py b/test/test_get_notifications200_response.py index 5ec4b3f..731272c 100644 --- a/test/test_get_notifications200_response.py +++ b/test/test_get_notifications200_response.py @@ -63,5 +63,6 @@ def testGetNotifications200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_notifications200_response_one_of.py b/test/test_get_notifications200_response_one_of.py index e0bec16..4b56725 100644 --- a/test/test_get_notifications200_response_one_of.py +++ b/test/test_get_notifications200_response_one_of.py @@ -63,5 +63,6 @@ def testGetNotifications200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index 99acfc4..56ec99c 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -53,12 +53,14 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -85,30 +87,19 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -176,6 +167,8 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, + no_multi_flow_support = True, protocol = '', requires_uniqueness = True, severity = '', @@ -186,12 +179,8 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], @@ -210,7 +199,16 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = , ) + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ) ], total_count = 56 ) @@ -224,5 +222,6 @@ def testGetResourcesApplicationTypes200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index 959477f..e8f5923 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -53,12 +53,14 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -85,30 +87,19 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -176,6 +167,8 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, + no_multi_flow_support = True, protocol = '', requires_uniqueness = True, severity = '', @@ -186,12 +179,8 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], @@ -210,7 +199,16 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = , ) + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ) ], total_count = 56 ) @@ -224,5 +222,6 @@ def testGetResourcesApplicationTypes200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index 1b8b5fb..d1a439f 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -126,79 +126,27 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ), @@ -229,5 +177,6 @@ def testGetResourcesApps200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index 81c64f7..5645b95 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -126,79 +126,27 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ), @@ -229,5 +177,6 @@ def testGetResourcesApps200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_attacks200_response.py b/test/test_get_resources_attacks200_response.py index 902aa81..e35ea31 100644 --- a/test/test_get_resources_attacks200_response.py +++ b/test/test_get_resources_attacks200_response.py @@ -83,5 +83,6 @@ def testGetResourcesAttacks200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_attacks200_response_one_of.py b/test/test_get_resources_attacks200_response_one_of.py index 7ca5d7b..c1a3b9f 100644 --- a/test/test_get_resources_attacks200_response_one_of.py +++ b/test/test_get_resources_attacks200_response_one_of.py @@ -83,5 +83,6 @@ def testGetResourcesAttacks200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response.py b/test/test_get_resources_auth_profiles200_response.py index 0493f11..e9ee5cc 100644 --- a/test/test_get_resources_auth_profiles200_response.py +++ b/test/test_get_resources_auth_profiles200_response.py @@ -105,20 +105,19 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], @@ -148,5 +147,6 @@ def testGetResourcesAuthProfiles200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response_one_of.py b/test/test_get_resources_auth_profiles200_response_one_of.py index ce9adaa..3fb465c 100644 --- a/test/test_get_resources_auth_profiles200_response_one_of.py +++ b/test/test_get_resources_auth_profiles200_response_one_of.py @@ -105,20 +105,19 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], @@ -148,5 +147,6 @@ def testGetResourcesAuthProfiles200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_certificates200_response.py b/test/test_get_resources_certificates200_response.py index 84f6279..855d3ac 100644 --- a/test/test_get_resources_certificates200_response.py +++ b/test/test_get_resources_certificates200_response.py @@ -69,5 +69,6 @@ def testGetResourcesCertificates200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_certificates200_response_one_of.py b/test/test_get_resources_certificates200_response_one_of.py index 7754505..3e82134 100644 --- a/test/test_get_resources_certificates200_response_one_of.py +++ b/test/test_get_resources_certificates200_response_one_of.py @@ -69,5 +69,6 @@ def testGetResourcesCertificates200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response.py b/test/test_get_resources_custom_import_operations200_response.py index 4ebb793..a956bbd 100644 --- a/test/test_get_resources_custom_import_operations200_response.py +++ b/test/test_get_resources_custom_import_operations200_response.py @@ -60,5 +60,6 @@ def testGetResourcesCustomImportOperations200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response_one_of.py b/test/test_get_resources_custom_import_operations200_response_one_of.py index 05ac38b..797d9a2 100644 --- a/test/test_get_resources_custom_import_operations200_response_one_of.py +++ b/test/test_get_resources_custom_import_operations200_response_one_of.py @@ -60,5 +60,6 @@ def testGetResourcesCustomImportOperations200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_http_profiles200_response.py b/test/test_get_resources_http_profiles200_response.py index 22d0279..602dc05 100644 --- a/test/test_get_resources_http_profiles200_response.py +++ b/test/test_get_resources_http_profiles200_response.py @@ -158,5 +158,6 @@ def testGetResourcesHttpProfiles200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_http_profiles200_response_one_of.py b/test/test_get_resources_http_profiles200_response_one_of.py index 3376080..1c6c226 100644 --- a/test/test_get_resources_http_profiles200_response_one_of.py +++ b/test/test_get_resources_http_profiles200_response_one_of.py @@ -158,5 +158,6 @@ def testGetResourcesHttpProfiles200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_result_files200_response.py b/test/test_get_result_files200_response.py index 9822b3a..8dc73f3 100644 --- a/test/test_get_result_files200_response.py +++ b/test/test_get_result_files200_response.py @@ -57,5 +57,6 @@ def testGetResultFiles200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_result_files200_response_one_of.py b/test/test_get_result_files200_response_one_of.py index 26e8942..85dad76 100644 --- a/test/test_get_result_files200_response_one_of.py +++ b/test/test_get_result_files200_response_one_of.py @@ -57,5 +57,6 @@ def testGetResultFiles200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py index df09589..29d3660 100644 --- a/test/test_get_result_stats200_response.py +++ b/test/test_get_result_stats200_response.py @@ -40,87 +40,19 @@ def make_instance(self, include_optional) -> GetResultStats200Response: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -150,5 +82,6 @@ def testGetResultStats200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py index 8774204..d11f673 100644 --- a/test/test_get_result_stats200_response_one_of.py +++ b/test/test_get_result_stats200_response_one_of.py @@ -40,87 +40,19 @@ def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -150,5 +82,6 @@ def testGetResultStats200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_results200_response.py b/test/test_get_results200_response.py index 2285aef..279668e 100644 --- a/test/test_get_results200_response.py +++ b/test/test_get_results200_response.py @@ -106,5 +106,6 @@ def testGetResults200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_results200_response_one_of.py b/test/test_get_results200_response_one_of.py index 4f03e95..95acfd6 100644 --- a/test/test_get_results200_response_one_of.py +++ b/test/test_get_results200_response_one_of.py @@ -106,5 +106,6 @@ def testGetResults200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_results_tags200_response.py b/test/test_get_results_tags200_response.py index 1d518fe..8939c6c 100644 --- a/test/test_get_results_tags200_response.py +++ b/test/test_get_results_tags200_response.py @@ -55,5 +55,6 @@ def testGetResultsTags200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_results_tags200_response_one_of.py b/test/test_get_results_tags200_response_one_of.py index a58de49..986b528 100644 --- a/test/test_get_results_tags200_response_one_of.py +++ b/test/test_get_results_tags200_response_one_of.py @@ -55,5 +55,6 @@ def testGetResultsTags200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_session_meta200_response.py b/test/test_get_session_meta200_response.py index 4bab425..fba290f 100644 --- a/test/test_get_session_meta200_response.py +++ b/test/test_get_session_meta200_response.py @@ -54,5 +54,6 @@ def testGetSessionMeta200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_session_meta200_response_one_of.py b/test/test_get_session_meta200_response_one_of.py index 41661b8..e3fee4e 100644 --- a/test/test_get_session_meta200_response_one_of.py +++ b/test/test_get_session_meta200_response_one_of.py @@ -54,5 +54,6 @@ def testGetSessionMeta200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_sessions200_response.py b/test/test_get_sessions200_response.py index 2be6c15..678e203 100644 --- a/test/test_get_sessions200_response.py +++ b/test/test_get_sessions200_response.py @@ -152,5 +152,6 @@ def testGetSessions200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_sessions200_response_one_of.py b/test/test_get_sessions200_response_one_of.py index 47f91d7..2588528 100644 --- a/test/test_get_sessions200_response_one_of.py +++ b/test/test_get_sessions200_response_one_of.py @@ -152,5 +152,6 @@ def testGetSessions200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_stats_plugins200_response.py b/test/test_get_stats_plugins200_response.py index 4ed3f4a..76ac2fd 100644 --- a/test/test_get_stats_plugins200_response.py +++ b/test/test_get_stats_plugins200_response.py @@ -57,5 +57,6 @@ def testGetStatsPlugins200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_stats_plugins200_response_one_of.py b/test/test_get_stats_plugins200_response_one_of.py index 51326f0..e5fdf1f 100644 --- a/test/test_get_stats_plugins200_response_one_of.py +++ b/test/test_get_stats_plugins200_response_one_of.py @@ -57,5 +57,6 @@ def testGetStatsPlugins200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_strikes_operation.py b/test/test_get_strikes_operation.py index 4b594e6..2c3d489 100644 --- a/test/test_get_strikes_operation.py +++ b/test/test_get_strikes_operation.py @@ -69,5 +69,6 @@ def testGetStrikesOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_hash_p1_algorithm.py b/test/test_hash_p1_algorithm.py index 64ace79..f1575ec 100644 --- a/test/test_hash_p1_algorithm.py +++ b/test/test_hash_p1_algorithm.py @@ -30,5 +30,6 @@ def testHashP1Algorithm(self): """Test HashP1Algorithm""" # inst = HashP1Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_hash_p2_algorithm.py b/test/test_hash_p2_algorithm.py index 4e546e5..d79d206 100644 --- a/test/test_hash_p2_algorithm.py +++ b/test/test_hash_p2_algorithm.py @@ -30,5 +30,6 @@ def testHashP2Algorithm(self): """Test HashP2Algorithm""" # inst = HashP2Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_health_check_config.py b/test/test_health_check_config.py index 06a21ec..bf2f4d2 100644 --- a/test/test_health_check_config.py +++ b/test/test_health_check_config.py @@ -154,5 +154,6 @@ def testHealthCheckConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_health_issue.py b/test/test_health_issue.py index 836a822..14fbeff 100644 --- a/test/test_health_issue.py +++ b/test/test_health_issue.py @@ -49,5 +49,6 @@ def testHealthIssue(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_host_id.py b/test/test_host_id.py index 52e0b32..951b9b2 100644 --- a/test/test_host_id.py +++ b/test/test_host_id.py @@ -48,5 +48,6 @@ def testHostID(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_http_profile.py b/test/test_http_profile.py index aa70248..a0c4cad 100644 --- a/test/test_http_profile.py +++ b/test/test_http_profile.py @@ -348,5 +348,6 @@ def testHTTPProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_http_req_meta.py b/test/test_http_req_meta.py index 232ecc6..ab22267 100644 --- a/test/test_http_req_meta.py +++ b/test/test_http_req_meta.py @@ -57,5 +57,6 @@ def testHTTPReqMeta(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_http_res_meta.py b/test/test_http_res_meta.py index f040dca..7d78155 100644 --- a/test/test_http_res_meta.py +++ b/test/test_http_res_meta.py @@ -56,5 +56,6 @@ def testHTTPResMeta(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_http_version.py b/test/test_http_version.py index 54e866a..f0ee508 100644 --- a/test/test_http_version.py +++ b/test/test_http_version.py @@ -30,5 +30,6 @@ def testHTTPVersion(self): """Test HTTPVersion""" # inst = HTTPVersion() + if __name__ == '__main__': unittest.main() diff --git a/test/test_id_p_signature_algo.py b/test/test_id_p_signature_algo.py index 2e1c990..77da5e9 100644 --- a/test/test_id_p_signature_algo.py +++ b/test/test_id_p_signature_algo.py @@ -30,5 +30,6 @@ def testIdPSignatureAlgo(self): """Test IdPSignatureAlgo""" # inst = IdPSignatureAlgo() + if __name__ == '__main__': unittest.main() diff --git a/test/test_import_all_operation.py b/test/test_import_all_operation.py index 5586973..398a84b 100644 --- a/test/test_import_all_operation.py +++ b/test/test_import_all_operation.py @@ -82,5 +82,6 @@ def testImportAllOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_import_offline_license_result.py b/test/test_import_offline_license_result.py index 9344fc3..60ef1de 100644 --- a/test/test_import_offline_license_result.py +++ b/test/test_import_offline_license_result.py @@ -117,5 +117,6 @@ def testImportOfflineLicenseResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ingest_operation.py b/test/test_ingest_operation.py index 84a26d2..9b82c9b 100644 --- a/test/test_ingest_operation.py +++ b/test/test_ingest_operation.py @@ -55,5 +55,6 @@ def testIngestOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_inner_ip_range.py b/test/test_inner_ip_range.py index 363a0e4..d93cf12 100644 --- a/test/test_inner_ip_range.py +++ b/test/test_inner_ip_range.py @@ -50,5 +50,6 @@ def testInnerIPRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_interface.py b/test/test_interface.py index 0fe5b5e..5bb9321 100644 --- a/test/test_interface.py +++ b/test/test_interface.py @@ -55,5 +55,6 @@ def testInterface(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_mask.py b/test/test_ip_mask.py index 5551f9e..af46945 100644 --- a/test/test_ip_mask.py +++ b/test/test_ip_mask.py @@ -49,5 +49,6 @@ def testIpMask(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_network.py b/test/test_ip_network.py index d766f96..3d4a7a9 100644 --- a/test/test_ip_network.py +++ b/test/test_ip_network.py @@ -229,5 +229,6 @@ def testIPNetwork(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_preference.py b/test/test_ip_preference.py index 61305ac..df96485 100644 --- a/test/test_ip_preference.py +++ b/test/test_ip_preference.py @@ -30,5 +30,6 @@ def testIpPreference(self): """Test IpPreference""" # inst = IpPreference() + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_range.py b/test/test_ip_range.py index e4bb376..2144764 100644 --- a/test/test_ip_range.py +++ b/test/test_ip_range.py @@ -113,5 +113,6 @@ def testIPRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_sec_range.py b/test/test_ip_sec_range.py index db8a832..6b469db 100644 --- a/test/test_ip_sec_range.py +++ b/test/test_ip_sec_range.py @@ -124,5 +124,6 @@ def testIPSecRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_sec_stack.py b/test/test_ip_sec_stack.py index 07f98fd..2fe2c21 100644 --- a/test/test_ip_sec_stack.py +++ b/test/test_ip_sec_stack.py @@ -255,5 +255,6 @@ def testIPSecStack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_ver.py b/test/test_ip_ver.py index 6c65b16..0f2b8d3 100644 --- a/test/test_ip_ver.py +++ b/test/test_ip_ver.py @@ -30,5 +30,6 @@ def testIpVer(self): """Test IpVer""" # inst = IpVer() + if __name__ == '__main__': unittest.main() diff --git a/test/test_license.py b/test/test_license.py index cf72d4b..cafb6a9 100644 --- a/test/test_license.py +++ b/test/test_license.py @@ -101,5 +101,6 @@ def testLicense(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_license_receipt.py b/test/test_license_receipt.py index 97da96e..053b21c 100644 --- a/test/test_license_receipt.py +++ b/test/test_license_receipt.py @@ -111,5 +111,6 @@ def testLicenseReceipt(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_license_server_metadata.py b/test/test_license_server_metadata.py index 679a3ae..d444697 100644 --- a/test/test_license_server_metadata.py +++ b/test/test_license_server_metadata.py @@ -58,5 +58,6 @@ def testLicenseServerMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_license_servers_api.py b/test/test_license_servers_api.py index 7a46f03..ace6bb9 100644 --- a/test/test_license_servers_api.py +++ b/test/test_license_servers_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_license_servers(self) -> None: """Test case for create_license_servers @@ -57,6 +58,5 @@ def test_patch_license_server(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_licensing_api.py b/test/test_licensing_api.py index 4487903..d3946f5 100644 --- a/test/test_licensing_api.py +++ b/test/test_licensing_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_activate_licenses(self) -> None: """Test case for activate_licenses @@ -160,6 +161,5 @@ def test_update_reservation(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_link.py b/test/test_link.py index b8ca676..83418dc 100644 --- a/test/test_link.py +++ b/test/test_link.py @@ -53,5 +53,6 @@ def testLink(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_load_config_operation.py b/test/test_load_config_operation.py index 10afb43..7138c11 100644 --- a/test/test_load_config_operation.py +++ b/test/test_load_config_operation.py @@ -48,5 +48,6 @@ def testLoadConfigOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_local_subnet_config.py b/test/test_local_subnet_config.py index 2299c33..61a181a 100644 --- a/test/test_local_subnet_config.py +++ b/test/test_local_subnet_config.py @@ -67,5 +67,6 @@ def testLocalSubnetConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_log_config.py b/test/test_log_config.py index 175212f..33f838e 100644 --- a/test/test_log_config.py +++ b/test/test_log_config.py @@ -48,5 +48,6 @@ def testLogConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_log_level.py b/test/test_log_level.py index 23faf5d..04cb031 100644 --- a/test/test_log_level.py +++ b/test/test_log_level.py @@ -30,5 +30,6 @@ def testLogLevel(self): """Test LogLevel""" # inst = LogLevel() + if __name__ == '__main__': unittest.main() diff --git a/test/test_mac_dtls_stack.py b/test/test_mac_dtls_stack.py index ae70a03..744943b 100644 --- a/test/test_mac_dtls_stack.py +++ b/test/test_mac_dtls_stack.py @@ -153,5 +153,6 @@ def testMacDtlsStack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_mapping_type.py b/test/test_mapping_type.py index 7cdd7ab..46bfe08 100644 --- a/test/test_mapping_type.py +++ b/test/test_mapping_type.py @@ -30,5 +30,6 @@ def testMappingType(self): """Test MappingType""" # inst = MappingType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_marked_as_deleted.py b/test/test_marked_as_deleted.py index fe18eb4..d7d8ab4 100644 --- a/test/test_marked_as_deleted.py +++ b/test/test_marked_as_deleted.py @@ -49,5 +49,6 @@ def testMarkedAsDeleted(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_media_file.py b/test/test_media_file.py index 4f876ec..da6543d 100644 --- a/test/test_media_file.py +++ b/test/test_media_file.py @@ -75,5 +75,6 @@ def testMediaFile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_media_track.py b/test/test_media_track.py index 3331ab7..3fd5d2e 100644 --- a/test/test_media_track.py +++ b/test/test_media_track.py @@ -57,5 +57,6 @@ def testMediaTrack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_metadata.py b/test/test_metadata.py index 60f1493..a45b674 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -38,12 +38,14 @@ def make_instance(self, include_optional) -> Metadata: return Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -78,5 +80,6 @@ def testMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_mos_mode.py b/test/test_mos_mode.py index cdceeea..28d0255 100644 --- a/test/test_mos_mode.py +++ b/test/test_mos_mode.py @@ -30,5 +30,6 @@ def testMosMode(self): """Test MosMode""" # inst = MosMode() + if __name__ == '__main__': unittest.main() diff --git a/test/test_name_id_format.py b/test/test_name_id_format.py index 590f379..e9babba 100644 --- a/test/test_name_id_format.py +++ b/test/test_name_id_format.py @@ -30,5 +30,6 @@ def testNameIdFormat(self): """Test NameIdFormat""" # inst = NameIdFormat() + if __name__ == '__main__': unittest.main() diff --git a/test/test_name_server.py b/test/test_name_server.py index e6e3818..b8b81d8 100644 --- a/test/test_name_server.py +++ b/test/test_name_server.py @@ -48,5 +48,6 @@ def testNameServer(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_network_mapping.py b/test/test_network_mapping.py index 428b824..7e72866 100644 --- a/test/test_network_mapping.py +++ b/test/test_network_mapping.py @@ -62,5 +62,6 @@ def testNetworkMapping(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_network_meshing.py b/test/test_network_meshing.py index 9a8c032..3a9d68b 100644 --- a/test/test_network_meshing.py +++ b/test/test_network_meshing.py @@ -50,5 +50,6 @@ def testNetworkMeshing(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_network_profile.py b/test/test_network_profile.py index a63a040..2c4c8bc 100644 --- a/test/test_network_profile.py +++ b/test/test_network_profile.py @@ -65,5 +65,6 @@ def testNetworkProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_network_segment_base.py b/test/test_network_segment_base.py index e5dfa9d..b1b9c1c 100644 --- a/test/test_network_segment_base.py +++ b/test/test_network_segment_base.py @@ -54,5 +54,6 @@ def testNetworkSegmentBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_nodes_by_controller.py b/test/test_nodes_by_controller.py index 098a652..806af26 100644 --- a/test/test_nodes_by_controller.py +++ b/test/test_nodes_by_controller.py @@ -51,5 +51,6 @@ def testNodesByController(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_nodes_power_cycle_operation.py b/test/test_nodes_power_cycle_operation.py index 3b2caaf..d4ae2ff 100644 --- a/test/test_nodes_power_cycle_operation.py +++ b/test/test_nodes_power_cycle_operation.py @@ -54,5 +54,6 @@ def testNodesPowerCycleOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_notification.py b/test/test_notification.py index ecf5233..b1e9fca 100644 --- a/test/test_notification.py +++ b/test/test_notification.py @@ -59,5 +59,6 @@ def testNotification(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_notification_counts.py b/test/test_notification_counts.py index 6ecab87..2e8972c 100644 --- a/test/test_notification_counts.py +++ b/test/test_notification_counts.py @@ -51,5 +51,6 @@ def testNotificationCounts(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_notifications_api.py b/test/test_notifications_api.py index b6946d8..8e9988e 100644 --- a/test/test_notifications_api.py +++ b/test/test_notifications_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_delete_notification(self) -> None: """Test case for delete_notification @@ -51,17 +52,7 @@ def test_get_notifications(self) -> None: """ pass - def test_poll_notifications_cleanup(self) -> None: - """Test case for poll_notifications_cleanup - """ - pass - - def test_poll_notifications_dismiss(self) -> None: - """Test case for poll_notifications_dismiss - - """ - pass def test_start_notifications_cleanup(self) -> None: """Test case for start_notifications_cleanup @@ -75,6 +66,5 @@ def test_start_notifications_dismiss(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_ntp_info.py b/test/test_ntp_info.py index 2487c42..d6498ff 100644 --- a/test/test_ntp_info.py +++ b/test/test_ntp_info.py @@ -52,5 +52,6 @@ def testNtpInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_objective_type.py b/test/test_objective_type.py index 8c917d4..282044e 100644 --- a/test/test_objective_type.py +++ b/test/test_objective_type.py @@ -30,5 +30,6 @@ def testObjectiveType(self): """Test ObjectiveType""" # inst = ObjectiveType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_objective_unit.py b/test/test_objective_unit.py index 81cddbb..cd44560 100644 --- a/test/test_objective_unit.py +++ b/test/test_objective_unit.py @@ -30,5 +30,6 @@ def testObjectiveUnit(self): """Test ObjectiveUnit""" # inst = ObjectiveUnit() + if __name__ == '__main__': unittest.main() diff --git a/test/test_objective_value_entry.py b/test/test_objective_value_entry.py index 1c3e8fb..9c81df8 100644 --- a/test/test_objective_value_entry.py +++ b/test/test_objective_value_entry.py @@ -52,5 +52,6 @@ def testObjectiveValueEntry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_objectives_and_timeline.py b/test/test_objectives_and_timeline.py index 0afc88d..7a84d3b 100644 --- a/test/test_objectives_and_timeline.py +++ b/test/test_objectives_and_timeline.py @@ -113,5 +113,6 @@ def testObjectivesAndTimeline(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_open_api_definitions.py b/test/test_open_api_definitions.py index 9ecd15e..3eadcc9 100644 --- a/test/test_open_api_definitions.py +++ b/test/test_open_api_definitions.py @@ -50,5 +50,6 @@ def testOpenAPIDefinitions(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_p1_config.py b/test/test_p1_config.py index 3986ddd..f98460b 100644 --- a/test/test_p1_config.py +++ b/test/test_p1_config.py @@ -59,5 +59,6 @@ def testP1Config(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_p2_config.py b/test/test_p2_config.py index c93e556..b580fe4 100644 --- a/test/test_p2_config.py +++ b/test/test_p2_config.py @@ -59,5 +59,6 @@ def testP2Config(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pair.py b/test/test_pair.py index 346c4bb..8e0d795 100644 --- a/test/test_pair.py +++ b/test/test_pair.py @@ -50,5 +50,6 @@ def testPair(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pangp_encapsulation.py b/test/test_pangp_encapsulation.py index c7e3b35..1262637 100644 --- a/test/test_pangp_encapsulation.py +++ b/test/test_pangp_encapsulation.py @@ -75,5 +75,6 @@ def testPANGPEncapsulation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pangp_settings.py b/test/test_pangp_settings.py index 893aa83..b89e576 100644 --- a/test/test_pangp_settings.py +++ b/test/test_pangp_settings.py @@ -203,5 +203,6 @@ def testPANGPSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata.py b/test/test_param_metadata.py index 93a6575..671456e 100644 --- a/test/test_param_metadata.py +++ b/test/test_param_metadata.py @@ -64,5 +64,6 @@ def testParamMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info.py b/test/test_param_metadata_type_info.py index 4f24ec5..16afc83 100644 --- a/test/test_param_metadata_type_info.py +++ b/test/test_param_metadata_type_info.py @@ -63,5 +63,6 @@ def testParamMetadataTypeInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2.py b/test/test_param_metadata_type_info_array_v2.py index a7c4abd..320889d 100644 --- a/test/test_param_metadata_type_info_array_v2.py +++ b/test/test_param_metadata_type_info_array_v2.py @@ -52,5 +52,6 @@ def testParamMetadataTypeInfoArrayV2(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2_elements_inner.py b/test/test_param_metadata_type_info_array_v2_elements_inner.py index da57742..78d5d80 100644 --- a/test/test_param_metadata_type_info_array_v2_elements_inner.py +++ b/test/test_param_metadata_type_info_array_v2_elements_inner.py @@ -49,5 +49,6 @@ def testParamMetadataTypeInfoArrayV2ElementsInner(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_int.py b/test/test_param_metadata_type_info_int.py index 2d83a79..26867ce 100644 --- a/test/test_param_metadata_type_info_int.py +++ b/test/test_param_metadata_type_info_int.py @@ -49,5 +49,6 @@ def testParamMetadataTypeInfoInt(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_media.py b/test/test_param_metadata_type_info_media.py index 97ae37d..2c155ab 100644 --- a/test/test_param_metadata_type_info_media.py +++ b/test/test_param_metadata_type_info_media.py @@ -49,5 +49,6 @@ def testParamMetadataTypeInfoMedia(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_string.py b/test/test_param_metadata_type_info_string.py index 02e9038..232aa16 100644 --- a/test/test_param_metadata_type_info_string.py +++ b/test/test_param_metadata_type_info_string.py @@ -50,5 +50,6 @@ def testParamMetadataTypeInfoString(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_source_type.py b/test/test_param_source_type.py index b70f824..863519f 100644 --- a/test/test_param_source_type.py +++ b/test/test_param_source_type.py @@ -30,5 +30,6 @@ def testParamSourceType(self): """Test ParamSourceType""" # inst = ParamSourceType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_type.py b/test/test_param_type.py index aa32223..74786e6 100644 --- a/test/test_param_type.py +++ b/test/test_param_type.py @@ -30,5 +30,6 @@ def testParamType(self): """Test ParamType""" # inst = ParamType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_parameter.py b/test/test_parameter.py index 0e68c9d..851ed72 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -36,87 +36,19 @@ def make_instance(self, include_optional) -> Parameter: model = Parameter() if include_optional: return Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', var_field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '' ) @@ -130,5 +62,6 @@ def testParameter(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_parameter_match.py b/test/test_parameter_match.py index 0b86ae0..b365033 100644 --- a/test/test_parameter_match.py +++ b/test/test_parameter_match.py @@ -55,5 +55,6 @@ def testParameterMatch(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_parameter_metadata.py b/test/test_parameter_metadata.py index 8755f14..64e15c4 100644 --- a/test/test_parameter_metadata.py +++ b/test/test_parameter_metadata.py @@ -103,5 +103,6 @@ def testParameterMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_params.py b/test/test_params.py index abfce3c..90c8570 100644 --- a/test/test_params.py +++ b/test/test_params.py @@ -147,5 +147,6 @@ def testParams(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_params_enum.py b/test/test_params_enum.py index 0305d82..47ac4f7 100644 --- a/test/test_params_enum.py +++ b/test/test_params_enum.py @@ -54,5 +54,6 @@ def testParamsEnum(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_payload_meta.py b/test/test_payload_meta.py index fa751ad..8a48d0d 100644 --- a/test/test_payload_meta.py +++ b/test/test_payload_meta.py @@ -53,5 +53,6 @@ def testPayloadMeta(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_payload_metadata.py b/test/test_payload_metadata.py index 38d6d5f..6f53040 100644 --- a/test/test_payload_metadata.py +++ b/test/test_payload_metadata.py @@ -51,5 +51,6 @@ def testPayloadMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pep_dut.py b/test/test_pep_dut.py index de969ef..ac5940f 100644 --- a/test/test_pep_dut.py +++ b/test/test_pep_dut.py @@ -367,5 +367,6 @@ def testPepDUT(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pfs_p2_group.py b/test/test_pfs_p2_group.py index 93259d4..fd35cad 100644 --- a/test/test_pfs_p2_group.py +++ b/test/test_pfs_p2_group.py @@ -30,5 +30,6 @@ def testPfsP2Group(self): """Test PfsP2Group""" # inst = PfsP2Group() + if __name__ == '__main__': unittest.main() diff --git a/test/test_plugin.py b/test/test_plugin.py index 2b9e0b8..3c160a7 100644 --- a/test/test_plugin.py +++ b/test/test_plugin.py @@ -53,5 +53,6 @@ def testPlugin(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_plugin_stats.py b/test/test_plugin_stats.py index 94ab15d..4eee84e 100644 --- a/test/test_plugin_stats.py +++ b/test/test_plugin_stats.py @@ -54,5 +54,6 @@ def testPluginStats(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_port.py b/test/test_port.py index 8593898..ff52958 100644 --- a/test/test_port.py +++ b/test/test_port.py @@ -55,5 +55,6 @@ def testPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_port_settings.py b/test/test_port_settings.py index f898387..7960e20 100644 --- a/test/test_port_settings.py +++ b/test/test_port_settings.py @@ -74,5 +74,6 @@ def testPortSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ports_by_controller.py b/test/test_ports_by_controller.py index db5ecf2..931f38b 100644 --- a/test/test_ports_by_controller.py +++ b/test/test_ports_by_controller.py @@ -55,5 +55,6 @@ def testPortsByController(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ports_by_node.py b/test/test_ports_by_node.py index 6e69c4e..7c0e989 100644 --- a/test/test_ports_by_node.py +++ b/test/test_ports_by_node.py @@ -51,5 +51,6 @@ def testPortsByNode(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_prepare_test_operation.py b/test/test_prepare_test_operation.py index 3fb392e..84a3983 100644 --- a/test/test_prepare_test_operation.py +++ b/test/test_prepare_test_operation.py @@ -70,5 +70,6 @@ def testPrepareTestOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_prepared_test_options.py b/test/test_prepared_test_options.py index a2a3135..4a09fd5 100644 --- a/test/test_prepared_test_options.py +++ b/test/test_prepared_test_options.py @@ -61,5 +61,6 @@ def testPreparedTestOptions(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_prf_p1_algorithm.py b/test/test_prf_p1_algorithm.py index 3a19c0e..7767976 100644 --- a/test/test_prf_p1_algorithm.py +++ b/test/test_prf_p1_algorithm.py @@ -30,5 +30,6 @@ def testPrfP1Algorithm(self): """Test PrfP1Algorithm""" # inst = PrfP1Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_protected_subnet_config.py b/test/test_protected_subnet_config.py index 8e0d55f..f9d0eff 100644 --- a/test/test_protected_subnet_config.py +++ b/test/test_protected_subnet_config.py @@ -61,5 +61,6 @@ def testProtectedSubnetConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_quic_profile.py b/test/test_quic_profile.py new file mode 100644 index 0000000..24a5c88 --- /dev/null +++ b/test/test_quic_profile.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.quic_profile import QUICProfile + +class TestQUICProfile(unittest.TestCase): + """QUICProfile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QUICProfile: + """Test QUICProfile + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `QUICProfile` + """ + model = QUICProfile() + if include_optional: + return QUICProfile( + client_tls_profile = cyperf.models.tls_profile.TLSProfile( + certificate_file = null, + cipher = null, + cipher12 = null, + cipher13 = null, + ciphers12 = [ + 'ECDHE-RSA-AES256-GCM-SHA384' + ], + ciphers13 = [ + 'AES-256-GCM-SHA384' + ], + dh_file = null, + get_tls_conflicts = [ + 'YQ==' + ], + immediate_close = True, + key_file = null, + key_file_password = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + middle_box_enabled = True, + profile_id = '', + resolve_tls_conflicts = [ + cyperf.models.conflict.Conflict( + name = '', + path_to_target = '', + path_vars = { + 'key' : '' + }, ) + ], + send_close_notify = True, + session_reuse_count = 56, + session_reuse_method = null, + session_reuse_method12 = null, + session_reuse_method13 = null, + sni_cert_configs = [ + cyperf.models.cert_config.CertConfig( + certificate_file = null, + dh_file = null, + get_sni_conflicts = [ + 'YQ==' + ], + id = '', + is_playlist = True, + key_file = null, + key_file_password = '', + playlist_column_name = '', + playlist_filename = '', + resolve_sni_conflicts = [ + cyperf.models.conflict.Conflict( + name = '', + path_to_target = '', + path_vars = { + 'key' : '' + }, ) + ], + sni_hostname = '', ) + ], + sni_enabled = True, + supported_groups13 = [ + 'P-256' + ], + tls12_enabled = True, + tls13_enabled = True, + use_tls_profile = True, + version = 'NONE', ), + min_rto = 56, + name = '', + quic_version = 'Q043', + rx_buffer = 56, + server_tls_profile = cyperf.models.tls_profile.TLSProfile( + certificate_file = null, + cipher = null, + cipher12 = null, + cipher13 = null, + ciphers12 = [ + 'ECDHE-RSA-AES256-GCM-SHA384' + ], + ciphers13 = [ + 'AES-256-GCM-SHA384' + ], + dh_file = null, + get_tls_conflicts = [ + 'YQ==' + ], + immediate_close = True, + key_file = null, + key_file_password = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + middle_box_enabled = True, + profile_id = '', + resolve_tls_conflicts = [ + cyperf.models.conflict.Conflict( + name = '', + path_to_target = '', + path_vars = { + 'key' : '' + }, ) + ], + send_close_notify = True, + session_reuse_count = 56, + session_reuse_method = null, + session_reuse_method12 = null, + session_reuse_method13 = null, + sni_cert_configs = [ + cyperf.models.cert_config.CertConfig( + certificate_file = null, + dh_file = null, + get_sni_conflicts = [ + 'YQ==' + ], + id = '', + is_playlist = True, + key_file = null, + key_file_password = '', + playlist_column_name = '', + playlist_filename = '', + resolve_sni_conflicts = [ + cyperf.models.conflict.Conflict( + name = '', + path_to_target = '', + path_vars = { + 'key' : '' + }, ) + ], + sni_hostname = '', ) + ], + sni_enabled = True, + supported_groups13 = [ + 'P-256' + ], + tls12_enabled = True, + tls13_enabled = True, + use_tls_profile = True, + version = 'NONE', ), + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ] + ) + else: + return QUICProfile( + ) + """ + + def testQUICProfile(self): + """Test QUICProfile""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_quic_version.py b/test/test_quic_version.py new file mode 100644 index 0000000..274a51c --- /dev/null +++ b/test/test_quic_version.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.quic_version import QUICVersion + +class TestQUICVersion(unittest.TestCase): + """QUICVersion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQUICVersion(self): + """Test QUICVersion""" + # inst = QUICVersion() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reboot_operation_input.py b/test/test_reboot_operation_input.py index baa9fc0..272a6d0 100644 --- a/test/test_reboot_operation_input.py +++ b/test/test_reboot_operation_input.py @@ -52,5 +52,6 @@ def testRebootOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reboot_ports_operation.py b/test/test_reboot_ports_operation.py index 7801173..a59b4a6 100644 --- a/test/test_reboot_ports_operation.py +++ b/test/test_reboot_ports_operation.py @@ -58,5 +58,6 @@ def testRebootPortsOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reference.py b/test/test_reference.py index c8ab40c..b0e506d 100644 --- a/test/test_reference.py +++ b/test/test_reference.py @@ -49,5 +49,6 @@ def testReference(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_regex_match.py b/test/test_regex_match.py index 057ab0e..b7348ba 100644 --- a/test/test_regex_match.py +++ b/test/test_regex_match.py @@ -50,5 +50,6 @@ def testRegexMatch(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_release_operation_input.py b/test/test_release_operation_input.py index 12acc4c..ed92eff 100644 --- a/test/test_release_operation_input.py +++ b/test/test_release_operation_input.py @@ -52,5 +52,6 @@ def testReleaseOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_remote_access.py b/test/test_remote_access.py index 0c0094d..d6e9077 100644 --- a/test/test_remote_access.py +++ b/test/test_remote_access.py @@ -52,5 +52,6 @@ def testRemoteAccess(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_remote_subnet_config.py b/test/test_remote_subnet_config.py index aba3aa0..14424a9 100644 --- a/test/test_remote_subnet_config.py +++ b/test/test_remote_subnet_config.py @@ -61,5 +61,6 @@ def testRemoteSubnetConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_rename_input.py b/test/test_rename_input.py index 5961d32..c21c1bd 100644 --- a/test/test_rename_input.py +++ b/test/test_rename_input.py @@ -49,5 +49,6 @@ def testRenameInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reorder_action_input.py b/test/test_reorder_action_input.py index 75dbebf..6a09a71 100644 --- a/test/test_reorder_action_input.py +++ b/test/test_reorder_action_input.py @@ -49,5 +49,6 @@ def testReorderActionInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reorder_exchanges_input.py b/test/test_reorder_exchanges_input.py index 3946765..e39345a 100644 --- a/test/test_reorder_exchanges_input.py +++ b/test/test_reorder_exchanges_input.py @@ -54,5 +54,6 @@ def testReorderExchangesInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_replay_capture.py b/test/test_replay_capture.py index 50fc4dc..b89b0ae 100644 --- a/test/test_replay_capture.py +++ b/test/test_replay_capture.py @@ -134,5 +134,6 @@ def testReplayCapture(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reports_api.py b/test/test_reports_api.py index 51b86ab..d193b45 100644 --- a/test/test_reports_api.py +++ b/test/test_reports_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_download_pdf(self) -> None: """Test case for download_pdf @@ -39,17 +40,7 @@ def test_get_result_download_csv_by_id(self) -> None: """ pass - def test_poll_result_generate_csv(self) -> None: - """Test case for poll_result_generate_csv - """ - pass - - def test_poll_result_generate_pdf(self) -> None: - """Test case for poll_result_generate_pdf - - """ - pass def test_start_result_generate_csv(self) -> None: """Test case for start_result_generate_csv @@ -63,6 +54,5 @@ def test_start_result_generate_pdf(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_required_file_types.py b/test/test_required_file_types.py index e9f600b..ccfeeba 100644 --- a/test/test_required_file_types.py +++ b/test/test_required_file_types.py @@ -51,5 +51,6 @@ def testRequiredFileTypes(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reserve_operation_input.py b/test/test_reserve_operation_input.py index 3c21316..24be352 100644 --- a/test/test_reserve_operation_input.py +++ b/test/test_reserve_operation_input.py @@ -74,5 +74,6 @@ def testReserveOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_result_file_metadata.py b/test/test_result_file_metadata.py index eebd4ad..e9b71f8 100644 --- a/test/test_result_file_metadata.py +++ b/test/test_result_file_metadata.py @@ -53,5 +53,6 @@ def testResultFileMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_result_metadata.py b/test/test_result_metadata.py index ec67e6d..58163aa 100644 --- a/test/test_result_metadata.py +++ b/test/test_result_metadata.py @@ -102,5 +102,6 @@ def testResultMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_results_group.py b/test/test_results_group.py index 7ff2d8f..87f4108 100644 --- a/test/test_results_group.py +++ b/test/test_results_group.py @@ -51,5 +51,6 @@ def testResultsGroup(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_rtp_encryption_mode.py b/test/test_rtp_encryption_mode.py index 7d41eae..d1bd493 100644 --- a/test/test_rtp_encryption_mode.py +++ b/test/test_rtp_encryption_mode.py @@ -30,5 +30,6 @@ def testRTPEncryptionMode(self): """Test RTPEncryptionMode""" # inst = RTPEncryptionMode() + if __name__ == '__main__': unittest.main() diff --git a/test/test_rtp_profile.py b/test/test_rtp_profile.py index 68ddc5e..0916121 100644 --- a/test/test_rtp_profile.py +++ b/test/test_rtp_profile.py @@ -53,5 +53,6 @@ def testRTPProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_rtp_profile_meta.py b/test/test_rtp_profile_meta.py index 52f6a5a..6b48767 100644 --- a/test/test_rtp_profile_meta.py +++ b/test/test_rtp_profile_meta.py @@ -54,5 +54,6 @@ def testRTPProfileMeta(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_save_config_operation.py b/test/test_save_config_operation.py index 6204a5b..ab5c4ad 100644 --- a/test/test_save_config_operation.py +++ b/test/test_save_config_operation.py @@ -48,5 +48,6 @@ def testSaveConfigOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_scenario.py b/test/test_scenario.py index 4bd549c..5c32226 100644 --- a/test/test_scenario.py +++ b/test/test_scenario.py @@ -145,6 +145,23 @@ def make_instance(self, include_optional) -> Scenario: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), connections = [ cyperf.models.connection.Connection( client_endpoint = '', @@ -202,6 +219,7 @@ def make_instance(self, include_optional) -> Scenario: external_resource_url = '', index = 56, inherit_http_profile = True, + inherit_quic_profile = True, ip_preference = 'IPV4_ONLY', is_deprecated = True, iteration_count = 56, @@ -422,6 +440,23 @@ def make_instance(self, include_optional) -> Scenario: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), supports_client_http_profile = True, supports_http_profiles = True, supports_server_http_profile = True, @@ -447,5 +482,6 @@ def testScenario(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_secondary_objective.py b/test/test_secondary_objective.py index b085c58..871bee3 100644 --- a/test/test_secondary_objective.py +++ b/test/test_secondary_objective.py @@ -58,5 +58,6 @@ def testSecondaryObjective(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_segment_type.py b/test/test_segment_type.py index 5126fb8..6deee34 100644 --- a/test/test_segment_type.py +++ b/test/test_segment_type.py @@ -30,5 +30,6 @@ def testSegmentType(self): """Test SegmentType""" # inst = SegmentType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_selected_env.py b/test/test_selected_env.py index 19cf20f..bce8dce 100644 --- a/test/test_selected_env.py +++ b/test/test_selected_env.py @@ -60,5 +60,6 @@ def testSelectedEnv(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_session.py b/test/test_session.py index 8ab680f..ef1ddf5 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -157,5 +157,6 @@ def testSession(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_session_reuse_method_tls12.py b/test/test_session_reuse_method_tls12.py index ffcf13e..cba922c 100644 --- a/test/test_session_reuse_method_tls12.py +++ b/test/test_session_reuse_method_tls12.py @@ -30,5 +30,6 @@ def testSessionReuseMethodTLS12(self): """Test SessionReuseMethodTLS12""" # inst = SessionReuseMethodTLS12() + if __name__ == '__main__': unittest.main() diff --git a/test/test_session_reuse_method_tls13.py b/test/test_session_reuse_method_tls13.py index 925b372..da12401 100644 --- a/test/test_session_reuse_method_tls13.py +++ b/test/test_session_reuse_method_tls13.py @@ -30,5 +30,6 @@ def testSessionReuseMethodTLS13(self): """Test SessionReuseMethodTLS13""" # inst = SessionReuseMethodTLS13() + if __name__ == '__main__': unittest.main() diff --git a/test/test_sessions_api.py b/test/test_sessions_api.py index a806656..28b8619 100644 --- a/test/test_sessions_api.py +++ b/test/test_sessions_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_session_meta(self) -> None: """Test case for create_session_meta @@ -123,59 +124,14 @@ def test_patch_session_test(self) -> None: """ pass - def test_poll_config_add_applications(self) -> None: - """Test case for poll_config_add_applications - """ - pass - - def test_poll_session_config_granular_stats_default_dashboards(self) -> None: - """Test case for poll_session_config_granular_stats_default_dashboards - - """ - pass - - def test_poll_session_config_save(self) -> None: - """Test case for poll_session_config_save - - """ - pass - - def test_poll_session_load_config(self) -> None: - """Test case for poll_session_load_config - - """ - pass - def test_poll_session_prepare_test(self) -> None: - """Test case for poll_session_prepare_test - """ - pass - - def test_poll_session_test_end(self) -> None: - """Test case for poll_session_test_end - - """ - pass - - def test_poll_session_test_init(self) -> None: - """Test case for poll_session_test_init - """ - pass - def test_poll_session_touch(self) -> None: - """Test case for poll_session_touch - """ - pass - def test_poll_sessions_batch_delete(self) -> None: - """Test case for poll_sessions_batch_delete - """ - pass def test_start_config_add_applications(self) -> None: """Test case for start_config_add_applications @@ -255,6 +211,5 @@ def test_update_session_test(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_set_aggregation_mode_operation.py b/test/test_set_aggregation_mode_operation.py index 2cfc0af..5a26a7e 100644 --- a/test/test_set_aggregation_mode_operation.py +++ b/test/test_set_aggregation_mode_operation.py @@ -55,5 +55,6 @@ def testSetAggregationModeOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_set_app_operation.py b/test/test_set_app_operation.py index 2df4c77..eb8b9c8 100644 --- a/test/test_set_app_operation.py +++ b/test/test_set_app_operation.py @@ -52,5 +52,6 @@ def testSetAppOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_set_dpdk_mode_operation_input.py b/test/test_set_dpdk_mode_operation_input.py index 86a72fc..511a024 100644 --- a/test/test_set_dpdk_mode_operation_input.py +++ b/test/test_set_dpdk_mode_operation_input.py @@ -51,5 +51,6 @@ def testSetDpdkModeOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_set_link_state_operation.py b/test/test_set_link_state_operation.py index 899ea85..3be18a3 100644 --- a/test/test_set_link_state_operation.py +++ b/test/test_set_link_state_operation.py @@ -59,5 +59,6 @@ def testSetLinkStateOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_set_ntp_operation_input.py b/test/test_set_ntp_operation_input.py index ac6adea..f30d79f 100644 --- a/test/test_set_ntp_operation_input.py +++ b/test/test_set_ntp_operation_input.py @@ -53,5 +53,6 @@ def testSetNtpOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_simulated_id_p.py b/test/test_simulated_id_p.py index e62e30d..2eee503 100644 --- a/test/test_simulated_id_p.py +++ b/test/test_simulated_id_p.py @@ -102,5 +102,6 @@ def testSimulatedIdP(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_snapshot.py b/test/test_snapshot.py index 0c67c07..9fff965 100644 --- a/test/test_snapshot.py +++ b/test/test_snapshot.py @@ -53,5 +53,6 @@ def testSnapshot(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_sort_body_field.py b/test/test_sort_body_field.py index 8d8d7b7..286e0d0 100644 --- a/test/test_sort_body_field.py +++ b/test/test_sort_body_field.py @@ -49,5 +49,6 @@ def testSortBodyField(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_specific_objective.py b/test/test_specific_objective.py index 2aabbd5..6e26e9e 100644 --- a/test/test_specific_objective.py +++ b/test/test_specific_objective.py @@ -69,5 +69,6 @@ def testSpecificObjective(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_start_agents_batch_delete_request_inner.py b/test/test_start_agents_batch_delete_request_inner.py index dd914f4..d634b29 100644 --- a/test/test_start_agents_batch_delete_request_inner.py +++ b/test/test_start_agents_batch_delete_request_inner.py @@ -48,5 +48,6 @@ def testStartAgentsBatchDeleteRequestInner(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_stateless_stream.py b/test/test_stateless_stream.py index 8ff35ba..a6f22ae 100644 --- a/test/test_stateless_stream.py +++ b/test/test_stateless_stream.py @@ -73,5 +73,6 @@ def testStatelessStream(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_static_arp_entry.py b/test/test_static_arp_entry.py index cf7456f..c7d3f71 100644 --- a/test/test_static_arp_entry.py +++ b/test/test_static_arp_entry.py @@ -56,5 +56,6 @@ def testStaticARPEntry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_statistics_api.py b/test/test_statistics_api.py index db67bac..7ffc06e 100644 --- a/test/test_statistics_api.py +++ b/test/test_statistics_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_stats_plugins(self) -> None: """Test case for create_stats_plugins @@ -57,11 +58,6 @@ def test_get_stats_plugins(self) -> None: """ pass - def test_poll_stats_plugins_ingest(self) -> None: - """Test case for poll_stats_plugins_ingest - - """ - pass def test_start_stats_plugins_ingest(self) -> None: """Test case for start_stats_plugins_ingest @@ -69,6 +65,5 @@ def test_start_stats_plugins_ingest(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_stats_result.py b/test/test_stats_result.py index dd36631..f1c2522 100644 --- a/test/test_stats_result.py +++ b/test/test_stats_result.py @@ -38,87 +38,19 @@ def make_instance(self, include_optional) -> StatsResult: return StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -146,5 +78,6 @@ def testStatsResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_steady_segment.py b/test/test_steady_segment.py index 9484c92..7dcbfbb 100644 --- a/test/test_steady_segment.py +++ b/test/test_steady_segment.py @@ -58,5 +58,6 @@ def testSteadySegment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_step_segment.py b/test/test_step_segment.py index 0d7b4a2..c7c6c6f 100644 --- a/test/test_step_segment.py +++ b/test/test_step_segment.py @@ -58,5 +58,6 @@ def testStepSegment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_stream_direction.py b/test/test_stream_direction.py index 912b0e7..1674185 100644 --- a/test/test_stream_direction.py +++ b/test/test_stream_direction.py @@ -30,5 +30,6 @@ def testStreamDirection(self): """Test StreamDirection""" # inst = StreamDirection() + if __name__ == '__main__': unittest.main() diff --git a/test/test_stream_payload_type.py b/test/test_stream_payload_type.py index b046e00..4393a67 100644 --- a/test/test_stream_payload_type.py +++ b/test/test_stream_payload_type.py @@ -30,5 +30,6 @@ def testStreamPayloadType(self): """Test StreamPayloadType""" # inst = StreamPayloadType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_stream_profile.py b/test/test_stream_profile.py index 34940ab..0036cd3 100644 --- a/test/test_stream_profile.py +++ b/test/test_stream_profile.py @@ -56,5 +56,6 @@ def testStreamProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_supported_group_tls13.py b/test/test_supported_group_tls13.py index 622a5e6..a67e43a 100644 --- a/test/test_supported_group_tls13.py +++ b/test/test_supported_group_tls13.py @@ -30,5 +30,6 @@ def testSupportedGroupTLS13(self): """Test SupportedGroupTLS13""" # inst = SupportedGroupTLS13() + if __name__ == '__main__': unittest.main() diff --git a/test/test_system_info.py b/test/test_system_info.py index c65a468..432c630 100644 --- a/test/test_system_info.py +++ b/test/test_system_info.py @@ -59,5 +59,6 @@ def testSystemInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tcp_profile.py b/test/test_tcp_profile.py index 24ecc87..fd8a9b7 100644 --- a/test/test_tcp_profile.py +++ b/test/test_tcp_profile.py @@ -72,5 +72,6 @@ def testTcpProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_test_info.py b/test/test_test_info.py index 8e2bc02..f4c4c2d 100644 --- a/test/test_test_info.py +++ b/test/test_test_info.py @@ -62,5 +62,6 @@ def testTestInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_test_operations_api.py b/test/test_test_operations_api.py index a3aa4af..3983674 100644 --- a/test/test_test_operations_api.py +++ b/test/test_test_operations_api.py @@ -27,35 +27,11 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_poll_test_calibrate_start(self) -> None: - """Test case for poll_test_calibrate_start + - """ - pass - - def test_poll_test_calibrate_stop(self) -> None: - """Test case for poll_test_calibrate_stop - - """ - pass - - def test_poll_test_run_abort(self) -> None: - """Test case for poll_test_run_abort - - """ - pass - def test_poll_test_run_start(self) -> None: - """Test case for poll_test_run_start - - """ - pass - def test_poll_test_run_stop(self) -> None: - """Test case for poll_test_run_stop - """ - pass def test_start_test_calibrate_start(self) -> None: """Test case for start_test_calibrate_start @@ -87,6 +63,5 @@ def test_start_test_run_stop(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_test_results_api.py b/test/test_test_results_api.py index 1ddff41..6520aaa 100644 --- a/test/test_test_results_api.py +++ b/test/test_test_results_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_delete_result(self) -> None: """Test case for delete_result @@ -87,29 +88,9 @@ def test_get_results_tags(self) -> None: """ pass - def test_poll_result_generate_all(self) -> None: - """Test case for poll_result_generate_all - """ - pass - def test_poll_result_generate_results(self) -> None: - """Test case for poll_result_generate_results - """ - pass - - def test_poll_result_load(self) -> None: - """Test case for poll_result_load - - """ - pass - - def test_poll_results_batch_delete(self) -> None: - """Test case for poll_results_batch_delete - - """ - pass def test_start_result_generate_all(self) -> None: """Test case for start_result_generate_all @@ -135,6 +116,5 @@ def test_start_results_batch_delete(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_test_state_changed_operation.py b/test/test_test_state_changed_operation.py index 6c4bd99..1b704a4 100644 --- a/test/test_test_state_changed_operation.py +++ b/test/test_test_state_changed_operation.py @@ -55,5 +55,6 @@ def testTestStateChangedOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_time_value.py b/test/test_time_value.py index ef84f2f..7722e44 100644 --- a/test/test_time_value.py +++ b/test/test_time_value.py @@ -48,5 +48,6 @@ def testTimeValue(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_timeline_segment.py b/test/test_timeline_segment.py index eec679f..57e53ce 100644 --- a/test/test_timeline_segment.py +++ b/test/test_timeline_segment.py @@ -76,5 +76,6 @@ def testTimelineSegment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_timeline_segment_base.py b/test/test_timeline_segment_base.py index 1987aa6..fe3ec69 100644 --- a/test/test_timeline_segment_base.py +++ b/test/test_timeline_segment_base.py @@ -54,5 +54,6 @@ def testTimelineSegmentBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_timeline_segment_union.py b/test/test_timeline_segment_union.py index 91792b1..451bd08 100644 --- a/test/test_timeline_segment_union.py +++ b/test/test_timeline_segment_union.py @@ -62,5 +62,6 @@ def testTimelineSegmentUnion(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_timers.py b/test/test_timers.py index 7de77c3..2ac147f 100644 --- a/test/test_timers.py +++ b/test/test_timers.py @@ -53,5 +53,6 @@ def testTimers(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tls_profile.py b/test/test_tls_profile.py index a84939e..e9b4c48 100644 --- a/test/test_tls_profile.py +++ b/test/test_tls_profile.py @@ -410,5 +410,6 @@ def testTLSProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_track.py b/test/test_track.py index 41eee21..b440b47 100644 --- a/test/test_track.py +++ b/test/test_track.py @@ -73,5 +73,6 @@ def testTrack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_track_type.py b/test/test_track_type.py index b61cd48..7f080ac 100644 --- a/test/test_track_type.py +++ b/test/test_track_type.py @@ -30,5 +30,6 @@ def testTrackType(self): """Test TrackType""" # inst = TrackType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_traffic_agent_info.py b/test/test_traffic_agent_info.py index 9b4a058..d3e9933 100644 --- a/test/test_traffic_agent_info.py +++ b/test/test_traffic_agent_info.py @@ -49,5 +49,6 @@ def testTrafficAgentInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_traffic_profile_base.py b/test/test_traffic_profile_base.py index e11605e..40e3173 100644 --- a/test/test_traffic_profile_base.py +++ b/test/test_traffic_profile_base.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> TrafficProfileBase: rel = '', type = '', ) ], ), + use_all_source_ips_per_user = True, id = '', links = [ cyperf.models.api_link.APILink( @@ -71,5 +72,6 @@ def testTrafficProfileBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_traffic_settings.py b/test/test_traffic_settings.py index db5e37a..a3a70ed 100644 --- a/test/test_traffic_settings.py +++ b/test/test_traffic_settings.py @@ -58,5 +58,6 @@ def testTrafficSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py index c9f7a01..fe38473 100644 --- a/test/test_transport_profile.py +++ b/test/test_transport_profile.py @@ -143,6 +143,23 @@ def make_instance(self, include_optional) -> TransportProfile: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), client_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -349,6 +366,23 @@ def make_instance(self, include_optional) -> TransportProfile: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), server_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -475,5 +509,6 @@ def testTransportProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py index c7807db..c98e998 100644 --- a/test/test_transport_profile_base.py +++ b/test/test_transport_profile_base.py @@ -143,6 +143,23 @@ def make_instance(self, include_optional) -> TransportProfileBase: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), client_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -349,6 +366,23 @@ def make_instance(self, include_optional) -> TransportProfileBase: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), server_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -473,5 +507,6 @@ def testTransportProfileBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tunnel_range.py b/test/test_tunnel_range.py index 14255fe..fadb734 100644 --- a/test/test_tunnel_range.py +++ b/test/test_tunnel_range.py @@ -86,5 +86,6 @@ def testTunnelRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tunnel_settings.py b/test/test_tunnel_settings.py index e23b58c..587d9b4 100644 --- a/test/test_tunnel_settings.py +++ b/test/test_tunnel_settings.py @@ -101,5 +101,6 @@ def testTunnelSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tunnel_stack.py b/test/test_tunnel_stack.py index edb794e..fc4c8ba 100644 --- a/test/test_tunnel_stack.py +++ b/test/test_tunnel_stack.py @@ -118,5 +118,6 @@ def testTunnelStack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_array_v2_metadata.py b/test/test_type_array_v2_metadata.py index 77c42f0..06b7249 100644 --- a/test/test_type_array_v2_metadata.py +++ b/test/test_type_array_v2_metadata.py @@ -52,5 +52,6 @@ def testTypeArrayV2Metadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_info_metadata.py b/test/test_type_info_metadata.py index cab6652..16c248c 100644 --- a/test/test_type_info_metadata.py +++ b/test/test_type_info_metadata.py @@ -63,5 +63,6 @@ def testTypeInfoMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_int_metadata.py b/test/test_type_int_metadata.py index 8f178a8..2b800c6 100644 --- a/test/test_type_int_metadata.py +++ b/test/test_type_int_metadata.py @@ -49,5 +49,6 @@ def testTypeIntMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_media_metadata.py b/test/test_type_media_metadata.py index 4a52ef3..d9cbce2 100644 --- a/test/test_type_media_metadata.py +++ b/test/test_type_media_metadata.py @@ -49,5 +49,6 @@ def testTypeMediaMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_string_metadata.py b/test/test_type_string_metadata.py index 91c9f9c..91468e1 100644 --- a/test/test_type_string_metadata.py +++ b/test/test_type_string_metadata.py @@ -50,5 +50,6 @@ def testTypeStringMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_udp_profile.py b/test/test_udp_profile.py index 2be5772..a68e473 100644 --- a/test/test_udp_profile.py +++ b/test/test_udp_profile.py @@ -54,5 +54,6 @@ def testUdpProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_update_network_mapping.py b/test/test_update_network_mapping.py index 92abc06..ca2dc09 100644 --- a/test/test_update_network_mapping.py +++ b/test/test_update_network_mapping.py @@ -57,5 +57,6 @@ def testUpdateNetworkMapping(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_utils_api.py b/test/test_utils_api.py index 6e77767..1e32d81 100644 --- a/test/test_utils_api.py +++ b/test/test_utils_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_check_eulas(self) -> None: """Test case for check_eulas @@ -102,47 +103,12 @@ def test_list_eulas(self) -> None: """ pass - def test_poll_cert_manager_generate(self) -> None: - """Test case for poll_cert_manager_generate - """ - pass - - def test_poll_cert_manager_upload(self) -> None: - """Test case for poll_cert_manager_upload - - """ - pass - - def test_poll_disk_usage_cleanup_diagnostics(self) -> None: - """Test case for poll_disk_usage_cleanup_diagnostics - - """ - pass - - def test_poll_disk_usage_cleanup_logs(self) -> None: - """Test case for poll_disk_usage_cleanup_logs - """ - pass - def test_poll_disk_usage_cleanup_migration(self) -> None: - """Test case for poll_disk_usage_cleanup_migration - """ - pass - def test_poll_disk_usage_cleanup_notifications(self) -> None: - """Test case for poll_disk_usage_cleanup_notifications - """ - pass - - def test_poll_disk_usage_cleanup_results(self) -> None: - """Test case for poll_disk_usage_cleanup_results - - """ - pass def test_post_eula(self) -> None: """Test case for post_eula @@ -199,6 +165,5 @@ def test_update_log_config(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_validation_message.py b/test/test_validation_message.py index b94cce6..ed38104 100644 --- a/test/test_validation_message.py +++ b/test/test_validation_message.py @@ -51,5 +51,6 @@ def testValidationMessage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_version.py b/test/test_version.py index 31568bf..e2b6089 100644 --- a/test/test_version.py +++ b/test/test_version.py @@ -49,5 +49,6 @@ def testVersion(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_vlan_range.py b/test/test_vlan_range.py index 16c3d8f..ddc7df5 100644 --- a/test/test_vlan_range.py +++ b/test/test_vlan_range.py @@ -77,5 +77,6 @@ def testVLANRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() From 042ea324b579759952cb440c71fddd4e1044725f Mon Sep 17 00:00:00 2001 From: AndreiTeodor Boieriu Date: Mon, 1 Sep 2025 03:10:13 -0600 Subject: [PATCH 03/20] Pull request #36: ISGAPPSEC2-34390 Regenerate wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-34390-add-tag-support-to-ports to main Squashed commit of the following: commit 2e53af0c028d95ef69ff41e18cbb4cdb0984c3a9 Author: AndreiTeodor Boieriu Date: Wed Aug 27 18:52:33 2025 +0300 Regenerate wrapper --- README.md | 2 + cyperf/__init__.py | 1 + cyperf/api/agents_api.py | 276 ++++++++++++++++++ cyperf/dynamic_models/__init__.py | 1 + cyperf/models/__init__.py | 1 + cyperf/models/port.py | 4 +- cyperf/models/update_port_tags_operation.py | 105 +++++++ cyperf/utils.py | 2 +- docs/AgentsApi.md | 79 +++++ docs/Port.md | 1 + docs/UpdatePortTagsOperation.md | 31 ++ test/test_agents_api.py | 7 + test/test_compute_node.py | 3 + test/test_controller.py | 3 + test/test_get_controllers200_response.py | 3 + ...test_get_controllers200_response_one_of.py | 3 + test/test_port.py | 3 + test/test_update_port_tags_operation.py | 69 +++++ 18 files changed, 592 insertions(+), 2 deletions(-) create mode 100644 cyperf/models/update_port_tags_operation.py create mode 100644 docs/UpdatePortTagsOperation.md create mode 100644 test/test_update_port_tags_operation.py diff --git a/README.md b/README.md index 00b16d6..662a171 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ Class | Method | HTTP request | Description *AgentsApi* | [**start_controllers_set_app**](docs/AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | *AgentsApi* | [**start_controllers_set_node_aggregation**](docs/AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | *AgentsApi* | [**start_controllers_set_port_link_state**](docs/AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | +*AgentsApi* | [**start_controllers_update_port_tags**](docs/AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | *ApplicationResourcesApi* | [**delete_resources_capture**](docs/ApplicationResourcesApi.md#delete_resources_capture) | **DELETE** /api/v2/resources/captures/{captureId} | *ApplicationResourcesApi* | [**delete_resources_certificate**](docs/ApplicationResourcesApi.md#delete_resources_certificate) | **DELETE** /api/v2/resources/certificates/{certificateId} | *ApplicationResourcesApi* | [**delete_resources_custom_fuzzing_script**](docs/ApplicationResourcesApi.md#delete_resources_custom_fuzzing_script) | **DELETE** /api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId} | @@ -740,6 +741,7 @@ Class | Method | HTTP request | Description - [TypeStringMetadata](docs/TypeStringMetadata.md) - [UdpProfile](docs/UdpProfile.md) - [UpdateNetworkMapping](docs/UpdateNetworkMapping.md) + - [UpdatePortTagsOperation](docs/UpdatePortTagsOperation.md) - [VLANRange](docs/VLANRange.md) - [ValidationMessage](docs/ValidationMessage.md) - [Version](docs/Version.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 94c7838..2082c0a 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -418,6 +418,7 @@ from cyperf.models.type_string_metadata import TypeStringMetadata from cyperf.models.udp_profile import UdpProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index b5c3097..43ce379 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -41,6 +41,7 @@ from cyperf.models.set_link_state_operation import SetLinkStateOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf import DynamicModel from cyperf.api_client import ApiClient, RequestSerialized @@ -3296,6 +3297,16 @@ def _patch_agent_serialize( + + + + + + + + + + @@ -6988,3 +6999,268 @@ def _start_controllers_set_port_link_state_serialize( ) + + + @validate_call + def start_controllers_update_port_tags( + self, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_controllers_update_port_tags + + Update port tags. + + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_update_port_tags_with_http_info( + self, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_controllers_update_port_tags + + Update port tags. + + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_update_port_tags_without_preload_content( + self, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_controllers_update_port_tags + + Update port tags. + + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_controllers_update_port_tags_serialize( + self, + update_port_tags_operation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_port_tags_operation is not None: + _body_params = update_port_tags_operation + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/controllers/operations/update-port-tags', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 3fdf669..91fe831 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -384,6 +384,7 @@ TypeStringMetadata = DynamicModel('TypeStringMetadata', (), {} ) UdpProfile = DynamicModel('UdpProfile', (), {} ) UpdateNetworkMapping = DynamicModel('UpdateNetworkMapping', (), {} ) +UpdatePortTagsOperation = DynamicModel('UpdatePortTagsOperation', (), {} ) VLANRange = DynamicModel('VLANRange', (), {} ) ValidationMessage = DynamicModel('ValidationMessage', (), {} ) Version = DynamicModel('Version', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index d6851fc..24eccd3 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -384,6 +384,7 @@ class LinkNameException(Exception): from cyperf.models.type_string_metadata import TypeStringMetadata from cyperf.models.udp_profile import UdpProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version diff --git a/cyperf/models/port.py b/cyperf/models/port.py index a1e9c61..0312f09 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -35,8 +35,9 @@ class Port(BaseModel): reserved_by: Optional[StrictStr] = Field(default=None, description="The owner of the port", alias="reservedBy") speed: Optional[StrictStr] = Field(default=None, description="The port's speed") status: Optional[StrictStr] = Field(default=None, description="The current status of the port: ready or not ready") + tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags") traffic_status: Optional[StrictStr] = Field(default=None, description="The traffic status of the port", alias="trafficStatus") - __properties: ClassVar[List[str]] = ["disabled", "id", "link", "name", "reservedBy", "speed", "status", "trafficStatus"] + __properties: ClassVar[List[str]] = ["disabled", "id", "link", "name", "reservedBy", "speed", "status", "tags", "trafficStatus"] model_config = ConfigDict( populate_by_name=True, @@ -98,6 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reservedBy": obj.get("reservedBy"), "speed": obj.get("speed"), "status": obj.get("status"), + "tags": obj.get("tags"), "trafficStatus": obj.get("trafficStatus") , "links": obj.get("links") diff --git a/cyperf/models/update_port_tags_operation.py b/cyperf/models/update_port_tags_operation.py new file mode 100644 index 0000000..9970794 --- /dev/null +++ b/cyperf/models/update_port_tags_operation.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.ports_by_controller import PortsByController +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class UpdatePortTagsOperation(BaseModel): + """ + UpdatePortTagsOperation + """ # noqa: E501 + controllers: Optional[List[PortsByController]] = Field(default=None, description="The controllers that the ports are part of.") + tags_to_add: Optional[List[StrictStr]] = Field(default=None, description="The list of tags to add to the port selection", alias="tagsToAdd") + tags_to_remove: Optional[List[StrictStr]] = Field(default=None, description="The list of tags to remove from the port selection", alias="tagsToRemove") + __properties: ClassVar[List[str]] = ["controllers", "tagsToAdd", "tagsToRemove"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdatePortTagsOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdatePortTagsOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, + "tagsToAdd": obj.get("tagsToAdd"), + "tagsToRemove": obj.get("tagsToRemove") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/utils.py b/cyperf/utils.py index c4b8c1c..e21e874 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -175,7 +175,7 @@ def assign_agents(self, session, agent_map=None, augment=False, auto_assign=Fals else: ip_net.agent_assignments.by_id = agent_details ip_net.update() - + def wait_until_agents_released(self, agents): timeout = 180 poll_interval = 3 diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index dfe18d8..4fb119c 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -29,6 +29,7 @@ Method | HTTP request | Description [**start_controllers_set_app**](AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | [**start_controllers_set_node_aggregation**](AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | [**start_controllers_set_port_link_state**](AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | +[**start_controllers_update_port_tags**](AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | # **delete_agent** @@ -2002,3 +2003,81 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_controllers_update_port_tags** +> AsyncContext start_controllers_update_port_tags(update_port_tags_operation=update_port_tags_operation) + + + +Update port tags. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + update_port_tags_operation = cyperf.UpdatePortTagsOperation() # UpdatePortTagsOperation | (optional) + + try: + api_response = api_instance.start_controllers_update_port_tags(update_port_tags_operation=update_port_tags_operation) + print("The response of AgentsApi->start_controllers_update_port_tags:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->start_controllers_update_port_tags: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_port_tags_operation** | [**UpdatePortTagsOperation**](UpdatePortTagsOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Port.md b/docs/Port.md index bb8a495..9fa8994 100644 --- a/docs/Port.md +++ b/docs/Port.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **reserved_by** | **str** | The owner of the port | [optional] **speed** | **str** | The port's speed | [optional] **status** | **str** | The current status of the port: ready or not ready | [optional] +**tags** | **List[str]** | A list of tags | [optional] **traffic_status** | **str** | The traffic status of the port | [optional] ## Example diff --git a/docs/UpdatePortTagsOperation.md b/docs/UpdatePortTagsOperation.md new file mode 100644 index 0000000..ecdf4a6 --- /dev/null +++ b/docs/UpdatePortTagsOperation.md @@ -0,0 +1,31 @@ +# UpdatePortTagsOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**List[PortsByController]**](PortsByController.md) | The controllers that the ports are part of. | [optional] +**tags_to_add** | **List[str]** | The list of tags to add to the port selection | [optional] +**tags_to_remove** | **List[str]** | The list of tags to remove from the port selection | [optional] + +## Example + +```python +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdatePortTagsOperation from a JSON string +update_port_tags_operation_instance = UpdatePortTagsOperation.from_json(json) +# print the JSON string representation of the object +print(UpdatePortTagsOperation.to_json()) + +# convert the object into a dict +update_port_tags_operation_dict = update_port_tags_operation_instance.to_dict() +# create an instance of UpdatePortTagsOperation from a dict +update_port_tags_operation_from_dict = UpdatePortTagsOperation.from_dict(update_port_tags_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/test/test_agents_api.py b/test/test_agents_api.py index 702c73f..a4ace3f 100644 --- a/test/test_agents_api.py +++ b/test/test_agents_api.py @@ -108,6 +108,7 @@ def test_patch_agent(self) -> None: + def test_start_agents_batch_delete(self) -> None: """Test case for start_agents_batch_delete @@ -192,5 +193,11 @@ def test_start_controllers_set_port_link_state(self) -> None: """ pass + def test_start_controllers_update_port_tags(self) -> None: + """Test case for start_controllers_update_port_tags + + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_compute_node.py b/test/test_compute_node.py index 6b25d28..afbd44c 100644 --- a/test/test_compute_node.py +++ b/test/test_compute_node.py @@ -67,6 +67,9 @@ def make_instance(self, include_optional) -> ComputeNode: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '', ) ], serial = '', diff --git a/test/test_controller.py b/test/test_controller.py index 12c1ab2..d986e8b 100644 --- a/test/test_controller.py +++ b/test/test_controller.py @@ -69,6 +69,9 @@ def make_instance(self, include_optional) -> Controller: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '', ) ], serial = '', diff --git a/test/test_get_controllers200_response.py b/test/test_get_controllers200_response.py index f5e63b8..8da8882 100644 --- a/test/test_get_controllers200_response.py +++ b/test/test_get_controllers200_response.py @@ -71,6 +71,9 @@ def make_instance(self, include_optional) -> GetControllers200Response: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '', ) ], serial = '', diff --git a/test/test_get_controllers200_response_one_of.py b/test/test_get_controllers200_response_one_of.py index d0f6a78..6d28d36 100644 --- a/test/test_get_controllers200_response_one_of.py +++ b/test/test_get_controllers200_response_one_of.py @@ -71,6 +71,9 @@ def make_instance(self, include_optional) -> GetControllers200ResponseOneOf: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '', ) ], serial = '', diff --git a/test/test_port.py b/test/test_port.py index ff52958..9721884 100644 --- a/test/test_port.py +++ b/test/test_port.py @@ -43,6 +43,9 @@ def make_instance(self, include_optional) -> Port: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '' ) else: diff --git a/test/test_update_port_tags_operation.py b/test/test_update_port_tags_operation.py new file mode 100644 index 0000000..54d34b9 --- /dev/null +++ b/test/test_update_port_tags_operation.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation + +class TestUpdatePortTagsOperation(unittest.TestCase): + """UpdatePortTagsOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdatePortTagsOperation: + """Test UpdatePortTagsOperation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdatePortTagsOperation` + """ + model = UpdatePortTagsOperation() + if include_optional: + return UpdatePortTagsOperation( + controllers = [ + cyperf.models.ports_by_controller.PortsByController( + compute_nodes = [ + cyperf.models.ports_by_node.PortsByNode( + compute_node_id = '', + ports = [ + '' + ], ) + ], + controller_id = '', ) + ], + tags_to_add = [ + '' + ], + tags_to_remove = [ + '' + ] + ) + else: + return UpdatePortTagsOperation( + ) + """ + + def testUpdatePortTagsOperation(self): + """Test UpdatePortTagsOperation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() From 7e4f2a8e86787780b62381718cb2ccc39b71bb5f Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 17 Sep 2025 02:34:07 -0600 Subject: [PATCH 04/20] Pull request #37: ISGAPPSEC2-35552 API Wrapper issue with EthRange support Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-35552-api-wrapper-issue-with-ethrange-support to main Squashed commit of the following: commit b5451bc6ac103683c26b4564e1ec8ad3f9217002 Author: iustmitu Date: Mon Sep 15 13:06:26 2025 +0300 renaming Parameter commit 7673b1a7637b7dce33994c91ef8d8811e665e671 Author: iustmitu Date: Mon Sep 8 12:21:03 2025 +0300 fix EthRange and EmulatedRouter classes --- README.md | 1 + cyperf/__init__.py | 1 + cyperf/dynamic_models/__init__.py | 1 + cyperf/models/__init__.py | 1 + cyperf/models/action_input.py | 6 +- cyperf/models/action_metadata.py | 6 +- cyperf/models/add_input.py | 6 +- cyperf/models/appsec_app_metadata.py | 6 +- cyperf/models/create_app_operation.py | 6 +- cyperf/models/edit_action_input.py | 6 +- cyperf/models/edit_app_operation.py | 6 +- cyperf/models/parameter.py | 40 +++-- cyperf/models/parameter_meta.py | 103 ++++++++++++ docs/ActionInput.md | 2 +- docs/ActionMetadata.md | 2 +- docs/AddInput.md | 2 +- docs/AppsecAppMetadata.md | 2 +- docs/CreateAppOperation.md | 2 +- docs/EditActionInput.md | 2 +- docs/EditAppOperation.md | 2 +- docs/IPNetwork.md | 4 +- docs/Parameter.md | 11 +- docs/ParameterMeta.md | 30 ++++ test/test_action_input.py | 7 +- test/test_action_metadata.py | 7 +- test/test_add_input.py | 7 +- test/test_application_type.py | 152 ++++++++++++++---- test/test_appsec_app.py | 14 +- test/test_appsec_app_metadata.py | 14 +- test/test_auth_profile.py | 88 ++++++++-- test/test_command.py | 88 ++++++++-- test/test_create_app_operation.py | 14 +- test/test_edit_action_input.py | 7 +- test/test_edit_app_operation.py | 21 +-- ...resources_application_types200_response.py | 50 +++--- ...es_application_types200_response_one_of.py | 50 +++--- test/test_get_resources_apps200_response.py | 14 +- ...t_get_resources_apps200_response_one_of.py | 14 +- ...get_resources_auth_profiles200_response.py | 23 +-- ...ources_auth_profiles200_response_one_of.py | 23 +-- test/test_get_result_stats200_response.py | 88 ++++++++-- ...est_get_result_stats200_response_one_of.py | 88 ++++++++-- test/test_ip_network.py | 44 ++++- test/test_parameter.py | 88 ++++++++-- test/test_parameter_meta.py | 64 ++++++++ test/test_stats_result.py | 88 ++++++++-- 46 files changed, 1014 insertions(+), 287 deletions(-) create mode 100644 cyperf/models/parameter_meta.py create mode 100644 docs/ParameterMeta.md create mode 100644 test/test_parameter_meta.py diff --git a/README.md b/README.md index 662a171..9e73bd0 100644 --- a/README.md +++ b/README.md @@ -649,6 +649,7 @@ Class | Method | HTTP request | Description - [ParamType](docs/ParamType.md) - [Parameter](docs/Parameter.md) - [ParameterMatch](docs/ParameterMatch.md) + - [ParameterMeta](docs/ParameterMeta.md) - [ParameterMetadata](docs/ParameterMetadata.md) - [Params](docs/Params.md) - [ParamsEnum](docs/ParamsEnum.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 2082c0a..f7ad52c 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -326,6 +326,7 @@ from cyperf.models.param_type import ParamType from cyperf.models.parameter import Parameter from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.parameter_metadata import ParameterMetadata from cyperf.models.params import Params from cyperf.models.params_enum import ParamsEnum diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 91fe831..f37c97f 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -292,6 +292,7 @@ ParamType = DynamicModel('ParamType', (), {} ) Parameter = DynamicModel('Parameter', (), {} ) ParameterMatch = DynamicModel('ParameterMatch', (), {} ) +ParameterMeta = DynamicModel('ParameterMeta', (), {} ) ParameterMetadata = DynamicModel('ParameterMetadata', (), {} ) Params = DynamicModel('Params', (), {} ) ParamsEnum = DynamicModel('ParamsEnum', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 24eccd3..8524eef 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -292,6 +292,7 @@ class LinkNameException(Exception): from cyperf.models.param_type import ParamType from cyperf.models.parameter import Parameter from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.parameter_metadata import ParameterMetadata from cyperf.models.params import Params from cyperf.models.params_enum import ParamsEnum diff --git a/cyperf/models/action_input.py b/cyperf/models/action_input.py index 70c9016..176e258 100644 --- a/cyperf/models/action_input.py +++ b/cyperf/models/action_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -32,7 +32,7 @@ class ActionInput(BaseModel): """ # noqa: E501 captures: Optional[List[CaptureInput]] = Field(default=None, alias="Captures") name: Optional[StrictStr] = Field(default=None, alias="Name") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["Captures", "Name", "Parameters"] model_config = ConfigDict( @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/action_metadata.py b/cyperf/models/action_metadata.py index ea4cb22..78dab27 100644 --- a/cyperf/models/action_metadata.py +++ b/cyperf/models/action_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow import AppFlow -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -34,7 +34,7 @@ class ActionMetadata(BaseModel): flows: Optional[List[AppFlow]] = Field(default=None, alias="Flows") index: Optional[StrictInt] = Field(default=None, alias="Index") name: Optional[StrictStr] = Field(default=None, alias="Name") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["FlowIndex", "Flows", "Index", "Name", "Parameters"] model_config = ConfigDict( @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Flows": [AppFlow.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None, "Index": obj.get("Index"), "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/add_input.py b/cyperf/models/add_input.py index d70090e..63473ba 100644 --- a/cyperf/models/add_input.py +++ b/cyperf/models/add_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -35,7 +35,7 @@ class AddInput(BaseModel): captures: Optional[List[CaptureInput]] = Field(default=None, alias="Captures") exchange_index_insert_at: Optional[StrictInt] = Field(default=None, alias="ExchangeIndexInsertAt") flow_index_insert_at: Optional[StrictInt] = Field(default=None, alias="FlowIndexInsertAt") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") type: Optional[StrictStr] = Field(default=None, alias="Type") __properties: ClassVar[List[str]] = ["ActionIndex", "ActionName", "Captures", "ExchangeIndexInsertAt", "FlowIndexInsertAt", "Parameters", "Type"] @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, "ExchangeIndexInsertAt": obj.get("ExchangeIndexInsertAt"), "FlowIndexInsertAt": obj.get("FlowIndexInsertAt"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, "Type": obj.get("Type") , "links": obj.get("links") diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index ac589a0..d48b9b2 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_metadata import ActionMetadata -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -31,7 +31,7 @@ class AppsecAppMetadata(BaseModel): AppsecAppMetadata """ # noqa: E501 actions_metadata: Optional[List[ActionMetadata]] = Field(default=None, alias="ActionsMetadata") - app_parameters: Optional[List[Parameter]] = Field(default=None, alias="AppParameters") + app_parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="AppParameters") __properties: ClassVar[List[str]] = ["ActionsMetadata", "AppParameters"] model_config = ConfigDict( @@ -102,7 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionsMetadata": [ActionMetadata.from_dict(_item) for _item in obj["ActionsMetadata"]] if obj.get("ActionsMetadata") is not None else None, - "AppParameters": [Parameter.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None + "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index b9d51a4..0336667 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_input import ActionInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -34,7 +34,7 @@ class CreateAppOperation(BaseModel): app_name: Optional[StrictStr] = Field(default=None, alias="AppName") app_type: Optional[StrictStr] = Field(default=None, alias="AppType") description: Optional[StrictStr] = Field(default=None, alias="Description") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["Actions", "AppName", "AppType", "Description", "Parameters"] model_config = ConfigDict( @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "AppName": obj.get("AppName"), "AppType": obj.get("AppType"), "Description": obj.get("Description"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/edit_action_input.py b/cyperf/models/edit_action_input.py index 2366de1..ce06678 100644 --- a/cyperf/models/edit_action_input.py +++ b/cyperf/models/edit_action_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class EditActionInput(BaseModel): EditActionInput """ # noqa: E501 action_index: Optional[StrictInt] = Field(default=None, alias="ActionIndex") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["ActionIndex", "Parameters"] model_config = ConfigDict( @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionIndex": obj.get("ActionIndex"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 9d73af5..6609901 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -23,7 +23,7 @@ from cyperf.models.add_input import AddInput from cyperf.models.delete_input import DeleteInput from cyperf.models.edit_action_input import EditActionInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.rename_input import RenameInput from cyperf.models.reorder_action_input import ReorderActionInput from cyperf.models.reorder_exchanges_input import ReorderExchangesInput @@ -39,7 +39,7 @@ class EditAppOperation(BaseModel): app_description: Optional[StrictStr] = Field(default=None, alias="AppDescription") app_id: Optional[StrictStr] = Field(default=None, alias="AppId") app_name: Optional[StrictStr] = Field(default=None, alias="AppName") - app_parameters: Optional[List[Parameter]] = Field(default=None, alias="AppParameters") + app_parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="AppParameters") delete_inputs: Optional[List[DeleteInput]] = Field(default=None, alias="DeleteInputs") edit_action_inputs: Optional[List[EditActionInput]] = Field(default=None, alias="EditActionInputs") rename_inputs: Optional[List[RenameInput]] = Field(default=None, alias="RenameInputs") @@ -153,7 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "AppDescription": obj.get("AppDescription"), "AppId": obj.get("AppId"), "AppName": obj.get("AppName"), - "AppParameters": [Parameter.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, + "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, "DeleteInputs": [DeleteInput.from_dict(_item) for _item in obj["DeleteInputs"]] if obj.get("DeleteInputs") is not None else None, "EditActionInputs": [EditActionInput.from_dict(_item) for _item in obj["EditActionInputs"]] if obj.get("EditActionInputs") is not None else None, "RenameInputs": [RenameInput.from_dict(_item) for _item in obj["RenameInputs"]] if obj.get("RenameInputs") is not None else None, diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index 3540950..a30f21b 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -20,7 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.api_link import APILink +from cyperf.models.parameter_metadata import ParameterMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,12 +30,19 @@ class Parameter(BaseModel): """ Parameter """ # noqa: E501 - matches: Optional[List[ParameterMatch]] = Field(default=None, alias="Matches") - name: Optional[StrictStr] = Field(default=None, alias="Name") + default_array_elements: Optional[List[Dict[str, StrictStr]]] = Field(default=None, description="The default values of the parameter", alias="DefaultArrayElements") + default_source: Optional[StrictStr] = Field(default=None, description="The default source of the parameter", alias="DefaultSource") + default_value: Optional[StrictStr] = Field(default=None, description="The default value of the parameter", alias="DefaultValue") + element_type: Optional[StrictStr] = Field(default=None, description="The type of elements in the values array", alias="ElementType") + metadata: Optional[ParameterMetadata] = Field(default=None, alias="Metadata") + sources: Optional[List[StrictStr]] = Field(default=None, description="The sources of the parameter", alias="Sources") + type: Optional[StrictStr] = Field(default=None, description="The type of the parameter", alias="Type") var_field: Optional[StrictStr] = Field(default=None, description="The name of the ES document field", alias="field") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the parameter") + links: Optional[List[APILink]] = None operator: Optional[StrictStr] = Field(default=None, description="The operator that the parameter supports") query_param: Optional[StrictStr] = Field(default=None, description="The corresponding query param", alias="queryParam") - __properties: ClassVar[List[str]] = ["Matches", "Name", "field", "operator", "queryParam"] + __properties: ClassVar[List[str]] = ["DefaultArrayElements", "DefaultSource", "DefaultValue", "ElementType", "Metadata", "Sources", "Type", "field", "id", "links", "operator", "queryParam"] model_config = ConfigDict( populate_by_name=True, @@ -66,8 +74,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "id", ]) _dict = self.model_dump( @@ -75,13 +85,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['Metadata'] = self.metadata.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] - if self.matches: - for _item in self.matches: + if self.links: + for _item in self.links: if _item: _items.append(_item.to_dict()) - _dict['Matches'] = _items + _dict['links'] = _items return _dict @classmethod @@ -96,9 +109,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, - "Name": obj.get("Name"), + "DefaultArrayElements": obj.get("DefaultArrayElements"), + "DefaultSource": obj.get("DefaultSource"), + "DefaultValue": obj.get("DefaultValue"), + "ElementType": obj.get("ElementType"), + "Metadata": ParameterMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, + "Sources": obj.get("Sources"), + "Type": obj.get("Type"), "field": obj.get("field"), + "id": obj.get("id"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "operator": obj.get("operator"), "queryParam": obj.get("queryParam") , diff --git a/cyperf/models/parameter_meta.py b/cyperf/models/parameter_meta.py new file mode 100644 index 0000000..51df58f --- /dev/null +++ b/cyperf/models/parameter_meta.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.parameter_match import ParameterMatch +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ParameterMeta(BaseModel): + """ + ParameterMeta + """ # noqa: E501 + matches: Optional[List[ParameterMatch]] = Field(default=None, alias="Matches") + name: Optional[StrictStr] = Field(default=None, alias="Name") + __properties: ClassVar[List[str]] = ["Matches", "Name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ParameterMeta from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + _items = [] + if self.matches: + for _item in self.matches: + if _item: + _items.append(_item.to_dict()) + _dict['Matches'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ParameterMeta from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, + "Name": obj.get("Name") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/ActionInput.md b/docs/ActionInput.md index 76b49cd..a7971a5 100644 --- a/docs/ActionInput.md +++ b/docs/ActionInput.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **captures** | [**List[CaptureInput]**](CaptureInput.md) | | [optional] **name** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/ActionMetadata.md b/docs/ActionMetadata.md index c5d49a2..a4fb2d2 100644 --- a/docs/ActionMetadata.md +++ b/docs/ActionMetadata.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **flows** | [**List[AppFlow]**](AppFlow.md) | | [optional] **index** | **int** | | [optional] **name** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/AddInput.md b/docs/AddInput.md index 4158602..da45384 100644 --- a/docs/AddInput.md +++ b/docs/AddInput.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **captures** | [**List[CaptureInput]**](CaptureInput.md) | | [optional] **exchange_index_insert_at** | **int** | | [optional] **flow_index_insert_at** | **int** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] **type** | **str** | | [optional] ## Example diff --git a/docs/AppsecAppMetadata.md b/docs/AppsecAppMetadata.md index 744f25a..c98596e 100644 --- a/docs/AppsecAppMetadata.md +++ b/docs/AppsecAppMetadata.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions_metadata** | [**List[ActionMetadata]**](ActionMetadata.md) | | [optional] -**app_parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**app_parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/CreateAppOperation.md b/docs/CreateAppOperation.md index 549b210..f4f0b30 100644 --- a/docs/CreateAppOperation.md +++ b/docs/CreateAppOperation.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **app_name** | **str** | | [optional] **app_type** | **str** | | [optional] **description** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/EditActionInput.md b/docs/EditActionInput.md index d9139ea..45cefc8 100644 --- a/docs/EditActionInput.md +++ b/docs/EditActionInput.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action_index** | **int** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/EditAppOperation.md b/docs/EditAppOperation.md index 0906600..4f57f8c 100644 --- a/docs/EditAppOperation.md +++ b/docs/EditAppOperation.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **app_description** | **str** | | [optional] **app_id** | **str** | | [optional] **app_name** | **str** | | [optional] -**app_parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**app_parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] **delete_inputs** | [**List[DeleteInput]**](DeleteInput.md) | | [optional] **edit_action_inputs** | [**List[EditActionInput]**](EditActionInput.md) | | [optional] **rename_inputs** | [**List[RenameInput]**](RenameInput.md) | | [optional] diff --git a/docs/IPNetwork.md b/docs/IPNetwork.md index dc57edb..580d099 100644 --- a/docs/IPNetwork.md +++ b/docs/IPNetwork.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **dns_resolver** | [**DNSResolver**](DNSResolver.md) | | [optional] **dns_server** | [**DNSServer**](DNSServer.md) | The DNS Server configuration for Network Segment | [optional] **dut_connections** | **List[str]** | The connected DUT network segments. | [optional] -**emulated_router** | **object** | | [optional] -**eth_range** | **object** | | [optional] +**emulated_router** | [**EmulatedRouter**](EmulatedRouter.md) | | [optional] +**eth_range** | [**EthRange**](EthRange.md) | | [optional] **ip_ranges** | [**List[IPRange]**](IPRange.md) | | [optional] **ip_sec_stacks** | [**List[IPSecStack]**](IPSecStack.md) | | [optional] **mac_dtls_stacks** | [**List[MacDtlsStack]**](MacDtlsStack.md) | | [optional] diff --git a/docs/Parameter.md b/docs/Parameter.md index 4484128..0da9abe 100644 --- a/docs/Parameter.md +++ b/docs/Parameter.md @@ -5,9 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**matches** | [**List[ParameterMatch]**](ParameterMatch.md) | | [optional] -**name** | **str** | | [optional] +**default_array_elements** | **List[Dict[str, str]]** | The default values of the parameter | [optional] +**default_source** | **str** | The default source of the parameter | [optional] +**default_value** | **str** | The default value of the parameter | [optional] +**element_type** | **str** | The type of elements in the values array | [optional] +**metadata** | [**ParameterMetadata**](ParameterMetadata.md) | | [optional] +**sources** | **List[str]** | The sources of the parameter | [optional] +**type** | **str** | The type of the parameter | [optional] **var_field** | **str** | The name of the ES document field | [optional] +**id** | **str** | The unique identifier of the parameter | [optional] [readonly] +**links** | [**List[APILink]**](APILink.md) | | [optional] **operator** | **str** | The operator that the parameter supports | [optional] **query_param** | **str** | The corresponding query param | [optional] diff --git a/docs/ParameterMeta.md b/docs/ParameterMeta.md new file mode 100644 index 0000000..cbb043c --- /dev/null +++ b/docs/ParameterMeta.md @@ -0,0 +1,30 @@ +# ParameterMeta + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matches** | [**List[ParameterMatch]**](ParameterMatch.md) | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from cyperf.models.parameter_meta import ParameterMeta + +# TODO update the JSON string below +json = "{}" +# create an instance of ParameterMeta from a JSON string +parameter_meta_instance = ParameterMeta.from_json(json) +# print the JSON string representation of the object +print(ParameterMeta.to_json()) + +# convert the object into a dict +parameter_meta_dict = parameter_meta_instance.to_dict() +# create an instance of ParameterMeta from a dict +parameter_meta_from_dict = ParameterMeta.from_dict(parameter_meta_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/test/test_action_input.py b/test/test_action_input.py index e29a19c..cceb7d6 100644 --- a/test/test_action_input.py +++ b/test/test_action_input.py @@ -49,7 +49,7 @@ def make_instance(self, include_optional) -> ActionInput: ], name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -61,10 +61,7 @@ def make_instance(self, include_optional) -> ActionInput: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py index 752771c..4352fde 100644 --- a/test/test_action_metadata.py +++ b/test/test_action_metadata.py @@ -115,7 +115,7 @@ def make_instance(self, include_optional) -> ActionMetadata: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -127,10 +127,7 @@ def make_instance(self, include_optional) -> ActionMetadata: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_add_input.py b/test/test_add_input.py index e00bf60..2da2f78 100644 --- a/test/test_add_input.py +++ b/test/test_add_input.py @@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> AddInput: exchange_index_insert_at = 56, flow_index_insert_at = 56, parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -64,10 +64,7 @@ def make_instance(self, include_optional) -> AddInput: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], type = '' ) diff --git a/test/test_application_type.py b/test/test_application_type.py index 14b2058..05249b8 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -85,19 +85,29 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -219,19 +229,87 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -285,19 +363,29 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index f97a9dc..4a2e261 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -123,7 +123,7 @@ def make_instance(self, include_optional) -> AppsecApp: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -135,18 +135,12 @@ def make_instance(self, include_optional) -> AppsecApp: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_parameters = [ - cyperf.models.parameter.Parameter( - name = '', - field = '', - operator = '', - query_param = '', ) + cyperf.models.parameter_meta.ParameterMeta( + name = '', ) ], ), id = '', last_modified = 56, diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index 493d584..c1af2a6 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -117,7 +117,7 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -129,14 +129,11 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -148,10 +145,7 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py index 51c9aa1..1db12f8 100644 --- a/test/test_auth_profile.py +++ b/test/test_auth_profile.py @@ -113,19 +113,87 @@ def make_instance(self, include_optional) -> AuthProfile: sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_command.py b/test/test_command.py index 562af7c..a4fabc5 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -83,19 +83,87 @@ def make_instance(self, include_optional) -> Command: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_create_app_operation.py b/test/test_create_app_operation.py index 4e52551..4d07f50 100644 --- a/test/test_create_app_operation.py +++ b/test/test_create_app_operation.py @@ -51,7 +51,7 @@ def make_instance(self, include_optional) -> CreateAppOperation: ], name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -63,17 +63,14 @@ def make_instance(self, include_optional) -> CreateAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_name = '', app_type = '', description = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -85,10 +82,7 @@ def make_instance(self, include_optional) -> CreateAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_edit_action_input.py b/test/test_edit_action_input.py index 1e6d2d7..93f8415 100644 --- a/test/test_edit_action_input.py +++ b/test/test_edit_action_input.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> EditActionInput: return EditActionInput( action_index = 56, parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -50,10 +50,7 @@ def make_instance(self, include_optional) -> EditActionInput: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_edit_app_operation.py b/test/test_edit_app_operation.py index fdf3510..ee70f2c 100644 --- a/test/test_edit_app_operation.py +++ b/test/test_edit_app_operation.py @@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> EditAppOperation: exchange_index_insert_at = 56, flow_index_insert_at = 56, parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -66,10 +66,7 @@ def make_instance(self, include_optional) -> EditAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], type = '', ) ], @@ -77,7 +74,7 @@ def make_instance(self, include_optional) -> EditAppOperation: app_id = '', app_name = '', app_parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -89,10 +86,7 @@ def make_instance(self, include_optional) -> EditAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], delete_inputs = [ cyperf.models.delete_input.DeleteInput( @@ -105,7 +99,7 @@ def make_instance(self, include_optional) -> EditAppOperation: cyperf.models.edit_action_input.EditActionInput( action_index = 56, parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -117,10 +111,7 @@ def make_instance(self, include_optional) -> EditAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], rename_inputs = [ diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index 56ec99c..79f2f14 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -87,19 +87,30 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -179,8 +190,12 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], @@ -199,16 +214,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) + links = , ) ], total_count = 56 ) diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index e8f5923..baae382 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -87,19 +87,30 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -179,8 +190,12 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], @@ -199,16 +214,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) + links = , ) ], total_count = 56 ) diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index d1a439f..639dafc 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -125,7 +125,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -137,18 +137,12 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_parameters = [ - cyperf.models.parameter.Parameter( - name = '', - field = '', - operator = '', - query_param = '', ) + cyperf.models.parameter_meta.ParameterMeta( + name = '', ) ], ), id = '', last_modified = 56, diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index 5645b95..7620947 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -125,7 +125,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -137,18 +137,12 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_parameters = [ - cyperf.models.parameter.Parameter( - name = '', - field = '', - operator = '', - query_param = '', ) + cyperf.models.parameter_meta.ParameterMeta( + name = '', ) ], ), id = '', last_modified = 56, diff --git a/test/test_get_resources_auth_profiles200_response.py b/test/test_get_resources_auth_profiles200_response.py index e9ee5cc..96f8b17 100644 --- a/test/test_get_resources_auth_profiles200_response.py +++ b/test/test_get_resources_auth_profiles200_response.py @@ -105,19 +105,20 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', operator = '', query_param = '', ) ], diff --git a/test/test_get_resources_auth_profiles200_response_one_of.py b/test/test_get_resources_auth_profiles200_response_one_of.py index 3fb465c..7eadb17 100644 --- a/test/test_get_resources_auth_profiles200_response_one_of.py +++ b/test/test_get_resources_auth_profiles200_response_one_of.py @@ -105,19 +105,20 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', operator = '', query_param = '', ) ], diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py index 29d3660..97be044 100644 --- a/test/test_get_result_stats200_response.py +++ b/test/test_get_result_stats200_response.py @@ -40,19 +40,87 @@ def make_instance(self, include_optional) -> GetResultStats200Response: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py index d11f673..7dbc345 100644 --- a/test/test_get_result_stats200_response_one_of.py +++ b/test/test_get_result_stats200_response_one_of.py @@ -40,19 +40,87 @@ def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_ip_network.py b/test/test_ip_network.py index 3d4a7a9..a59542c 100644 --- a/test/test_ip_network.py +++ b/test/test_ip_network.py @@ -66,8 +66,48 @@ def make_instance(self, include_optional) -> IPNetwork: dut_connections = [ '' ], - emulated_router = None, - eth_range = None, + emulated_router = cyperf.models.emulated_router.EmulatedRouter( + emulated_router_ranges = [ + null + ], + enabled = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + eth_range = cyperf.models.eth_range.EthRange( + count = 56, + mac_auto = True, + mac_incr = '2E-B0-08-29:0c:01', + mac_start = '2E-B0-08-29:0c:01', + one_mac_per_ip = True, + static_arp_table = [ + cyperf.models.static_arp_entry.StaticARPEntry( + count = 56, + remote_ip = '::02:84:9:0cc0:F:CCf', + remote_ip_incr = '::02:84:9:0cc0:F:CCf', + remote_mac = '2E-B0-08-29:0c:01', + remote_mac_incr = '2E-B0-08-29:0c:01', + static_arp_entry_name = 'YBuLd', + id = '', ) + ], + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + max_count_per_agent = 56, ), ip_ranges = [ cyperf.models.ip_range.IPRange( automatic_ip_type = null, diff --git a/test/test_parameter.py b/test/test_parameter.py index 851ed72..5e4425c 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -36,19 +36,87 @@ def make_instance(self, include_optional) -> Parameter: model = Parameter() if include_optional: return Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', var_field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '' ) diff --git a/test/test_parameter_meta.py b/test/test_parameter_meta.py new file mode 100644 index 0000000..1052ca1 --- /dev/null +++ b/test/test_parameter_meta.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.parameter_meta import ParameterMeta + +class TestParameterMeta(unittest.TestCase): + """ParameterMeta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ParameterMeta: + """Test ParameterMeta + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ParameterMeta` + """ + model = ParameterMeta() + if include_optional: + return ParameterMeta( + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) + ], + name = '' + ) + else: + return ParameterMeta( + ) + """ + + def testParameterMeta(self): + """Test ParameterMeta""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_stats_result.py b/test/test_stats_result.py index f1c2522..0f8c171 100644 --- a/test/test_stats_result.py +++ b/test/test_stats_result.py @@ -38,19 +38,87 @@ def make_instance(self, include_optional) -> StatsResult: return StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], From 55180a6a31bc6c9b0d13305fc7ad680499266bac Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 24 Sep 2025 01:53:20 -0600 Subject: [PATCH 05/20] Pull request #40: ISGAPPSEC2-35640 Accessing client_stream_profile settings in UDP stream app results in exception Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-35640-accessing-client_stream_profile-settings-in-udp-stream-app-results-in to main Squashed commit of the following: commit 83fded9a32a9c5961ba2c2a8c73b181ac0fd0c1d Author: iustmitu Date: Tue Sep 23 16:29:23 2025 +0300 changed LESS_THAN_NIL_GREATER_THAN -> NULL attribute --- cyperf/models/stream_payload_type.py | 2 +- docs/StreamPayloadType.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cyperf/models/stream_payload_type.py b/cyperf/models/stream_payload_type.py index 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/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) From 3e0ae19d5a2969bfbca71fb5bdaadad993d5543f Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 1 Oct 2025 02:27:23 -0600 Subject: [PATCH 06/20] Pull request #41: ISGAPPSEC2 35734 licensingapi.get counted feature stats always returns none wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-35734-licensingapi.get_counted_feature_stats-always-returns-none to main Squashed commit of the following: commit 908e267837666c2fbc5ec595219d304869ce1e9c Author: iustmitu Date: Fri Sep 26 15:31:03 2025 +0300 removed async-operation-response commit 074dd5261338c53d344ac594f6709585e2563527 Author: iustmitu Date: Fri Sep 26 14:56:28 2025 +0300 removed AsyncOperationResponse commit 0d649c03ee7a398af77a5c7430eb1d0ff9f99dbe Author: iustmitu Date: Thu Sep 25 14:12:34 2025 +0300 regenerated wrapper with mdw's AsyncContext and eula --- .openapi-generator/FILES | 1 - README.md | 1 - cyperf/__init__.py | 1 - cyperf/api/diagnostics_api.py | 22 ++-- cyperf/api/licensing_api.py | 125 +++++++++++----------- cyperf/dynamic_models/__init__.py | 1 - cyperf/models/__init__.py | 1 - cyperf/models/async_operation_response.py | 105 ------------------ cyperf/models/eula_details.py | 14 +-- cyperf/models/eula_summary.py | 8 +- docs/AsyncOperationResponse.md | 36 ------- docs/DiagnosticsApi.md | 12 +-- docs/EulaDetails.md | 4 +- docs/EulaSummary.md | 2 +- docs/LicensingApi.md | 92 ++++++++-------- test/test_async_operation_response.py | 66 ------------ test/test_eula_details.py | 6 +- test/test_eula_summary.py | 4 +- 18 files changed, 143 insertions(+), 358 deletions(-) delete mode 100644 cyperf/models/async_operation_response.py delete mode 100644 docs/AsyncOperationResponse.md delete mode 100644 test/test_async_operation_response.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c80429b..fce2375 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -397,7 +397,6 @@ docs/AppsecConfig.md docs/ArchiveInfo.md docs/ArrayV2ElementMetadata.md docs/AsyncContext.md -docs/AsyncOperationResponse.md docs/Attack.md docs/AttackAction.md docs/AttackObjectivesAndTimeline.md diff --git a/README.md b/README.md index 9e73bd0..ac54eb9 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,6 @@ Class | Method | HTTP request | Description - [ArchiveInfo](docs/ArchiveInfo.md) - [ArrayV2ElementMetadata](docs/ArrayV2ElementMetadata.md) - [AsyncContext](docs/AsyncContext.md) - - [AsyncOperationResponse](docs/AsyncOperationResponse.md) - [Attack](docs/Attack.md) - [AttackAction](docs/AttackAction.md) - [AttackMetadata](docs/AttackMetadata.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index f7ad52c..a82dbbf 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -93,7 +93,6 @@ from cyperf.models.archive_info import ArchiveInfo from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata from cyperf.models.async_context import AsyncContext -from cyperf.models.async_operation_response import AsyncOperationResponse from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata diff --git a/cyperf/api/diagnostics_api.py b/cyperf/api/diagnostics_api.py index 9351718..5a59367 100644 --- a/cyperf/api/diagnostics_api.py +++ b/cyperf/api/diagnostics_api.py @@ -21,7 +21,7 @@ from typing import List, Optional, Union from typing_extensions import Annotated from cyperf.models.archive_info import ArchiveInfo -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.diagnostic_component import DiagnosticComponent from cyperf.models.diagnostic_component_context import DiagnosticComponentContext @@ -1026,7 +1026,7 @@ def api_v2_diagnostics_operations_export_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """api_v2_diagnostics_operations_export_id_get Get the state of an ongoing operation. @@ -1064,7 +1064,7 @@ def api_v2_diagnostics_operations_export_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1090,7 +1090,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """api_v2_diagnostics_operations_export_id_get Get the state of an ongoing operation. @@ -1128,7 +1128,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1192,7 +1192,7 @@ def api_v2_diagnostics_operations_export_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1536,7 +1536,7 @@ def api_v2_diagnostics_operations_export_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """api_v2_diagnostics_operations_export_post Start the diagnostic export operation. @@ -1574,7 +1574,7 @@ def api_v2_diagnostics_operations_export_post( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1600,7 +1600,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """api_v2_diagnostics_operations_export_post Start the diagnostic export operation. @@ -1638,7 +1638,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1702,7 +1702,7 @@ def api_v2_diagnostics_operations_export_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( diff --git a/cyperf/api/licensing_api.py b/cyperf/api/licensing_api.py index 6206669..ba1a2c5 100644 --- a/cyperf/api/licensing_api.py +++ b/cyperf/api/licensing_api.py @@ -22,7 +22,7 @@ from typing_extensions import Annotated from cyperf.models.activation_code_list_request import ActivationCodeListRequest from cyperf.models.activation_code_request import ActivationCodeRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.entitlement_code_request import EntitlementCodeRequest from cyperf.models.feature_reservation_reserve import FeatureReservationReserve from cyperf.models.fulfillment_request import FulfillmentRequest @@ -67,7 +67,7 @@ def activate_licenses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Performs an online request to KSM and activates the requested licenses. @@ -104,7 +104,7 @@ def activate_licenses( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -130,7 +130,7 @@ def activate_licenses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Performs an online request to KSM and activates the requested licenses. @@ -167,7 +167,7 @@ def activate_licenses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -230,7 +230,7 @@ def activate_licenses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -333,7 +333,7 @@ def deactivate_licenses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Performs an online request to KSM to deactivate the requested licenses. @@ -370,7 +370,7 @@ def deactivate_licenses( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -396,7 +396,7 @@ def deactivate_licenses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Performs an online request to KSM to deactivate the requested licenses. @@ -433,7 +433,7 @@ def deactivate_licenses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -496,7 +496,7 @@ def deactivate_licenses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -837,7 +837,7 @@ def get_activation_code_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the activation code info from KSM. @@ -874,7 +874,7 @@ def get_activation_code_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -900,7 +900,7 @@ def get_activation_code_info_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the activation code info from KSM. @@ -937,7 +937,7 @@ def get_activation_code_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1000,7 +1000,7 @@ def get_activation_code_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1102,7 +1102,7 @@ def get_activation_code_info_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the activation code info list from KSM. @@ -1139,7 +1139,7 @@ def get_activation_code_info_list( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1165,7 +1165,7 @@ def get_activation_code_info_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the activation code info list from KSM. @@ -1202,7 +1202,7 @@ def get_activation_code_info_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1265,7 +1265,7 @@ def get_activation_code_info_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1635,7 +1635,7 @@ def get_async_operation_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Returns the status of an ongoing async operation. @@ -1675,7 +1675,7 @@ def get_async_operation_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1702,7 +1702,7 @@ def get_async_operation_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Returns the status of an ongoing async operation. @@ -1742,7 +1742,7 @@ def get_async_operation_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1809,7 +1809,7 @@ def get_async_operation_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1900,7 +1900,7 @@ def get_counted_feature_stats( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the counted feature stats. @@ -1934,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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( @@ -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( diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index f37c97f..215a909 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -59,7 +59,6 @@ ArchiveInfo = DynamicModel('ArchiveInfo', (), {} ) ArrayV2ElementMetadata = DynamicModel('ArrayV2ElementMetadata', (), {} ) AsyncContext = DynamicModel('AsyncContext', (), {} ) -AsyncOperationResponse = DynamicModel('AsyncOperationResponse', (), {} ) Attack = DynamicModel('Attack', (), {} ) AttackAction = DynamicModel('AttackAction', (), {} ) AttackMetadata = DynamicModel('AttackMetadata', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 8524eef..078454c 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -59,7 +59,6 @@ class LinkNameException(Exception): from cyperf.models.archive_info import ArchiveInfo from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata from cyperf.models.async_context import AsyncContext -from cyperf.models.async_operation_response import AsyncOperationResponse from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata diff --git a/cyperf/models/async_operation_response.py b/cyperf/models/async_operation_response.py deleted file mode 100644 index 32351b5..0000000 --- a/cyperf/models/async_operation_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field, PrivateAttr - -class AsyncOperationResponse(BaseModel): - """ - The POST response for an async operation. - """ # noqa: E501 - id: StrictInt = Field(description="The subresource id of the status.") - message: StrictStr = Field(description="A message from the operation (optional).") - progress: StrictInt = Field(description="The progress of the operation (percent).") - result_url: 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"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AsyncOperationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AsyncOperationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "id": obj.get("id"), - "message": obj.get("message"), - "progress": obj.get("progress"), - "resultUrl": obj.get("resultUrl"), - "state": obj.get("state"), - "type": obj.get("type"), - "url": obj.get("url") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/eula_details.py b/cyperf/models/eula_details.py index acf5afb..93c4f29 100644 --- a/cyperf/models/eula_details.py +++ b/cyperf/models/eula_details.py @@ -28,11 +28,11 @@ class EulaDetails(BaseModel): """ EulaDetails """ # noqa: E501 - id: Optional[StrictStr] = None accepted: StrictBool - text: Optional[StrictStr] = None + id: Optional[StrictStr] = None html: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "accepted", "text", "html"] + text: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["accepted", "id", "html", "text"] model_config = ConfigDict( populate_by_name=True, @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "id": obj.get("id"), - "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, - "text": obj.get("text"), - "html": obj.get("html") + "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, + "id": obj.get("id"), + "html": obj.get("html"), + "text": obj.get("text") , "links": obj.get("links") }) diff --git a/cyperf/models/eula_summary.py b/cyperf/models/eula_summary.py index f217a69..61648f1 100644 --- a/cyperf/models/eula_summary.py +++ b/cyperf/models/eula_summary.py @@ -28,9 +28,9 @@ class EulaSummary(BaseModel): """ EulaSummary """ # noqa: E501 - id: Optional[StrictStr] = None accepted: StrictBool - __properties: ClassVar[List[str]] = ["id", "accepted"] + id: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["accepted", "id"] model_config = ConfigDict( populate_by_name=True, @@ -85,8 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "id": obj.get("id"), - "accepted": obj.get("accepted") if obj.get("accepted") is not None else False + "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, + "id": obj.get("id") , "links": obj.get("links") }) diff --git a/docs/AsyncOperationResponse.md b/docs/AsyncOperationResponse.md deleted file mode 100644 index d563d94..0000000 --- a/docs/AsyncOperationResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# AsyncOperationResponse - -The POST response for an async operation. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | The subresource id of the status. | -**message** | **str** | A message from the operation (optional). | -**progress** | **int** | The progress of the operation (percent). | -**result_url** | **str** | The URL where the archive is available. | -**state** | **str** | The state of the operation. | -**type** | **str** | The name of the operation. | -**url** | **str** | The status URI of the operation. | - -## Example - -```python -from cyperf.models.async_operation_response import AsyncOperationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AsyncOperationResponse from a JSON string -async_operation_response_instance = AsyncOperationResponse.from_json(json) -# print the JSON string representation of the object -print(AsyncOperationResponse.to_json()) - -# convert the object into a dict -async_operation_response_dict = async_operation_response_instance.to_dict() -# create an instance of AsyncOperationResponse from a dict -async_operation_response_from_dict = AsyncOperationResponse.from_dict(async_operation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DiagnosticsApi.md b/docs/DiagnosticsApi.md index 879c205..7c591fd 100644 --- a/docs/DiagnosticsApi.md +++ b/docs/DiagnosticsApi.md @@ -306,7 +306,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_v2_diagnostics_operations_export_id_get** -> AsyncOperationResponse api_v2_diagnostics_operations_export_id_get(id) +> AsyncContext api_v2_diagnostics_operations_export_id_get(id) @@ -319,7 +319,7 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -363,7 +363,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -461,7 +461,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_v2_diagnostics_operations_export_post** -> AsyncOperationResponse api_v2_diagnostics_operations_export_post(diagnostic_component_context=diagnostic_component_context) +> AsyncContext api_v2_diagnostics_operations_export_post(diagnostic_component_context=diagnostic_component_context) @@ -474,7 +474,7 @@ Start the diagnostic export operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.diagnostic_component_context import DiagnosticComponentContext from cyperf.rest import ApiException from pprint import pprint @@ -519,7 +519,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization diff --git a/docs/EulaDetails.md b/docs/EulaDetails.md index d5a9ab9..ede2e91 100644 --- a/docs/EulaDetails.md +++ b/docs/EulaDetails.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] **accepted** | **bool** | | [default to False] -**text** | **str** | | [optional] +**id** | **str** | | [optional] **html** | **str** | | [optional] +**text** | **str** | | [optional] ## Example diff --git a/docs/EulaSummary.md b/docs/EulaSummary.md index f9f76d7..e4aff1d 100644 --- a/docs/EulaSummary.md +++ b/docs/EulaSummary.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] **accepted** | **bool** | | [default to False] +**id** | **str** | | [optional] ## Example diff --git a/docs/LicensingApi.md b/docs/LicensingApi.md index 306c35e..fbdb093 100644 --- a/docs/LicensingApi.md +++ b/docs/LicensingApi.md @@ -26,7 +26,7 @@ Method | HTTP request | Description # **activate_licenses** -> AsyncOperationResponse activate_licenses(fulfillment_request=fulfillment_request) +> AsyncContext activate_licenses(fulfillment_request=fulfillment_request) Performs an online request to KSM and activates the requested licenses. @@ -37,7 +37,7 @@ Performs an online request to KSM and activates the requested licenses. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.rest import ApiException from pprint import pprint @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -98,13 +98,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deactivate_licenses** -> AsyncOperationResponse deactivate_licenses(fulfillment_request=fulfillment_request) +> AsyncContext deactivate_licenses(fulfillment_request=fulfillment_request) Performs an online request to KSM to deactivate the requested licenses. @@ -115,7 +115,7 @@ Performs an online request to KSM to deactivate the requested licenses. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.rest import ApiException from pprint import pprint @@ -161,7 +161,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -176,7 +176,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -254,7 +254,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_activation_code_info** -> AsyncOperationResponse get_activation_code_info(activation_code_request=activation_code_request) +> AsyncContext get_activation_code_info(activation_code_request=activation_code_request) Retrieves the activation code info from KSM. @@ -266,7 +266,7 @@ Retrieves the activation code info from KSM. ```python import cyperf from cyperf.models.activation_code_request import ActivationCodeRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -311,7 +311,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -326,13 +326,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_activation_code_info_list** -> AsyncOperationResponse get_activation_code_info_list(activation_code_list_request=activation_code_list_request) +> AsyncContext get_activation_code_info_list(activation_code_list_request=activation_code_list_request) Retrieves the activation code info list from KSM. @@ -344,7 +344,7 @@ Retrieves the activation code info list from KSM. ```python import cyperf from cyperf.models.activation_code_list_request import ActivationCodeListRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -389,7 +389,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -404,7 +404,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -489,7 +489,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_async_operation_status** -> AsyncOperationResponse get_async_operation_status(operation_type, id) +> AsyncContext get_async_operation_status(operation_type, id) Returns the status of an ongoing async operation. @@ -500,7 +500,7 @@ Returns the status of an ongoing async operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -547,7 +547,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -568,7 +568,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_counted_feature_stats** -> AsyncOperationResponse get_counted_feature_stats() +> AsyncContext get_counted_feature_stats() Retrieves the counted feature stats. @@ -579,7 +579,7 @@ Retrieves the counted feature stats. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -620,7 +620,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -635,13 +635,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_entitlement_code_info** -> AsyncOperationResponse get_entitlement_code_info(entitlement_code_request=entitlement_code_request) +> AsyncContext get_entitlement_code_info(entitlement_code_request=entitlement_code_request) Retrieves the activations codes of the supplied entitlement code from KSM. @@ -652,7 +652,7 @@ Retrieves the activations codes of the supplied entitlement code from KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.entitlement_code_request import EntitlementCodeRequest from cyperf.rest import ApiException from pprint import pprint @@ -698,7 +698,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -713,7 +713,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1023,7 +1023,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_license_async_operation_status** -> AsyncOperationResponse get_license_async_operation_status(license_id, operation_type, id) +> AsyncContext get_license_async_operation_status(license_id, operation_type, id) Returns the status of an ongoing async operation. @@ -1034,7 +1034,7 @@ Returns the status of an ongoing async operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1083,7 +1083,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1181,7 +1181,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **remove_reservation** -> AsyncOperationResponse remove_reservation(license_id, request_body=request_body) +> AsyncContext remove_reservation(license_id, request_body=request_body) Remove previously reserved features, thus making them available for checkout by other users. @@ -1192,7 +1192,7 @@ Remove previously reserved features, thus making them available for checkout by ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1239,7 +1239,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1254,13 +1254,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occurred. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **sync_licenses** -> AsyncOperationResponse sync_licenses() +> AsyncContext sync_licenses() Synchronize local licenses with KSM. @@ -1271,7 +1271,7 @@ Synchronize local licenses with KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1312,7 +1312,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1327,13 +1327,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test_backend_connectivity** -> AsyncOperationResponse test_backend_connectivity() +> AsyncContext test_backend_connectivity() Tests connection of the license server with KSM. @@ -1344,7 +1344,7 @@ Tests connection of the license server with KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1385,7 +1385,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1400,13 +1400,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_reservation** -> AsyncOperationResponse update_reservation(license_id, feature_reservation_reserve=feature_reservation_reserve) +> AsyncContext update_reservation(license_id, feature_reservation_reserve=feature_reservation_reserve) Retain over a period of time specific counts of installed features, that can be consumed only by current user. @@ -1417,7 +1417,7 @@ Retain over a period of time specific counts of installed features, that can be ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.feature_reservation_reserve import FeatureReservationReserve from cyperf.rest import ApiException from pprint import pprint @@ -1465,7 +1465,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1480,7 +1480,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occurred. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/test/test_async_operation_response.py b/test/test_async_operation_response.py deleted file mode 100644 index f13001e..0000000 --- a/test/test_async_operation_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.async_operation_response import AsyncOperationResponse - -class TestAsyncOperationResponse(unittest.TestCase): - """AsyncOperationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AsyncOperationResponse: - """Test AsyncOperationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AsyncOperationResponse` - """ - model = AsyncOperationResponse() - if include_optional: - return AsyncOperationResponse( - id = 56, - message = '', - progress = 56, - result_url = '', - state = '', - type = '', - url = '' - ) - else: - return AsyncOperationResponse( - id = 56, - message = '', - progress = 56, - result_url = '', - state = '', - type = '', - url = '', - ) - """ - - def testAsyncOperationResponse(self): - """Test AsyncOperationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eula_details.py b/test/test_eula_details.py index a501789..d1a8c1b 100644 --- a/test/test_eula_details.py +++ b/test/test_eula_details.py @@ -36,10 +36,10 @@ def make_instance(self, include_optional) -> EulaDetails: model = EulaDetails() if include_optional: return EulaDetails( - id = '', accepted = True, - text = '', - html = '' + id = '', + html = '', + text = '' ) else: return EulaDetails( diff --git a/test/test_eula_summary.py b/test/test_eula_summary.py index 2a6214b..29bf48b 100644 --- a/test/test_eula_summary.py +++ b/test/test_eula_summary.py @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> EulaSummary: model = EulaSummary() if include_optional: return EulaSummary( - id = '', - accepted = True + accepted = True, + id = '' ) else: return EulaSummary( From 86c7223e1f3274c6e18a5b7812fdb5f4eea74f45 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 2 Oct 2025 02:52:32 -0600 Subject: [PATCH 07/20] Pull request #42: migration new integration tests Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-35526-switch-to-new-wrapper-for-integration-tests to main Squashed commit of the following: commit f6fab58b109d2ce7bd1914c5f9e42d4ce9bb409c Author: iustmitu Date: Thu Oct 2 10:45:30 2025 +0300 fix get_first_N_http_standalone_strikes commit e3babe0ca1cccb65aaf918217d4e7a6a62cb26cb Author: iustmitu Date: Wed Oct 1 11:12:48 2025 +0300 get one strike per api call commit 770cd80bd83e037e9f819b467ddb686073ab14c5 Author: iustmitu Date: Mon Sep 29 16:56:05 2025 +0300 updated wrapper utils file --- cyperf/utils.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/cyperf/utils.py b/cyperf/utils.py index e21e874..821c7ba 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -204,6 +204,28 @@ def disable_automatic_network(self, session): ip_net.ip_ranges[0].ip_auto = False ip_net.update() + def get_first_N_http_standalone_strikes(self, n): + application_api_instance = cyperf.ApplicationResourcesApi(self.api_client) + http_strikes = [] + skip = 0 + + while len(http_strikes) < n: + take = min(50, n - len(http_strikes)) + strike_batch = application_api_instance.get_resources_strikes(take=take, skip=skip).data + + for strike in strike_batch: + protocol = strike.metadata.protocol + supported_apps = strike.metadata.supported_apps + + if protocol.lower() == 'http' and supported_apps == None: + http_strikes.append(strike) + if len(http_strikes) == n: + break + + skip += take + + return http_strikes + def add_apps(self, session, appNames): # Retrieve the app from precanned Apps resource_api = cyperf.ApplicationResourcesApi(self.api_client) @@ -329,7 +351,7 @@ def format_stats_dict_as_table(self, stats_dict={}): lines = ['|'.join([f'{val:^{col_width}}' for val, col_width in zip(item, col_widths)]) for item in zip(*stats_dict.values())] return [line_delim, header, line_delim] + lines + [line_delim] - + def parse_cli_options(extra_options=[]): """Can be used to get parameters from the CLI or env vars that are broadly useful for CLI tests""" import argparse From f949df7b0bd1476363db82075584ebe931fa2167 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Fri, 14 Nov 2025 01:22:50 -0700 Subject: [PATCH 08/20] Pull request #43: ISGAPPSEC2-35886 - allow only 1 network profile and regenerated docs Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-35886-allow-only-one-network-profile to main Squashed commit of the following: commit 161dd71f76ed0bff6beebf03eb1d712bbd33d997 Author: iustmitu Date: Thu Nov 6 16:45:22 2025 +0200 regenerated wrapper and fixed sample script --- README.md | 7 + cyperf/__init__.py | 4 + cyperf/api/application_resources_api.py | 554 +++++++++++++++++- cyperf/api/test_results_api.py | 262 +++++++++ cyperf/dynamic_models/__init__.py | 4 + cyperf/models/__init__.py | 4 + cyperf/models/app_flow.py | 4 +- cyperf/models/app_flow_desc.py | 4 +- cyperf/models/chassis_info.py | 6 +- cyperf/models/file_value.py | 4 +- cyperf/models/ip_network.py | 18 +- cyperf/models/md2_tlv.py | 99 ++++ cyperf/models/secondary_objective.py | 2 +- cyperf/models/specific_objective.py | 2 +- cyperf/models/vx_lan_range.py | 190 ++++++ cyperf/models/vx_lan_stack.py | 130 ++++ cyperf/models/vx_lanid.py | 95 +++ cyperf/utils.py | 2 +- docs/AppFlow.md | 1 + docs/AppFlowDesc.md | 1 + docs/ApplicationResourcesApi.md | 153 +++++ docs/ChassisInfo.md | 2 + docs/FileValue.md | 1 + docs/IPNetwork.md | 3 + docs/Md2Tlv.md | 32 + docs/SecondaryObjective.md | 2 +- docs/SpecificObjective.md | 2 +- docs/TestResultsApi.md | 78 +++ docs/VxLANId.md | 30 + docs/VxLANRange.md | 45 ++ docs/VxLANStack.md | 35 ++ .../sample_create_save_and_export_config.py | 6 - test/test_action_input_find_param.py | 1 + test/test_action_metadata.py | 1 + test/test_agent.py | 2 + test/test_app_flow.py | 1 + test/test_app_flow_desc.py | 1 + test/test_app_flow_input_find_param.py | 1 + test/test_application_profile.py | 2 +- test/test_application_resources_api.py | 13 + test/test_appsec_app.py | 1 + test/test_appsec_app_metadata.py | 1 + test/test_capture_input_find_param.py | 1 + test/test_chassis_info.py | 2 + test/test_file_value.py | 1 + test/test_find_param_matches_operation.py | 1 + test/test_get_agents200_response.py | 2 + test/test_get_agents200_response_one_of.py | 2 + test/test_get_resources_apps200_response.py | 1 + ...t_get_resources_apps200_response_one_of.py | 1 + test/test_ip_network.py | 22 +- test/test_md2_tlv.py | 60 ++ test/test_media_file.py | 1 + test/test_objectives_and_timeline.py | 6 +- test/test_params.py | 1 + test/test_replay_capture.py | 1 + test/test_system_info.py | 2 + test/test_test_results_api.py | 7 + test/test_vx_lan_range.py | 100 ++++ test/test_vx_lan_stack.py | 166 ++++++ test/test_vx_lanid.py | 56 ++ 61 files changed, 2208 insertions(+), 31 deletions(-) create mode 100644 cyperf/models/md2_tlv.py create mode 100644 cyperf/models/vx_lan_range.py create mode 100644 cyperf/models/vx_lan_stack.py create mode 100644 cyperf/models/vx_lanid.py create mode 100644 docs/Md2Tlv.md create mode 100644 docs/VxLANId.md create mode 100644 docs/VxLANRange.md create mode 100644 docs/VxLANStack.md create mode 100644 test/test_md2_tlv.py create mode 100644 test/test_vx_lan_range.py create mode 100644 test/test_vx_lan_stack.py create mode 100644 test/test_vx_lanid.py diff --git a/README.md b/README.md index ac54eb9..3b2ee6d 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_auth_profiles**](docs/ApplicationResourcesApi.md#get_resources_auth_profiles) | **GET** /api/v2/resources/auth-profiles | *ApplicationResourcesApi* | [**get_resources_capture_by_id**](docs/ApplicationResourcesApi.md#get_resources_capture_by_id) | **GET** /api/v2/resources/captures/{captureId} | *ApplicationResourcesApi* | [**get_resources_captures**](docs/ApplicationResourcesApi.md#get_resources_captures) | **GET** /api/v2/resources/captures | +*ApplicationResourcesApi* | [**get_resources_captures_encrypted_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_captures_encrypted_upload_file_result) | **GET** /api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_captures_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_captures_upload_file_result) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_certificate_by_id**](docs/ApplicationResourcesApi.md#get_resources_certificate_by_id) | **GET** /api/v2/resources/certificates/{certificateId} | *ApplicationResourcesApi* | [**get_resources_certificate_content_file**](docs/ApplicationResourcesApi.md#get_resources_certificate_content_file) | **GET** /api/v2/resources/certificates/{certificateId}/contentFile | @@ -208,6 +209,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_user_defined_apps_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**start_resources_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | +*ApplicationResourcesApi* | [**start_resources_captures_encrypted_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_certificates_upload_file**](docs/ApplicationResourcesApi.md#start_resources_certificates_upload_file) | **POST** /api/v2/resources/certificates/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_config_export_user_defined_apps**](docs/ApplicationResourcesApi.md#start_resources_config_export_user_defined_apps) | **POST** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps | @@ -346,6 +348,7 @@ Class | Method | HTTP request | Description *TestResultsApi* | [**get_result_files**](docs/TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | *TestResultsApi* | [**get_results**](docs/TestResultsApi.md#get_results) | **GET** /api/v2/results | *TestResultsApi* | [**get_results_tags**](docs/TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | +*TestResultsApi* | [**start_result_export_events**](docs/TestResultsApi.md#start_result_export_events) | **POST** /api/v2/results/{resultId}/operations/export-events | *TestResultsApi* | [**start_result_generate_all**](docs/TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | *TestResultsApi* | [**start_result_generate_results**](docs/TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | *TestResultsApi* | [**start_result_load**](docs/TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -612,6 +615,7 @@ Class | Method | HTTP request | Description - [MacDtlsStack](docs/MacDtlsStack.md) - [MappingType](docs/MappingType.md) - [MarkedAsDeleted](docs/MarkedAsDeleted.md) + - [Md2Tlv](docs/Md2Tlv.md) - [MediaFile](docs/MediaFile.md) - [MediaTrack](docs/MediaTrack.md) - [Metadata](docs/Metadata.md) @@ -745,6 +749,9 @@ Class | Method | HTTP request | Description - [VLANRange](docs/VLANRange.md) - [ValidationMessage](docs/ValidationMessage.md) - [Version](docs/Version.md) + - [VxLANId](docs/VxLANId.md) + - [VxLANRange](docs/VxLANRange.md) + - [VxLANStack](docs/VxLANStack.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index a82dbbf..d81f674 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -289,6 +289,7 @@ from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.mapping_type import MappingType from cyperf.models.marked_as_deleted import MarkedAsDeleted +from cyperf.models.md2_tlv import Md2Tlv from cyperf.models.media_file import MediaFile from cyperf.models.media_track import MediaTrack from cyperf.models.metadata import Metadata @@ -422,3 +423,6 @@ from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version +from cyperf.models.vx_lanid import VxLANId +from cyperf.models.vx_lan_range import VxLANRange +from cyperf.models.vx_lan_stack import VxLANStack diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index da3c6ef..3643744 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -8391,6 +8391,264 @@ def _get_resources_captures_serialize( + @validate_call + def get_resources_captures_encrypted_upload_file_result( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """get_resources_captures_encrypted_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_captures_encrypted_upload_file_result_with_http_info( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """get_resources_captures_encrypted_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_captures_encrypted_upload_file_result_without_preload_content( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_captures_encrypted_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_captures_encrypted_upload_file_result_serialize( + self, + upload_file_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_resources_captures_upload_file_result( self, @@ -28012,15 +28270,25 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( - @validate_call - def start_resources_apps_export_all( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], + + + + + + + + + + + @validate_call + def start_resources_apps_export_all( + self, + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, @@ -28514,6 +28782,274 @@ def _start_resources_captures_batch_delete_serialize( + @validate_call + def start_resources_captures_encrypted_upload_file( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """start_resources_captures_encrypted_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_captures_encrypted_upload_file_with_http_info( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """start_resources_captures_encrypted_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_captures_encrypted_upload_file_without_preload_content( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_resources_captures_encrypted_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_resources_captures_encrypted_upload_file_serialize( + self, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def start_resources_captures_upload_file( self, diff --git a/cyperf/api/test_results_api.py b/cyperf/api/test_results_api.py index e6a095e..aed223e 100644 --- a/cyperf/api/test_results_api.py +++ b/cyperf/api/test_results_api.py @@ -2855,6 +2855,268 @@ def _get_results_tags_serialize( + + + + + + + + + + + + + + + @validate_call + def start_result_export_events( + self, + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_result_export_events + + Export events file. + + :param result_id: The ID of the result. (required) + :type result_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_result_export_events_serialize( + result_id=result_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_result_export_events_with_http_info( + self, + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_result_export_events + + Export events file. + + :param result_id: The ID of the result. (required) + :type result_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_result_export_events_serialize( + result_id=result_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_result_export_events_without_preload_content( + self, + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_result_export_events + + Export events file. + + :param result_id: The ID of the result. (required) + :type result_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_result_export_events_serialize( + result_id=result_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_result_export_events_serialize( + self, + result_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if result_id is not None: + _path_params['resultId'] = result_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/results/{resultId}/operations/export-events', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 215a909..b8e637d 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -255,6 +255,7 @@ MacDtlsStack = DynamicModel('MacDtlsStack', (), {} ) MappingType = DynamicModel('MappingType', (), {} ) MarkedAsDeleted = DynamicModel('MarkedAsDeleted', (), {} ) +Md2Tlv = DynamicModel('Md2Tlv', (), {} ) MediaFile = DynamicModel('MediaFile', (), {} ) MediaTrack = DynamicModel('MediaTrack', (), {} ) Metadata = DynamicModel('Metadata', (), {} ) @@ -388,3 +389,6 @@ VLANRange = DynamicModel('VLANRange', (), {} ) ValidationMessage = DynamicModel('ValidationMessage', (), {} ) Version = DynamicModel('Version', (), {} ) +VxLANId = DynamicModel('VxLANId', (), {} ) +VxLANRange = DynamicModel('VxLANRange', (), {} ) +VxLANStack = DynamicModel('VxLANStack', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 078454c..254e219 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -255,6 +255,7 @@ class LinkNameException(Exception): from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.mapping_type import MappingType from cyperf.models.marked_as_deleted import MarkedAsDeleted +from cyperf.models.md2_tlv import Md2Tlv from cyperf.models.media_file import MediaFile from cyperf.models.media_track import MediaTrack from cyperf.models.metadata import Metadata @@ -388,3 +389,6 @@ class LinkNameException(Exception): from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version +from cyperf.models.vx_lanid import VxLANId +from cyperf.models.vx_lan_range import VxLANRange +from cyperf.models.vx_lan_stack import VxLANStack diff --git a/cyperf/models/app_flow.py b/cyperf/models/app_flow.py index 0fa6de8..8f33d2c 100644 --- a/cyperf/models/app_flow.py +++ b/cyperf/models/app_flow.py @@ -34,12 +34,13 @@ class AppFlow(BaseModel): dst_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="dstAddress") dst_port: Optional[StrictInt] = Field(default=None, alias="dstPort") exchanges: Optional[List[AppExchange]] = Field(default=None, description="The list of exchanges") + http_host: Optional[StrictStr] = Field(default=None, alias="httpHost") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None src_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="srcAddress") src_port: Optional[StrictInt] = Field(default=None, alias="srcPort") transport_type: Optional[StrictStr] = Field(default=None, alias="transportType") - __properties: ClassVar[List[str]] = ["displayId", "dstAddress", "dstPort", "exchanges", "id", "links", "srcAddress", "srcPort", "transportType"] + __properties: ClassVar[List[str]] = ["displayId", "dstAddress", "dstPort", "exchanges", "httpHost", "id", "links", "srcAddress", "srcPort", "transportType"] model_config = ConfigDict( populate_by_name=True, @@ -116,6 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "dstAddress": obj.get("dstAddress"), "dstPort": obj.get("dstPort"), "exchanges": [AppExchange.from_dict(_item) for _item in obj["exchanges"]] if obj.get("exchanges") is not None else None, + "httpHost": obj.get("httpHost"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "srcAddress": obj.get("srcAddress"), diff --git a/cyperf/models/app_flow_desc.py b/cyperf/models/app_flow_desc.py index 3f39e41..314b556 100644 --- a/cyperf/models/app_flow_desc.py +++ b/cyperf/models/app_flow_desc.py @@ -30,9 +30,10 @@ class AppFlowDesc(BaseModel): """ # noqa: E501 dst_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="dstAddress") dst_port: Optional[StrictInt] = Field(default=None, alias="dstPort") + http_host: Optional[StrictStr] = Field(default=None, alias="httpHost") src_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="srcAddress") src_port: Optional[StrictInt] = Field(default=None, alias="srcPort") - __properties: ClassVar[List[str]] = ["dstAddress", "dstPort", "srcAddress", "srcPort"] + __properties: ClassVar[List[str]] = ["dstAddress", "dstPort", "httpHost", "srcAddress", "srcPort"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "dstAddress": obj.get("dstAddress"), "dstPort": obj.get("dstPort"), + "httpHost": obj.get("httpHost"), "srcAddress": obj.get("srcAddress"), "srcPort": obj.get("srcPort") , diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index f500f9c..45702d2 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -30,8 +30,10 @@ class ChassisInfo(BaseModel): """ # noqa: E501 checkout_id: Optional[StrictInt] = Field(default=None, description="The id of the compute node used for checkout licenses", alias="checkoutID") compute_node_id: Optional[StrictStr] = Field(default=None, description="The id of the compute node where the agent is running", alias="computeNodeID") + hw_platform: Optional[StrictStr] = Field(default=None, alias="hwPlatform") + hw_revision: Optional[StrictStr] = Field(default=None, alias="hwRevision") port_id: Optional[StrictStr] = Field(default=None, description="The id of the corresponding port", alias="portID") - __properties: ClassVar[List[str]] = ["checkoutID", "computeNodeID", "portID"] + __properties: ClassVar[List[str]] = ["checkoutID", "computeNodeID", "hwPlatform", "hwRevision", "portID"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "checkoutID": obj.get("checkoutID"), "computeNodeID": obj.get("computeNodeID"), + "hwPlatform": obj.get("hwPlatform"), + "hwRevision": obj.get("hwRevision"), "portID": obj.get("portID") , "links": obj.get("links") diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index 62c7a57..69162ea 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -29,10 +29,11 @@ class FileValue(BaseModel): FileValue """ # noqa: E501 file_name: Optional[StrictStr] = Field(default=None, description="The name of the file.", alias="fileName") + md5_sum: Optional[StrictStr] = Field(default=None, description="The MD5 sum of the file", alias="md5Sum") payload: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, description="The payload value of the file.") resource_url: Optional[StrictStr] = Field(default=None, description="The resource URL of the file.", alias="resourceURL") value: Optional[StrictStr] = Field(default=None, description="Selected column name of the file (playlist type).") - __properties: ClassVar[List[str]] = ["fileName", "payload", "resourceURL", "value"] + __properties: ClassVar[List[str]] = ["fileName", "md5Sum", "payload", "resourceURL", "value"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "fileName": obj.get("fileName"), + "md5Sum": obj.get("md5Sum"), "payload": obj.get("payload"), "resourceURL": obj.get("resourceURL"), "value": obj.get("value") diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 5e8b58d..4d53d47 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -31,6 +31,7 @@ from cyperf.models.ip_sec_stack import IPSecStack from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.tunnel_stack import TunnelStack +from cyperf.models.vx_lan_stack import VxLANStack from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -51,11 +52,14 @@ class IPNetwork(BaseModel): ip_sec_stacks: Optional[List[IPSecStack]] = Field(default=None, alias="IPSecStacks") mac_dtls_stacks: Optional[List[MacDtlsStack]] = Field(default=None, alias="MacDtlsStacks") tunnel_stacks: Optional[List[TunnelStack]] = Field(default=None, alias="TunnelStacks") + vx_lan_stacks: Optional[List[VxLANStack]] = Field(default=None, alias="VxLANStacks") active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the network segment is active.(default: true)") agent_assignments: Optional[AgentAssignments] = Field(default=None, alias="agentAssignments") + inherit_streaming_cpu_allocation: Optional[StrictBool] = Field(default=None, description="A flag indicating if the CPU percentage used by agents assigned to this network segment for streaming purposes will be inherited from the objective settings (default: true).", alias="inheritStreamingCPUAllocation") links: Optional[List[APILink]] = None min_agents: Optional[StrictInt] = Field(default=None, description="The minimum number of agents that should be assigned to this network segment in a valid test (default: 1).", alias="minAgents") - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "DNSResolver", "DNSServer", "DUTConnections", "EmulatedRouter", "EthRange", "IPRanges", "IPSecStacks", "MacDtlsStacks", "TunnelStacks", "active", "agentAssignments", "links", "minAgents"] + streaming_cpu_allocation: Optional[StrictInt] = Field(default=None, description="The CPU percentage used by agents assigned to this network segment for streaming purposes (default: 25).", alias="streamingCPUAllocation") + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "DNSResolver", "DNSServer", "DUTConnections", "EmulatedRouter", "EthRange", "IPRanges", "IPSecStacks", "MacDtlsStacks", "TunnelStacks", "VxLANStacks", "active", "agentAssignments", "inheritStreamingCPUAllocation", "links", "minAgents", "streamingCPUAllocation"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -143,6 +147,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['TunnelStacks'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in vx_lan_stacks (list) + _items = [] + if self.vx_lan_stacks: + for _item in self.vx_lan_stacks: + if _item: + _items.append(_item.to_dict()) + _dict['VxLANStacks'] = _items # override the default output from pydantic by calling `to_dict()` of agent_assignments if self.agent_assignments: _dict['agentAssignments'] = self.agent_assignments.to_dict() @@ -179,10 +190,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IPSecStacks": [IPSecStack.from_dict(_item) for _item in obj["IPSecStacks"]] if obj.get("IPSecStacks") is not None else None, "MacDtlsStacks": [MacDtlsStack.from_dict(_item) for _item in obj["MacDtlsStacks"]] if obj.get("MacDtlsStacks") is not None else None, "TunnelStacks": [TunnelStack.from_dict(_item) for _item in obj["TunnelStacks"]] if obj.get("TunnelStacks") is not None else None, + "VxLANStacks": [VxLANStack.from_dict(_item) for _item in obj["VxLANStacks"]] if obj.get("VxLANStacks") is not None else None, "active": obj.get("active"), "agentAssignments": AgentAssignments.from_dict(obj["agentAssignments"]) if obj.get("agentAssignments") is not None else None, + "inheritStreamingCPUAllocation": obj.get("inheritStreamingCPUAllocation"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "minAgents": obj.get("minAgents") + "minAgents": obj.get("minAgents"), + "streamingCPUAllocation": obj.get("streamingCPUAllocation") , "links": obj.get("links") }) diff --git a/cyperf/models/md2_tlv.py b/cyperf/models/md2_tlv.py new file mode 100644 index 0000000..af3e8f4 --- /dev/null +++ b/cyperf/models/md2_tlv.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class Md2Tlv(BaseModel): + """ + Md2Tlv + """ # noqa: E501 + md2_class: StrictInt = Field(alias="Md2Class") + md2_type: StrictInt = Field(alias="Md2Type") + md2_value: StrictInt = Field(alias="Md2Value") + id: StrictStr + __properties: ClassVar[List[str]] = ["Md2Class", "Md2Type", "Md2Value", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Md2Tlv from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Md2Tlv from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Md2Class": obj.get("Md2Class"), + "Md2Type": obj.get("Md2Type"), + "Md2Value": obj.get("Md2Value"), + "id": obj.get("id") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/secondary_objective.py b/cyperf/models/secondary_objective.py index 3a939fe..5039a92 100644 --- a/cyperf/models/secondary_objective.py +++ b/cyperf/models/secondary_objective.py @@ -35,7 +35,7 @@ class SecondaryObjective(BaseModel): max_simulated_users_per_interval: Optional[StrictInt] = Field(default=None, description="Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit)", alias="MaxSimulatedUsersPerInterval") objective_unit: StrictStr = Field(description="The objective's unit.", alias="ObjectiveUnit") objective_value: Union[StrictFloat, StrictInt] = Field(description="The value of the secondary objective. This value will be used for the whole duration of the test.", alias="ObjectiveValue") - type: ObjectiveType = Field(description="The objective's type (default: SimulatedUsers).", alias="Type") + type: ObjectiveType = Field(alias="Type") __properties: ClassVar[List[str]] = ["Enabled", "MaxPendingSimulatedUsers", "MaxSimulatedUsersPerInterval", "ObjectiveUnit", "ObjectiveValue", "Type"] @field_validator('max_pending_simulated_users') diff --git a/cyperf/models/specific_objective.py b/cyperf/models/specific_objective.py index d9f246a..3bb8ee7 100644 --- a/cyperf/models/specific_objective.py +++ b/cyperf/models/specific_objective.py @@ -36,7 +36,7 @@ class SpecificObjective(BaseModel): max_pending_simulated_users: Annotated[str, Field(strict=True)] = Field(description="Only applies if Type is SimulatedUsers. The maximum number or percentage of users that can be in the pending state (not yet connected and sending traffic) at any time. You can either specify a number or a percentage using the % sign.", alias="MaxPendingSimulatedUsers") max_simulated_users_per_interval: Optional[StrictInt] = Field(default=None, description="Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit)", alias="MaxSimulatedUsersPerInterval") timeline: Optional[List[TimelineSegmentUnion]] = Field(default=None, description="The timeline of this objective.", alias="Timeline") - type: ObjectiveType = Field(description="The objective's type (default: Throughput).", alias="Type") + type: ObjectiveType = Field(alias="Type") unit: ObjectiveUnit = Field(description="The objective's unit. Must be one of: bps or ''.", alias="Unit") id: StrictStr links: Optional[List[APILink]] = None diff --git a/cyperf/models/vx_lan_range.py b/cyperf/models/vx_lan_range.py new file mode 100644 index 0000000..6d83bcc --- /dev/null +++ b/cyperf/models/vx_lan_range.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.md2_tlv import Md2Tlv +from cyperf.models.vx_lanid import VxLANId +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANRange(BaseModel): + """ + The VxLAN IP Ranges assigned to the current test configuration + """ # noqa: E501 + hacked_inner_remote_ip_incr: Annotated[str, Field(strict=True)] = Field(alias="HackedInnerRemoteIpIncr") + hacked_inner_remote_ip_start: Annotated[str, Field(strict=True)] = Field(alias="HackedInnerRemoteIpStart") + md2_tlvs: Optional[List[Md2Tlv]] = Field(default=None, alias="Md2Tlvs") + remote_vtep_ip_local_count: StrictInt = Field(description="The number of remote VTEP IPs generated (default: 1).", alias="RemoteVtepIpLocalCount") + remote_vtep_ip_local_incr: Annotated[str, Field(strict=True)] = Field(description="The remote VTEP IP incrementation rule (default: 0.0.0.1).", alias="RemoteVtepIpLocalIncr") + remote_vtep_ip_range_incr: Annotated[str, Field(strict=True)] = Field(description="The remote VTEP IP range incrementation rule (default: 0.0.1.0).", alias="RemoteVtepIpRangeIncr") + remote_vtep_ip_start: Annotated[str, Field(strict=True)] = Field(description="The start IP for the remote VTEP (default: 10.0.0.10).", alias="RemoteVtepIpStart") + total_tunnel_count: StrictInt = Field(description="Outer IP Count * Remote VTEP IP Local Count * VxLAN ID per VTEP Pair Count", alias="TotalTunnelCount") + use_vx_lan_ids: StrictBool = Field(alias="UseVxLANIds") + vx_lanid_incr: StrictInt = Field(description="The VxLAN id incrementation rule (default: 1).", alias="VxLANIdIncr") + vx_lanid_per_vtep_pair_count: StrictInt = Field(alias="VxLANIdPerVtepPairCount") + vx_lanid_start: StrictInt = Field(description="The VxLAN start identifier (default: 1).", alias="VxLANIdStart") + vx_lan_ids: Optional[List[VxLANId]] = Field(default=None, alias="VxLANIds") + vx_lan_range_name: Annotated[str, Field(strict=True)] = Field(alias="VxLANRangeName") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["HackedInnerRemoteIpIncr", "HackedInnerRemoteIpStart", "Md2Tlvs", "RemoteVtepIpLocalCount", "RemoteVtepIpLocalIncr", "RemoteVtepIpRangeIncr", "RemoteVtepIpStart", "TotalTunnelCount", "UseVxLANIds", "VxLANIdIncr", "VxLANIdPerVtepPairCount", "VxLANIdStart", "VxLANIds", "VxLANRangeName", "id", "links"] + + @field_validator('hacked_inner_remote_ip_incr') + def hacked_inner_remote_ip_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('hacked_inner_remote_ip_start') + def hacked_inner_remote_ip_start_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_local_incr') + def remote_vtep_ip_local_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_range_incr') + def remote_vtep_ip_range_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_start') + def remote_vtep_ip_start_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + raise ValueError(r"must validate the regular expression /^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('vx_lan_range_name') + def vx_lan_range_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANRange from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in md2_tlvs (list) + _items = [] + if self.md2_tlvs: + for _item in self.md2_tlvs: + if _item: + _items.append(_item.to_dict()) + _dict['Md2Tlvs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in vx_lan_ids (list) + _items = [] + if self.vx_lan_ids: + for _item in self.vx_lan_ids: + if _item: + _items.append(_item.to_dict()) + _dict['VxLANIds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANRange from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "HackedInnerRemoteIpIncr": obj.get("HackedInnerRemoteIpIncr"), + "HackedInnerRemoteIpStart": obj.get("HackedInnerRemoteIpStart"), + "Md2Tlvs": [Md2Tlv.from_dict(_item) for _item in obj["Md2Tlvs"]] if obj.get("Md2Tlvs") is not None else None, + "RemoteVtepIpLocalCount": obj.get("RemoteVtepIpLocalCount"), + "RemoteVtepIpLocalIncr": obj.get("RemoteVtepIpLocalIncr"), + "RemoteVtepIpRangeIncr": obj.get("RemoteVtepIpRangeIncr"), + "RemoteVtepIpStart": obj.get("RemoteVtepIpStart"), + "TotalTunnelCount": obj.get("TotalTunnelCount"), + "UseVxLANIds": obj.get("UseVxLANIds"), + "VxLANIdIncr": obj.get("VxLANIdIncr"), + "VxLANIdPerVtepPairCount": obj.get("VxLANIdPerVtepPairCount"), + "VxLANIdStart": obj.get("VxLANIdStart"), + "VxLANIds": [VxLANId.from_dict(_item) for _item in obj["VxLANIds"]] if obj.get("VxLANIds") is not None else None, + "VxLANRangeName": obj.get("VxLANRangeName"), + "id": obj.get("id"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/vx_lan_stack.py b/cyperf/models/vx_lan_stack.py new file mode 100644 index 0000000..5a60da0 --- /dev/null +++ b/cyperf/models/vx_lan_stack.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.ip_range import IPRange +from cyperf.models.vx_lan_range import VxLANRange +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANStack(BaseModel): + """ + The VxLAN stack assigned to the current test configuration + """ # noqa: E501 + inner_ip_range: Optional[IPRange] = Field(default=None, alias="InnerIPRange") + outer_ip_range: Optional[IPRange] = Field(default=None, alias="OuterIPRange") + vx_lan_range: Optional[VxLANRange] = Field(default=None, alias="VxLANRange") + vx_lan_stack_name: Annotated[str, Field(strict=True)] = Field(alias="VxLANStackName") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["InnerIPRange", "OuterIPRange", "VxLANRange", "VxLANStackName", "id", "links"] + + @field_validator('vx_lan_stack_name') + def vx_lan_stack_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANStack from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of inner_ip_range + if self.inner_ip_range: + _dict['InnerIPRange'] = self.inner_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of outer_ip_range + if self.outer_ip_range: + _dict['OuterIPRange'] = self.outer_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of vx_lan_range + if self.vx_lan_range: + _dict['VxLANRange'] = self.vx_lan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANStack from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "InnerIPRange": IPRange.from_dict(obj["InnerIPRange"]) if obj.get("InnerIPRange") is not None else None, + "OuterIPRange": IPRange.from_dict(obj["OuterIPRange"]) if obj.get("OuterIPRange") is not None else None, + "VxLANRange": VxLANRange.from_dict(obj["VxLANRange"]) if obj.get("VxLANRange") is not None else None, + "VxLANStackName": obj.get("VxLANStackName"), + "id": obj.get("id"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/vx_lanid.py b/cyperf/models/vx_lanid.py new file mode 100644 index 0000000..6e1b964 --- /dev/null +++ b/cyperf/models/vx_lanid.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANId(BaseModel): + """ + VxLANId + """ # noqa: E501 + vx_lan_id: StrictInt = Field(alias="VxLanId") + id: StrictStr + __properties: ClassVar[List[str]] = ["VxLanId", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "VxLanId": obj.get("VxLanId"), + "id": obj.get("id") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/utils.py b/cyperf/utils.py index 821c7ba..c020965 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -351,7 +351,7 @@ def format_stats_dict_as_table(self, stats_dict={}): lines = ['|'.join([f'{val:^{col_width}}' for val, col_width in zip(item, col_widths)]) for item in zip(*stats_dict.values())] return [line_delim, header, line_delim] + lines + [line_delim] - + def parse_cli_options(extra_options=[]): """Can be used to get parameters from the CLI or env vars that are broadly useful for CLI tests""" import argparse diff --git a/docs/AppFlow.md b/docs/AppFlow.md index d137b61..6b71bd5 100644 --- a/docs/AppFlow.md +++ b/docs/AppFlow.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **dst_address** | **bytearray** | | [optional] **dst_port** | **int** | | [optional] **exchanges** | [**List[AppExchange]**](AppExchange.md) | The list of exchanges | [optional] +**http_host** | **str** | | [optional] **id** | **str** | | [optional] [readonly] **links** | [**List[APILink]**](APILink.md) | | [optional] **src_address** | **bytearray** | | [optional] diff --git a/docs/AppFlowDesc.md b/docs/AppFlowDesc.md index f21db9a..285d515 100644 --- a/docs/AppFlowDesc.md +++ b/docs/AppFlowDesc.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dst_address** | **bytearray** | | [optional] **dst_port** | **int** | | [optional] +**http_host** | **str** | | [optional] **src_address** | **bytearray** | | [optional] **src_port** | **int** | | [optional] diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index 78b3044..1bac8fd 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -35,6 +35,7 @@ Method | HTTP request | Description [**get_resources_auth_profiles**](ApplicationResourcesApi.md#get_resources_auth_profiles) | **GET** /api/v2/resources/auth-profiles | [**get_resources_capture_by_id**](ApplicationResourcesApi.md#get_resources_capture_by_id) | **GET** /api/v2/resources/captures/{captureId} | [**get_resources_captures**](ApplicationResourcesApi.md#get_resources_captures) | **GET** /api/v2/resources/captures | +[**get_resources_captures_encrypted_upload_file_result**](ApplicationResourcesApi.md#get_resources_captures_encrypted_upload_file_result) | **GET** /api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result | [**get_resources_captures_upload_file_result**](ApplicationResourcesApi.md#get_resources_captures_upload_file_result) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result | [**get_resources_certificate_by_id**](ApplicationResourcesApi.md#get_resources_certificate_by_id) | **GET** /api/v2/resources/certificates/{certificateId} | [**get_resources_certificate_content_file**](ApplicationResourcesApi.md#get_resources_certificate_content_file) | **GET** /api/v2/resources/certificates/{certificateId}/contentFile | @@ -110,6 +111,7 @@ Method | HTTP request | Description [**get_resources_user_defined_apps_upload_file_result**](ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | [**start_resources_apps_export_all**](ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | [**start_resources_captures_batch_delete**](ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | +[**start_resources_captures_encrypted_upload_file**](ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | [**start_resources_captures_upload_file**](ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | [**start_resources_certificates_upload_file**](ApplicationResourcesApi.md#start_resources_certificates_upload_file) | **POST** /api/v2/resources/certificates/operations/uploadFile | [**start_resources_config_export_user_defined_apps**](ApplicationResourcesApi.md#start_resources_config_export_user_defined_apps) | **POST** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps | @@ -2562,6 +2564,82 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_resources_captures_encrypted_upload_file_result** +> get_resources_captures_encrypted_upload_file_result(upload_file_id) + + + +Get the result of the upload file operation. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + + try: + api_instance.get_resources_captures_encrypted_upload_file_result(upload_file_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_captures_encrypted_upload_file_result: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **upload_file_id** | **str**| The ID of the uploadfile. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The payload file that was added | - | +**400** | Bad request | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_resources_captures_upload_file_result** > get_resources_captures_upload_file_result(upload_file_id) @@ -8453,6 +8531,81 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_resources_captures_encrypted_upload_file** +> start_resources_captures_encrypted_upload_file(file=file) + + + +Upload a file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + file = None # bytearray | (optional) + + try: + api_instance.start_resources_captures_encrypted_upload_file(file=file) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_captures_encrypted_upload_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_resources_captures_upload_file** > AsyncContext start_resources_captures_upload_file(file=file) diff --git a/docs/ChassisInfo.md b/docs/ChassisInfo.md index bfc265c..5cc85f3 100644 --- a/docs/ChassisInfo.md +++ b/docs/ChassisInfo.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **checkout_id** | **int** | The id of the compute node used for checkout licenses | [optional] [readonly] **compute_node_id** | **str** | The id of the compute node where the agent is running | [optional] [readonly] +**hw_platform** | **str** | | [optional] +**hw_revision** | **str** | | [optional] **port_id** | **str** | The id of the corresponding port | [optional] [readonly] ## Example diff --git a/docs/FileValue.md b/docs/FileValue.md index b98581b..7284b39 100644 --- a/docs/FileValue.md +++ b/docs/FileValue.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | The name of the file. | [optional] +**md5_sum** | **str** | The MD5 sum of the file | [optional] **payload** | **List[bytearray]** | The payload value of the file. | [optional] **resource_url** | **str** | The resource URL of the file. | [optional] **value** | **str** | Selected column name of the file (playlist type). | [optional] diff --git a/docs/IPNetwork.md b/docs/IPNetwork.md index 580d099..dc15acf 100644 --- a/docs/IPNetwork.md +++ b/docs/IPNetwork.md @@ -18,10 +18,13 @@ Name | Type | Description | Notes **ip_sec_stacks** | [**List[IPSecStack]**](IPSecStack.md) | | [optional] **mac_dtls_stacks** | [**List[MacDtlsStack]**](MacDtlsStack.md) | | [optional] **tunnel_stacks** | [**List[TunnelStack]**](TunnelStack.md) | | [optional] +**vx_lan_stacks** | [**List[VxLANStack]**](VxLANStack.md) | | [optional] **active** | **bool** | A flag indicating if the network segment is active.(default: true) | [optional] **agent_assignments** | [**AgentAssignments**](AgentAssignments.md) | | [optional] +**inherit_streaming_cpu_allocation** | **bool** | A flag indicating if the CPU percentage used by agents assigned to this network segment for streaming purposes will be inherited from the objective settings (default: true). | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **min_agents** | **int** | The minimum number of agents that should be assigned to this network segment in a valid test (default: 1). | [optional] +**streaming_cpu_allocation** | **int** | The CPU percentage used by agents assigned to this network segment for streaming purposes (default: 25). | [optional] ## Example diff --git a/docs/Md2Tlv.md b/docs/Md2Tlv.md new file mode 100644 index 0000000..6a72839 --- /dev/null +++ b/docs/Md2Tlv.md @@ -0,0 +1,32 @@ +# Md2Tlv + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**md2_class** | **int** | | +**md2_type** | **int** | | +**md2_value** | **int** | | +**id** | **str** | | + +## Example + +```python +from cyperf.models.md2_tlv import Md2Tlv + +# TODO update the JSON string below +json = "{}" +# create an instance of Md2Tlv from a JSON string +md2_tlv_instance = Md2Tlv.from_json(json) +# print the JSON string representation of the object +print(Md2Tlv.to_json()) + +# convert the object into a dict +md2_tlv_dict = md2_tlv_instance.to_dict() +# create an instance of Md2Tlv from a dict +md2_tlv_from_dict = Md2Tlv.from_dict(md2_tlv_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecondaryObjective.md b/docs/SecondaryObjective.md index d4a1535..3dad129 100644 --- a/docs/SecondaryObjective.md +++ b/docs/SecondaryObjective.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **max_simulated_users_per_interval** | **int** | Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit) | [optional] **objective_unit** | **str** | The objective's unit. | **objective_value** | **float** | The value of the secondary objective. This value will be used for the whole duration of the test. | -**type** | [**ObjectiveType**](ObjectiveType.md) | The objective's type (default: SimulatedUsers). | +**type** | [**ObjectiveType**](ObjectiveType.md) | | ## Example diff --git a/docs/SpecificObjective.md b/docs/SpecificObjective.md index 858c0a7..132edc6 100644 --- a/docs/SpecificObjective.md +++ b/docs/SpecificObjective.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **max_pending_simulated_users** | **str** | Only applies if Type is SimulatedUsers. The maximum number or percentage of users that can be in the pending state (not yet connected and sending traffic) at any time. You can either specify a number or a percentage using the % sign. | **max_simulated_users_per_interval** | **int** | Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit) | [optional] **timeline** | [**List[TimelineSegmentUnion]**](TimelineSegmentUnion.md) | The timeline of this objective. | [optional] -**type** | [**ObjectiveType**](ObjectiveType.md) | The objective's type (default: Throughput). | +**type** | [**ObjectiveType**](ObjectiveType.md) | | **unit** | [**ObjectiveUnit**](ObjectiveUnit.md) | The objective's unit. Must be one of: bps or ''. | **id** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/TestResultsApi.md b/docs/TestResultsApi.md index 7aff89c..e9463f9 100644 --- a/docs/TestResultsApi.md +++ b/docs/TestResultsApi.md @@ -14,6 +14,7 @@ Method | HTTP request | Description [**get_result_files**](TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | [**get_results**](TestResultsApi.md#get_results) | **GET** /api/v2/results | [**get_results_tags**](TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | +[**start_result_export_events**](TestResultsApi.md#start_result_export_events) | **POST** /api/v2/results/{resultId}/operations/export-events | [**start_result_generate_all**](TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | [**start_result_generate_results**](TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | [**start_result_load**](TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -817,6 +818,83 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_result_export_events** +> AsyncContext start_result_export_events(result_id) + + + +Export events file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.TestResultsApi(api_client) + result_id = 'result_id_example' # str | The ID of the result. + + try: + api_response = api_instance.start_result_export_events(result_id) + print("The response of TestResultsApi->start_result_export_events:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TestResultsApi->start_result_export_events: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **result_id** | **str**| The ID of the result. | + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_result_generate_all** > AsyncContext start_result_generate_all(result_id, generate_all_operation=generate_all_operation) diff --git a/docs/VxLANId.md b/docs/VxLANId.md new file mode 100644 index 0000000..58d2b24 --- /dev/null +++ b/docs/VxLANId.md @@ -0,0 +1,30 @@ +# VxLANId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vx_lan_id** | **int** | | +**id** | **str** | | + +## Example + +```python +from cyperf.models.vx_lanid import VxLANId + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANId from a JSON string +vx_lanid_instance = VxLANId.from_json(json) +# print the JSON string representation of the object +print(VxLANId.to_json()) + +# convert the object into a dict +vx_lanid_dict = vx_lanid_instance.to_dict() +# create an instance of VxLANId from a dict +vx_lanid_from_dict = VxLANId.from_dict(vx_lanid_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VxLANRange.md b/docs/VxLANRange.md new file mode 100644 index 0000000..0c3a9c8 --- /dev/null +++ b/docs/VxLANRange.md @@ -0,0 +1,45 @@ +# VxLANRange + +The VxLAN IP Ranges assigned to the current test configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hacked_inner_remote_ip_incr** | **str** | | +**hacked_inner_remote_ip_start** | **str** | | +**md2_tlvs** | [**List[Md2Tlv]**](Md2Tlv.md) | | [optional] +**remote_vtep_ip_local_count** | **int** | The number of remote VTEP IPs generated (default: 1). | +**remote_vtep_ip_local_incr** | **str** | The remote VTEP IP incrementation rule (default: 0.0.0.1). | +**remote_vtep_ip_range_incr** | **str** | The remote VTEP IP range incrementation rule (default: 0.0.1.0). | +**remote_vtep_ip_start** | **str** | The start IP for the remote VTEP (default: 10.0.0.10). | +**total_tunnel_count** | **int** | Outer IP Count * Remote VTEP IP Local Count * VxLAN ID per VTEP Pair Count | +**use_vx_lan_ids** | **bool** | | +**vx_lanid_incr** | **int** | The VxLAN id incrementation rule (default: 1). | +**vx_lanid_per_vtep_pair_count** | **int** | | +**vx_lanid_start** | **int** | The VxLAN start identifier (default: 1). | +**vx_lan_ids** | [**List[VxLANId]**](VxLANId.md) | | [optional] +**vx_lan_range_name** | **str** | | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.vx_lan_range import VxLANRange + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANRange from a JSON string +vx_lan_range_instance = VxLANRange.from_json(json) +# print the JSON string representation of the object +print(VxLANRange.to_json()) + +# convert the object into a dict +vx_lan_range_dict = vx_lan_range_instance.to_dict() +# create an instance of VxLANRange from a dict +vx_lan_range_from_dict = VxLANRange.from_dict(vx_lan_range_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VxLANStack.md b/docs/VxLANStack.md new file mode 100644 index 0000000..571b277 --- /dev/null +++ b/docs/VxLANStack.md @@ -0,0 +1,35 @@ +# VxLANStack + +The VxLAN stack assigned to the current test configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inner_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**outer_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**vx_lan_range** | [**VxLANRange**](VxLANRange.md) | | [optional] +**vx_lan_stack_name** | **str** | | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.vx_lan_stack import VxLANStack + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANStack from a JSON string +vx_lan_stack_instance = VxLANStack.from_json(json) +# print the JSON string representation of the object +print(VxLANStack.to_json()) + +# convert the object into a dict +vx_lan_stack_dict = vx_lan_stack_instance.to_dict() +# create an instance of VxLANStack from a dict +vx_lan_stack_from_dict = VxLANStack.from_dict(vx_lan_stack_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/sample_create_save_and_export_config.py b/samples/sample_create_save_and_export_config.py index a0dc980..74db18a 100644 --- a/samples/sample_create_save_and_export_config.py +++ b/samples/sample_create_save_and_export_config.py @@ -84,12 +84,6 @@ api_session_response.await_completion() print("Applications added successfully.\n") - # Create a Network Profile - print("Adding network elements...") - network_profile = NetworkProfile(IPNetworkSegment=[], id="1") - session.config.config.network_profiles.append(network_profile) - session.config.config.network_profiles.update() - # Create IP Networks client_ip_network = IPNetwork(name="IP Network 1", id="1", agentAssignments=AgentAssignments(by_tag=[]), minAgents=1) server_ip_network = IPNetwork(name="IP Network 2", id="2", agentAssignments=AgentAssignments(by_tag=[]), minAgents=1) diff --git a/test/test_action_input_find_param.py b/test/test_action_input_find_param.py index f1446ed..2b37f35 100644 --- a/test/test_action_input_find_param.py +++ b/test/test_action_input_find_param.py @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> ActionInputFindParam: app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56, ), app_flow_id = '', diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py index 4352fde..2c54fa7 100644 --- a/test/test_action_metadata.py +++ b/test/test_action_metadata.py @@ -97,6 +97,7 @@ def make_instance(self, include_optional) -> ActionMetadata: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_agent.py b/test/test_agent.py index 1385468..3c84577 100644 --- a/test/test_agent.py +++ b/test/test_agent.py @@ -112,6 +112,8 @@ def make_instance(self, include_optional) -> Agent: chassis_info = cyperf.models.chassis_info.ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '', ), kernel_version = '', os_name = '', diff --git a/test/test_app_flow.py b/test/test_app_flow.py index d03db57..a767bc8 100644 --- a/test/test_app_flow.py +++ b/test/test_app_flow.py @@ -92,6 +92,7 @@ def make_instance(self, include_optional) -> AppFlow: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_app_flow_desc.py b/test/test_app_flow_desc.py index 3f12f7c..c4b2dba 100644 --- a/test/test_app_flow_desc.py +++ b/test/test_app_flow_desc.py @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> AppFlowDesc: return AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56 ) diff --git a/test/test_app_flow_input_find_param.py b/test/test_app_flow_input_find_param.py index 8a38529..c53fbf2 100644 --- a/test/test_app_flow_input_find_param.py +++ b/test/test_app_flow_input_find_param.py @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AppFlowInputFindParam: app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56, ), app_flow_id = '', diff --git a/test/test_application_profile.py b/test/test_application_profile.py index bf198d1..f08fa69 100644 --- a/test/test_application_profile.py +++ b/test/test_application_profile.py @@ -86,7 +86,7 @@ def make_instance(self, include_optional) -> ApplicationProfile: timeline = [ null ], - type = null, + type = 'Simulated users', unit = null, id = '', links = [ diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py index 2b794b6..c780ed6 100644 --- a/test/test_application_resources_api.py +++ b/test/test_application_resources_api.py @@ -214,6 +214,12 @@ def test_get_resources_captures(self) -> None: """ pass + def test_get_resources_captures_encrypted_upload_file_result(self) -> None: + """Test case for get_resources_captures_encrypted_upload_file_result + + """ + pass + def test_get_resources_captures_upload_file_result(self) -> None: """Test case for get_resources_captures_upload_file_result @@ -679,6 +685,7 @@ def test_get_resources_user_defined_apps_upload_file_result(self) -> None: + def test_start_resources_apps_export_all(self) -> None: @@ -693,6 +700,12 @@ def test_start_resources_captures_batch_delete(self) -> None: """ pass + def test_start_resources_captures_encrypted_upload_file(self) -> None: + """Test case for start_resources_captures_encrypted_upload_file + + """ + pass + def test_start_resources_captures_upload_file(self) -> None: """Test case for start_resources_captures_upload_file diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index 4a2e261..3cebc8b 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -105,6 +105,7 @@ def make_instance(self, include_optional) -> AppsecApp: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index c1af2a6..cf92393 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -99,6 +99,7 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_capture_input_find_param.py b/test/test_capture_input_find_param.py index 14725e9..951cf83 100644 --- a/test/test_capture_input_find_param.py +++ b/test/test_capture_input_find_param.py @@ -42,6 +42,7 @@ def make_instance(self, include_optional) -> CaptureInputFindParam: app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56, ), app_flow_id = '', diff --git a/test/test_chassis_info.py b/test/test_chassis_info.py index cfc1697..b4a2047 100644 --- a/test/test_chassis_info.py +++ b/test/test_chassis_info.py @@ -38,6 +38,8 @@ def make_instance(self, include_optional) -> ChassisInfo: return ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '' ) else: diff --git a/test/test_file_value.py b/test/test_file_value.py index d8ea071..9ba8448 100644 --- a/test/test_file_value.py +++ b/test/test_file_value.py @@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> FileValue: if include_optional: return FileValue( file_name = '', + md5_sum = '', payload = [ 'YQ==' ], diff --git a/test/test_find_param_matches_operation.py b/test/test_find_param_matches_operation.py index 2f515a0..69cd9ba 100644 --- a/test/test_find_param_matches_operation.py +++ b/test/test_find_param_matches_operation.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> FindParamMatchesOperation: app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56, ), app_flow_id = '', diff --git a/test/test_get_agents200_response.py b/test/test_get_agents200_response.py index 11d00ad..1e3789a 100644 --- a/test/test_get_agents200_response.py +++ b/test/test_get_agents200_response.py @@ -102,6 +102,8 @@ def make_instance(self, include_optional) -> GetAgents200Response: chassis_info = cyperf.models.chassis_info.ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '', ), kernel_version = '', os_name = '', diff --git a/test/test_get_agents200_response_one_of.py b/test/test_get_agents200_response_one_of.py index 4e45330..9118001 100644 --- a/test/test_get_agents200_response_one_of.py +++ b/test/test_get_agents200_response_one_of.py @@ -102,6 +102,8 @@ def make_instance(self, include_optional) -> GetAgents200ResponseOneOf: chassis_info = cyperf.models.chassis_info.ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '', ), kernel_version = '', os_name = '', diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index 639dafc..b3ae529 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -107,6 +107,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index 7620947..29bd111 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -107,6 +107,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_ip_network.py b/test/test_ip_network.py index a59542c..950edea 100644 --- a/test/test_ip_network.py +++ b/test/test_ip_network.py @@ -224,6 +224,24 @@ def make_instance(self, include_optional) -> IPNetwork: type = '', ) ], ) ], + vx_lan_stacks = [ + cyperf.models.vx_lan_stack.VxLANStack( + inner_ip_range = null, + outer_ip_range = null, + vx_lan_range = null, + vx_lan_stack_name = 'YBuLd', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ) + ], active = True, agent_assignments = cyperf.models.agent_assignments.AgentAssignments( by_id = [ @@ -245,6 +263,7 @@ def make_instance(self, include_optional) -> IPNetwork: rel = '', type = '', ) ], ), + inherit_streaming_cpu_allocation = True, links = [ cyperf.models.api_link.APILink( content_type = '', @@ -255,7 +274,8 @@ def make_instance(self, include_optional) -> IPNetwork: rel = '', type = '', ) ], - min_agents = 56 + min_agents = 56, + streaming_cpu_allocation = 56 ) else: return IPNetwork( diff --git a/test/test_md2_tlv.py b/test/test_md2_tlv.py new file mode 100644 index 0000000..8b8b018 --- /dev/null +++ b/test/test_md2_tlv.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.md2_tlv import Md2Tlv + +class TestMd2Tlv(unittest.TestCase): + """Md2Tlv unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Md2Tlv: + """Test Md2Tlv + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Md2Tlv` + """ + model = Md2Tlv() + if include_optional: + return Md2Tlv( + md2_class = 56, + md2_type = 56, + md2_value = 56, + id = '' + ) + else: + return Md2Tlv( + md2_class = 56, + md2_type = 56, + md2_value = 56, + id = '', + ) + """ + + def testMd2Tlv(self): + """Test Md2Tlv""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_media_file.py b/test/test_media_file.py index da6543d..64a5041 100644 --- a/test/test_media_file.py +++ b/test/test_media_file.py @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> MediaFile: return MediaFile( file_value = cyperf.models.file_value.FileValue( file_name = '', + md5_sum = '', payload = [ 'YQ==' ], diff --git a/test/test_objectives_and_timeline.py b/test/test_objectives_and_timeline.py index 7a84d3b..cc49bb0 100644 --- a/test/test_objectives_and_timeline.py +++ b/test/test_objectives_and_timeline.py @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> ObjectivesAndTimeline: timeline = [ null ], - type = null, + type = 'Simulated users', unit = null, id = '', links = [ @@ -67,7 +67,7 @@ def make_instance(self, include_optional) -> ObjectivesAndTimeline: max_simulated_users_per_interval = 56, objective_unit = '', objective_value = 1.337, - type = null, ), + type = 'Simulated users', ), secondary_objectives = [ cyperf.models.specific_objective.SpecificObjective( max_pending_simulated_users = '80728', @@ -75,7 +75,7 @@ def make_instance(self, include_optional) -> ObjectivesAndTimeline: timeline = [ null ], - type = null, + type = 'Simulated users', unit = null, id = '', links = [ diff --git a/test/test_params.py b/test/test_params.py index 90c8570..7bdb54b 100644 --- a/test/test_params.py +++ b/test/test_params.py @@ -59,6 +59,7 @@ def make_instance(self, include_optional) -> Params: ], ), file_value = cyperf.models.file_value.FileValue( file_name = '', + md5_sum = '', payload = [ 'YQ==' ], diff --git a/test/test_replay_capture.py b/test/test_replay_capture.py index b89b0ae..d4f9440 100644 --- a/test/test_replay_capture.py +++ b/test/test_replay_capture.py @@ -94,6 +94,7 @@ def make_instance(self, include_optional) -> ReplayCapture: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_system_info.py b/test/test_system_info.py index 432c630..37e5280 100644 --- a/test/test_system_info.py +++ b/test/test_system_info.py @@ -39,6 +39,8 @@ def make_instance(self, include_optional) -> SystemInfo: chassis_info = cyperf.models.chassis_info.ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '', ), kernel_version = '', os_name = '', diff --git a/test/test_test_results_api.py b/test/test_test_results_api.py index 6520aaa..7384694 100644 --- a/test/test_test_results_api.py +++ b/test/test_test_results_api.py @@ -92,6 +92,13 @@ def test_get_results_tags(self) -> None: + + def test_start_result_export_events(self) -> None: + """Test case for start_result_export_events + + """ + pass + def test_start_result_generate_all(self) -> None: """Test case for start_result_generate_all diff --git a/test/test_vx_lan_range.py b/test/test_vx_lan_range.py new file mode 100644 index 0000000..8511ecf --- /dev/null +++ b/test/test_vx_lan_range.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.vx_lan_range import VxLANRange + +class TestVxLANRange(unittest.TestCase): + """VxLANRange unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VxLANRange: + """Test VxLANRange + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `VxLANRange` + """ + model = VxLANRange() + if include_optional: + return VxLANRange( + hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', + hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', + md2_tlvs = [ + cyperf.models.md2_tlv.Md2Tlv( + md2_class = 56, + md2_type = 56, + md2_value = 56, + id = '', ) + ], + remote_vtep_ip_local_count = 56, + remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', + total_tunnel_count = 56, + use_vx_lan_ids = True, + vx_lanid_incr = 56, + vx_lanid_per_vtep_pair_count = 56, + vx_lanid_start = 56, + vx_lan_ids = [ + cyperf.models.vx_lanid.VxLANId( + vx_lan_id = 56, + id = '', ) + ], + vx_lan_range_name = 'YBuLd', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ] + ) + else: + return VxLANRange( + hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', + hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_local_count = 56, + remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', + total_tunnel_count = 56, + use_vx_lan_ids = True, + vx_lanid_incr = 56, + vx_lanid_per_vtep_pair_count = 56, + vx_lanid_start = 56, + vx_lan_range_name = 'YBuLd', + id = '', + ) + """ + + def testVxLANRange(self): + """Test VxLANRange""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vx_lan_stack.py b/test/test_vx_lan_stack.py new file mode 100644 index 0000000..18232fa --- /dev/null +++ b/test/test_vx_lan_stack.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.vx_lan_stack import VxLANStack + +class TestVxLANStack(unittest.TestCase): + """VxLANStack unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VxLANStack: + """Test VxLANStack + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `VxLANStack` + """ + model = VxLANStack() + if include_optional: + return VxLANStack( + inner_ip_range = cyperf.models.ip_range.IPRange( + automatic_ip_type = null, + count = 56, + gw_auto = True, + gw_start = '::02:84:9:0cc0:F:CCf', + host_count = 56, + inner_vlan_range = null, + ip_auto = True, + ip_incr = '::02:84:9:0cc0:F:CCf', + ip_range_name = 'YBuLd', + ip_start = '::02:84:9:0cc0:F:CCf', + ip_ver = null, + is_emulated_router = True, + mss = 56, + mss_auto = True, + net_mask = 56, + net_mask_auto = True, + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + max_count_per_agent = 56, + network_tags = [ + '' + ], ), + outer_ip_range = cyperf.models.ip_range.IPRange( + automatic_ip_type = null, + count = 56, + gw_auto = True, + gw_start = '::02:84:9:0cc0:F:CCf', + host_count = 56, + inner_vlan_range = null, + ip_auto = True, + ip_incr = '::02:84:9:0cc0:F:CCf', + ip_range_name = 'YBuLd', + ip_start = '::02:84:9:0cc0:F:CCf', + ip_ver = null, + is_emulated_router = True, + mss = 56, + mss_auto = True, + net_mask = 56, + net_mask_auto = True, + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + max_count_per_agent = 56, + network_tags = [ + '' + ], ), + vx_lan_range = cyperf.models.vx_lan_range.VxLANRange( + hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', + hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', + md2_tlvs = [ + cyperf.models.md2_tlv.Md2Tlv( + md2_class = 56, + md2_type = 56, + md2_value = 56, + id = '', ) + ], + remote_vtep_ip_local_count = 56, + remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', + total_tunnel_count = 56, + use_vx_lan_ids = True, + vx_lanid_incr = 56, + vx_lanid_per_vtep_pair_count = 56, + vx_lanid_start = 56, + vx_lan_ids = [ + cyperf.models.vx_lanid.VxLANId( + vx_lan_id = 56, + id = '', ) + ], + vx_lan_range_name = 'YBuLd', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + vx_lan_stack_name = 'YBuLd', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ] + ) + else: + return VxLANStack( + vx_lan_stack_name = 'YBuLd', + id = '', + ) + """ + + def testVxLANStack(self): + """Test VxLANStack""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vx_lanid.py b/test/test_vx_lanid.py new file mode 100644 index 0000000..9e71968 --- /dev/null +++ b/test/test_vx_lanid.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.vx_lanid import VxLANId + +class TestVxLANId(unittest.TestCase): + """VxLANId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VxLANId: + """Test VxLANId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `VxLANId` + """ + model = VxLANId() + if include_optional: + return VxLANId( + vx_lan_id = 56, + id = '' + ) + else: + return VxLANId( + vx_lan_id = 56, + id = '', + ) + """ + + def testVxLANId(self): + """Test VxLANId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() From 5eebb87a2b88e17be015a3f54fff43a073f27092 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 19 Nov 2025 06:45:31 -0700 Subject: [PATCH 09/20] Pull request #48: fix-wrapper-version-integration-tests Merge in ISGAPPSEC/cyperf-api-wrapper from fix-wrapper-version-integration-tests to main Squashed commit of the following: commit 498a9257094abcfdaa912d4a3c95856c70f4227a Author: iustmitu Date: Wed Nov 19 14:28:31 2025 +0200 regenerated wrapper --- README.md | 12 +- cyperf/__init__.py | 7 +- cyperf/api/application_resources_api.py | 4598 ++++++++++------- cyperf/api/configurations_api.py | 546 ++ cyperf/dynamic_models/__init__.py | 7 +- cyperf/models/__init__.py | 7 +- cyperf/models/appsec_app_metadata.py | 14 +- .../appsec_app_metadata_keywords_inner.py | 208 + cyperf/models/attack_metadata.py | 6 +- cyperf/models/command.py | 6 +- cyperf/models/command_metadata.py | 145 + cyperf/models/config_category.py | 24 +- cyperf/models/config_metadata.py | 6 +- cyperf/models/config_sub_category.py | 93 + cyperf/models/generic_file.py | 6 +- cyperf/models/get_apps_operation.py | 121 + ...fig_categorie_subcategories200_response.py | 143 + ...egorie_subcategories200_response_one_of.py | 103 + cyperf/models/metadata.py | 6 +- cyperf/models/open_api_definitions.py | 6 +- cyperf/models/plugin_stats.py | 6 +- cyperf/models/snapshot.py | 6 +- docs/ApplicationResourcesApi.md | 244 +- docs/AppsecAppMetadata.md | 1 + docs/AppsecAppMetadataKeywordsInner.md | 28 + docs/AttackMetadata.md | 2 +- docs/Command.md | 2 +- docs/CommandMetadata.md | 45 + docs/ConfigCategory.md | 2 + docs/ConfigMetadata.md | 2 +- docs/ConfigSubCategory.md | 29 + docs/ConfigurationsApi.md | 161 + docs/GenericFile.md | 2 +- docs/GetAppsOperation.md | 35 + ...ConfigCategorieSubcategories200Response.md | 30 + ...gCategorieSubcategories200ResponseOneOf.md | 30 + docs/Metadata.md | 2 +- docs/OpenAPIDefinitions.md | 2 +- docs/PluginStats.md | 2 +- docs/Snapshot.md | 2 +- test/test_application_resources_api.py | 20 + test/test_application_type.py | 6 +- test/test_appsec_app.py | 3 + test/test_appsec_app_metadata.py | 3 + ...test_appsec_app_metadata_keywords_inner.py | 52 + test/test_command.py | 3 +- test/test_command_metadata.py | 86 + test/test_config_category.py | 16 +- test/test_config_sub_category.py | 53 + test/test_configurations_api.py | 12 + test/test_get_apps_operation.py | 73 + ...fig_categorie_subcategories200_response.py | 57 + ...egorie_subcategories200_response_one_of.py | 57 + .../test_get_config_categories200_response.py | 16 +- ...et_config_categories200_response_one_of.py | 16 +- ...resources_application_types200_response.py | 3 +- ...es_application_types200_response_one_of.py | 3 +- test/test_get_resources_apps200_response.py | 3 + ...t_get_resources_apps200_response_one_of.py | 3 + 59 files changed, 5254 insertions(+), 1928 deletions(-) create mode 100644 cyperf/models/appsec_app_metadata_keywords_inner.py create mode 100644 cyperf/models/command_metadata.py create mode 100644 cyperf/models/config_sub_category.py create mode 100644 cyperf/models/get_apps_operation.py create mode 100644 cyperf/models/get_config_categorie_subcategories200_response.py create mode 100644 cyperf/models/get_config_categorie_subcategories200_response_one_of.py create mode 100644 docs/AppsecAppMetadataKeywordsInner.md create mode 100644 docs/CommandMetadata.md create mode 100644 docs/ConfigSubCategory.md create mode 100644 docs/GetAppsOperation.md create mode 100644 docs/GetConfigCategorieSubcategories200Response.md create mode 100644 docs/GetConfigCategorieSubcategories200ResponseOneOf.md create mode 100644 test/test_appsec_app_metadata_keywords_inner.py create mode 100644 test/test_command_metadata.py create mode 100644 test/test_config_sub_category.py create mode 100644 test/test_get_apps_operation.py create mode 100644 test/test_get_config_categorie_subcategories200_response.py create mode 100644 test/test_get_config_categorie_subcategories200_response_one_of.py diff --git a/README.md b/README.md index 3b2ee6d..99bd935 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_capture_flows**](docs/ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | *ApplicationResourcesApi* | [**get_flow_exchanges**](docs/ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | *ApplicationResourcesApi* | [**get_resources_app_by_id**](docs/ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | +*ApplicationResourcesApi* | [**get_resources_app_categories**](docs/ApplicationResourcesApi.md#get_resources_app_categories) | **GET** /api/v2/resources/app-categories | *ApplicationResourcesApi* | [**get_resources_application_type_by_id**](docs/ApplicationResourcesApi.md#get_resources_application_type_by_id) | **GET** /api/v2/resources/application-types/{applicationTypeId} | *ApplicationResourcesApi* | [**get_resources_application_types**](docs/ApplicationResourcesApi.md#get_resources_application_types) | **GET** /api/v2/resources/application-types | *ApplicationResourcesApi* | [**get_resources_apps**](docs/ApplicationResourcesApi.md#get_resources_apps) | **GET** /api/v2/resources/apps | @@ -218,6 +219,8 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**start_resources_edit_app**](docs/ApplicationResourcesApi.md#start_resources_edit_app) | **POST** /api/v2/resources/operations/edit-app | *ApplicationResourcesApi* | [**start_resources_find_param_matches**](docs/ApplicationResourcesApi.md#start_resources_find_param_matches) | **POST** /api/v2/resources/operations/find-param-matches | *ApplicationResourcesApi* | [**start_resources_flow_library_upload_file**](docs/ApplicationResourcesApi.md#start_resources_flow_library_upload_file) | **POST** /api/v2/resources/flow-library/operations/uploadFile | +*ApplicationResourcesApi* | [**start_resources_get_app_categories**](docs/ApplicationResourcesApi.md#start_resources_get_app_categories) | **POST** /api/v2/resources/operations/get-app-categories | +*ApplicationResourcesApi* | [**start_resources_get_apps**](docs/ApplicationResourcesApi.md#start_resources_get_apps) | **POST** /api/v2/resources/operations/get-apps | *ApplicationResourcesApi* | [**start_resources_get_attack_categories**](docs/ApplicationResourcesApi.md#start_resources_get_attack_categories) | **POST** /api/v2/resources/operations/get-attack-categories | *ApplicationResourcesApi* | [**start_resources_get_attacks**](docs/ApplicationResourcesApi.md#start_resources_get_attacks) | **POST** /api/v2/resources/operations/get-attacks | *ApplicationResourcesApi* | [**start_resources_get_strike_categories**](docs/ApplicationResourcesApi.md#start_resources_get_strike_categories) | **POST** /api/v2/resources/operations/get-strike-categories | @@ -246,6 +249,8 @@ Class | Method | HTTP request | Description *ConfigurationsApi* | [**create_configs**](docs/ConfigurationsApi.md#create_configs) | **POST** /api/v2/configs | *ConfigurationsApi* | [**delete_config**](docs/ConfigurationsApi.md#delete_config) | **DELETE** /api/v2/configs/{configId} | *ConfigurationsApi* | [**get_config_by_id**](docs/ConfigurationsApi.md#get_config_by_id) | **GET** /api/v2/configs/{configId} | +*ConfigurationsApi* | [**get_config_categorie_by_id**](docs/ConfigurationsApi.md#get_config_categorie_by_id) | **GET** /api/v2/config-categories/{configCategorieId} | +*ConfigurationsApi* | [**get_config_categorie_subcategories**](docs/ConfigurationsApi.md#get_config_categorie_subcategories) | **GET** /api/v2/config-categories/{configCategorieId}/subcategories | *ConfigurationsApi* | [**get_config_categories**](docs/ConfigurationsApi.md#get_config_categories) | **GET** /api/v2/config-categories | *ConfigurationsApi* | [**get_configs**](docs/ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | *ConfigurationsApi* | [**get_resources_custom_import_operations**](docs/ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | @@ -414,6 +419,7 @@ Class | Method | HTTP request | Description - [ApplicationType](docs/ApplicationType.md) - [AppsecApp](docs/AppsecApp.md) - [AppsecAppMetadata](docs/AppsecAppMetadata.md) + - [AppsecAppMetadataKeywordsInner](docs/AppsecAppMetadataKeywordsInner.md) - [AppsecAttack](docs/AppsecAttack.md) - [AppsecConfig](docs/AppsecConfig.md) - [ArchiveInfo](docs/ArchiveInfo.md) @@ -422,7 +428,6 @@ Class | Method | HTTP request | Description - [Attack](docs/Attack.md) - [AttackAction](docs/AttackAction.md) - [AttackMetadata](docs/AttackMetadata.md) - - [AttackMetadataKeywordsInner](docs/AttackMetadataKeywordsInner.md) - [AttackObjectivesAndTimeline](docs/AttackObjectivesAndTimeline.md) - [AttackProfile](docs/AttackProfile.md) - [AttackTimelineSegment](docs/AttackTimelineSegment.md) @@ -451,11 +456,13 @@ Class | Method | HTTP request | Description - [CiscoEncapsulation](docs/CiscoEncapsulation.md) - [ClearPortsOwnershipOperation](docs/ClearPortsOwnershipOperation.md) - [Command](docs/Command.md) + - [CommandMetadata](docs/CommandMetadata.md) - [ComputeNode](docs/ComputeNode.md) - [Config](docs/Config.md) - [ConfigCategory](docs/ConfigCategory.md) - [ConfigId](docs/ConfigId.md) - [ConfigMetadata](docs/ConfigMetadata.md) + - [ConfigSubCategory](docs/ConfigSubCategory.md) - [ConfigValidation](docs/ConfigValidation.md) - [Conflict](docs/Conflict.md) - [Connection](docs/Connection.md) @@ -535,11 +542,14 @@ Class | Method | HTTP request | Description - [GetAgents200ResponseOneOf](docs/GetAgents200ResponseOneOf.md) - [GetAgentsTags200Response](docs/GetAgentsTags200Response.md) - [GetAgentsTags200ResponseOneOf](docs/GetAgentsTags200ResponseOneOf.md) + - [GetAppsOperation](docs/GetAppsOperation.md) - [GetAsyncOperationResult200Response](docs/GetAsyncOperationResult200Response.md) - [GetAttacksOperation](docs/GetAttacksOperation.md) - [GetBrokers200Response](docs/GetBrokers200Response.md) - [GetBrokers200ResponseOneOf](docs/GetBrokers200ResponseOneOf.md) - [GetCategoriesOperation](docs/GetCategoriesOperation.md) + - [GetConfigCategorieSubcategories200Response](docs/GetConfigCategorieSubcategories200Response.md) + - [GetConfigCategorieSubcategories200ResponseOneOf](docs/GetConfigCategorieSubcategories200ResponseOneOf.md) - [GetConfigCategories200Response](docs/GetConfigCategories200Response.md) - [GetConfigCategories200ResponseOneOf](docs/GetConfigCategories200ResponseOneOf.md) - [GetConfigs200Response](docs/GetConfigs200Response.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index d81f674..23fa2e8 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -88,6 +88,7 @@ from cyperf.models.application_type import ApplicationType from cyperf.models.appsec_app import AppsecApp from cyperf.models.appsec_app_metadata import AppsecAppMetadata +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.appsec_attack import AppsecAttack from cyperf.models.appsec_config import AppsecConfig from cyperf.models.archive_info import ArchiveInfo @@ -96,7 +97,6 @@ from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.attack_profile import AttackProfile from cyperf.models.attack_timeline_segment import AttackTimelineSegment @@ -125,11 +125,13 @@ from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.compute_node import ComputeNode from cyperf.models.config import Config from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId from cyperf.models.config_metadata import ConfigMetadata +from cyperf.models.config_sub_category import ConfigSubCategory from cyperf.models.config_validation import ConfigValidation from cyperf.models.conflict import Conflict from cyperf.models.connection import Connection @@ -209,11 +211,14 @@ from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf from cyperf.models.get_configs200_response import GetConfigs200Response diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index 3643744..26c605a 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -33,6 +33,7 @@ from cyperf.models.export_apps_operation_input import ExportAppsOperationInput from cyperf.models.find_param_matches_operation import FindParamMatchesOperation from cyperf.models.generic_file import GenericFile +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_categories_operation import GetCategoriesOperation from cyperf.models.get_resources_application_types200_response import GetResourcesApplicationTypes200Response @@ -5557,9 +5558,10 @@ def _get_resources_app_by_id_serialize( @validate_call - def get_resources_application_type_by_id( + def get_resources_app_categories( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5572,13 +5574,14 @@ def get_resources_application_type_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApplicationType: - """get_resources_application_type_by_id + ) -> List[Category]: + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5601,8 +5604,9 @@ def get_resources_application_type_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5610,7 +5614,7 @@ def get_resources_application_type_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5621,9 +5625,10 @@ def get_resources_application_type_by_id( @validate_call - def get_resources_application_type_by_id_with_http_info( + def get_resources_app_categories_with_http_info( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5636,13 +5641,14 @@ def get_resources_application_type_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ApplicationType]: - """get_resources_application_type_by_id + ) -> ApiResponse[List[Category]]: + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5665,8 +5671,9 @@ def get_resources_application_type_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5674,7 +5681,7 @@ def get_resources_application_type_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5685,9 +5692,10 @@ def get_resources_application_type_by_id_with_http_info( @validate_call - def get_resources_application_type_by_id_without_preload_content( + def get_resources_app_categories_without_preload_content( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5701,12 +5709,13 @@ def get_resources_application_type_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_application_type_by_id + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5729,8 +5738,9 @@ def get_resources_application_type_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5738,7 +5748,7 @@ def get_resources_application_type_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5748,9 +5758,10 @@ def get_resources_application_type_by_id_without_preload_content( ) - def _get_resources_application_type_by_id_serialize( + def _get_resources_app_categories_serialize( self, - application_type_id, + take, + skip, _request_auth, _content_type, _headers, @@ -5770,9 +5781,15 @@ def _get_resources_application_type_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if application_type_id is not None: - _path_params['applicationTypeId'] = application_type_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -5795,7 +5812,7 @@ def _get_resources_application_type_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/application-types/{applicationTypeId}', + resource_path='/api/v2/resources/app-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5812,10 +5829,9 @@ def _get_resources_application_type_by_id_serialize( @validate_call - def get_resources_application_types( + def get_resources_application_type_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5828,15 +5844,13 @@ def get_resources_application_types( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApplicationTypes200Response: - """get_resources_application_types + ) -> ApplicationType: + """get_resources_application_type_by_id - Get all the available applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5859,9 +5873,8 @@ def get_resources_application_types( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( - take=take, - skip=skip, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5869,7 +5882,7 @@ def get_resources_application_types( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5880,10 +5893,9 @@ def get_resources_application_types( @validate_call - def get_resources_application_types_with_http_info( + def get_resources_application_type_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5896,15 +5908,13 @@ def get_resources_application_types_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApplicationTypes200Response]: - """get_resources_application_types + ) -> ApiResponse[ApplicationType]: + """get_resources_application_type_by_id - Get all the available applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5927,9 +5937,8 @@ def get_resources_application_types_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( - take=take, - skip=skip, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5937,7 +5946,7 @@ def get_resources_application_types_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5948,10 +5957,9 @@ def get_resources_application_types_with_http_info( @validate_call - def get_resources_application_types_without_preload_content( + def get_resources_application_type_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5965,14 +5973,12 @@ def get_resources_application_types_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_application_types + """get_resources_application_type_by_id - Get all the available applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5995,9 +6001,8 @@ def get_resources_application_types_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( - take=take, - skip=skip, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6005,7 +6010,7 @@ def get_resources_application_types_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6015,10 +6020,9 @@ def get_resources_application_types_without_preload_content( ) - def _get_resources_application_types_serialize( + def _get_resources_application_type_by_id_serialize( self, - take, - skip, + application_type_id, _request_auth, _content_type, _headers, @@ -6038,15 +6042,9 @@ def _get_resources_application_types_serialize( _body_params: Optional[bytes] = None # process the path parameters + if application_type_id is not None: + _path_params['applicationTypeId'] = application_type_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -6069,7 +6067,7 @@ def _get_resources_application_types_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/application-types', + resource_path='/api/v2/resources/application-types/{applicationTypeId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6086,14 +6084,10 @@ def _get_resources_application_types_serialize( @validate_call - def get_resources_apps( + def get_resources_application_types( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6106,23 +6100,15 @@ def get_resources_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApps200Response: - """get_resources_apps + ) -> GetResourcesApplicationTypes200Response: + """get_resources_application_types - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6145,13 +6131,9 @@ def get_resources_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_apps_serialize( + _param = self._get_resources_application_types_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6159,8 +6141,7 @@ def get_resources_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '401': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6171,14 +6152,10 @@ def get_resources_apps( @validate_call - def get_resources_apps_with_http_info( + def get_resources_application_types_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6191,23 +6168,15 @@ def get_resources_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApps200Response]: - """get_resources_apps + ) -> ApiResponse[GetResourcesApplicationTypes200Response]: + """get_resources_application_types - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6230,13 +6199,9 @@ def get_resources_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_apps_serialize( + _param = self._get_resources_application_types_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6244,8 +6209,7 @@ def get_resources_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '401': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6256,14 +6220,10 @@ def get_resources_apps_with_http_info( @validate_call - def get_resources_apps_without_preload_content( + def get_resources_application_types_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6277,22 +6237,14 @@ def get_resources_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_apps + """get_resources_application_types - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6315,13 +6267,9 @@ def get_resources_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_apps_serialize( + _param = self._get_resources_application_types_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6329,8 +6277,7 @@ def get_resources_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '401': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6340,14 +6287,10 @@ def get_resources_apps_without_preload_content( ) - def _get_resources_apps_serialize( + def _get_resources_application_types_serialize( self, take, skip, - search_col, - search_val, - filter_mode, - sort, _request_auth, _content_type, _headers, @@ -6376,22 +6319,6 @@ def _get_resources_apps_serialize( _query_params.append(('skip', skip)) - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - # process the header parameters # process the form parameters # process the body parameter @@ -6414,7 +6341,7 @@ def _get_resources_apps_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/apps', + resource_path='/api/v2/resources/application-types', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6431,9 +6358,15 @@ def _get_resources_apps_serialize( @validate_call - def get_resources_attack_by_id( + def get_resources_apps( self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6446,13 +6379,25 @@ def get_resources_attack_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppsecAttack: - """get_resources_attack_by_id + ) -> GetResourcesApps200Response: + """get_resources_apps - Get a particular CyPerf attack. + Get all the available CyPerf applications. - :param attack_id: The ID of the attack. (required) - :type attack_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6475,8 +6420,14 @@ def get_resources_attack_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_by_id_serialize( - attack_id=attack_id, + _param = self._get_resources_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6484,9 +6435,9 @@ def get_resources_attack_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6497,9 +6448,15 @@ def get_resources_attack_by_id( @validate_call - def get_resources_attack_by_id_with_http_info( + def get_resources_apps_with_http_info( self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6512,13 +6469,25 @@ def get_resources_attack_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AppsecAttack]: - """get_resources_attack_by_id + ) -> ApiResponse[GetResourcesApps200Response]: + """get_resources_apps - Get a particular CyPerf attack. + Get all the available CyPerf applications. - :param attack_id: The ID of the attack. (required) - :type attack_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6541,8 +6510,14 @@ def get_resources_attack_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_by_id_serialize( - attack_id=attack_id, + _param = self._get_resources_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6550,9 +6525,9 @@ def get_resources_attack_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6563,9 +6538,15 @@ def get_resources_attack_by_id_with_http_info( @validate_call - def get_resources_attack_by_id_without_preload_content( + def get_resources_apps_without_preload_content( self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6579,12 +6560,24 @@ def get_resources_attack_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_attack_by_id + """get_resources_apps - Get a particular CyPerf attack. + Get all the available CyPerf applications. - :param attack_id: The ID of the attack. (required) - :type attack_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6607,8 +6600,14 @@ def get_resources_attack_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_by_id_serialize( - attack_id=attack_id, + _param = self._get_resources_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6616,9 +6615,9 @@ def get_resources_attack_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6628,9 +6627,15 @@ def get_resources_attack_by_id_without_preload_content( ) - def _get_resources_attack_by_id_serialize( + def _get_resources_apps_serialize( self, - attack_id, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + categories, _request_auth, _content_type, _headers, @@ -6650,9 +6655,35 @@ def _get_resources_attack_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if attack_id is not None: - _path_params['attackId'] = attack_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if categories is not None: + + _query_params.append(('categories', categories)) + # process the header parameters # process the form parameters # process the body parameter @@ -6675,7 +6706,7 @@ def _get_resources_attack_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/attacks/{attackId}', + resource_path='/api/v2/resources/apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6692,10 +6723,9 @@ def _get_resources_attack_by_id_serialize( @validate_call - def get_resources_attack_categories( + def get_resources_attack_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6708,14 +6738,13 @@ def get_resources_attack_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Category]: - """get_resources_attack_categories + ) -> AppsecAttack: + """get_resources_attack_by_id + Get a particular CyPerf attack. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6738,9 +6767,8 @@ def get_resources_attack_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6748,7 +6776,9 @@ def get_resources_attack_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "AppsecAttack", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6759,10 +6789,9 @@ def get_resources_attack_categories( @validate_call - def get_resources_attack_categories_with_http_info( + def get_resources_attack_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6775,14 +6804,13 @@ def get_resources_attack_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Category]]: - """get_resources_attack_categories + ) -> ApiResponse[AppsecAttack]: + """get_resources_attack_by_id + Get a particular CyPerf attack. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6805,9 +6833,8 @@ def get_resources_attack_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6815,7 +6842,9 @@ def get_resources_attack_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "AppsecAttack", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6826,10 +6855,9 @@ def get_resources_attack_categories_with_http_info( @validate_call - def get_resources_attack_categories_without_preload_content( + def get_resources_attack_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6843,13 +6871,12 @@ def get_resources_attack_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_attack_categories + """get_resources_attack_by_id + Get a particular CyPerf attack. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6872,9 +6899,8 @@ def get_resources_attack_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6882,8 +6908,10 @@ def get_resources_attack_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", - '500': "ErrorResponse", + '200': "AppsecAttack", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -6892,10 +6920,9 @@ def get_resources_attack_categories_without_preload_content( ) - def _get_resources_attack_categories_serialize( + def _get_resources_attack_by_id_serialize( self, - take, - skip, + attack_id, _request_auth, _content_type, _headers, @@ -6915,15 +6942,9 @@ def _get_resources_attack_categories_serialize( _body_params: Optional[bytes] = None # process the path parameters + if attack_id is not None: + _path_params['attackId'] = attack_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -6946,7 +6967,7 @@ def _get_resources_attack_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/attack-categories', + resource_path='/api/v2/resources/attacks/{attackId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6963,15 +6984,10 @@ def _get_resources_attack_categories_serialize( @validate_call - def get_resources_attacks( + def get_resources_attack_categories( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6984,25 +7000,14 @@ def get_resources_attacks( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesAttacks200Response: - """get_resources_attacks + ) -> List[Category]: + """get_resources_attack_categories - Get all the available CyPerf attacks. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7025,14 +7030,9 @@ def get_resources_attacks( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attacks_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7040,9 +7040,7 @@ def get_resources_attacks( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7053,15 +7051,10 @@ def get_resources_attacks( @validate_call - def get_resources_attacks_with_http_info( + def get_resources_attack_categories_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7074,25 +7067,14 @@ def get_resources_attacks_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesAttacks200Response]: - """get_resources_attacks + ) -> ApiResponse[List[Category]]: + """get_resources_attack_categories - Get all the available CyPerf attacks. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7115,14 +7097,9 @@ def get_resources_attacks_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attacks_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7130,9 +7107,7 @@ def get_resources_attacks_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7143,15 +7118,10 @@ def get_resources_attacks_with_http_info( @validate_call - def get_resources_attacks_without_preload_content( + def get_resources_attack_categories_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7165,24 +7135,13 @@ def get_resources_attacks_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_attacks + """get_resources_attack_categories - Get all the available CyPerf attacks. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7205,14 +7164,9 @@ def get_resources_attacks_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attacks_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7220,9 +7174,7 @@ def get_resources_attacks_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7232,15 +7184,10 @@ def get_resources_attacks_without_preload_content( ) - def _get_resources_attacks_serialize( + def _get_resources_attack_categories_serialize( self, take, skip, - search_col, - search_val, - filter_mode, - sort, - categories, _request_auth, _content_type, _headers, @@ -7269,26 +7216,6 @@ def _get_resources_attacks_serialize( _query_params.append(('skip', skip)) - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - - if categories is not None: - - _query_params.append(('categories', categories)) - # process the header parameters # process the form parameters # process the body parameter @@ -7311,7 +7238,7 @@ def _get_resources_attacks_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/attacks', + resource_path='/api/v2/resources/attack-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7328,9 +7255,15 @@ def _get_resources_attacks_serialize( @validate_call - def get_resources_auth_profile_by_id( + def get_resources_attacks( self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7343,13 +7276,25 @@ def get_resources_auth_profile_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AuthProfile: - """get_resources_auth_profile_by_id + ) -> GetResourcesAttacks200Response: + """get_resources_attacks - Get a particular Auth profile. + Get all the available CyPerf attacks. - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7372,8 +7317,14 @@ def get_resources_auth_profile_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7381,8 +7332,9 @@ def get_resources_auth_profile_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '404': "ErrorResponse", + '200': "GetResourcesAttacks200Response", + '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7393,9 +7345,15 @@ def get_resources_auth_profile_by_id( @validate_call - def get_resources_auth_profile_by_id_with_http_info( + def get_resources_attacks_with_http_info( self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7408,13 +7366,25 @@ def get_resources_auth_profile_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AuthProfile]: - """get_resources_auth_profile_by_id + ) -> ApiResponse[GetResourcesAttacks200Response]: + """get_resources_attacks - Get a particular Auth profile. + Get all the available CyPerf attacks. - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7437,8 +7407,14 @@ def get_resources_auth_profile_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7446,8 +7422,9 @@ def get_resources_auth_profile_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '404': "ErrorResponse", + '200': "GetResourcesAttacks200Response", + '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7458,9 +7435,15 @@ def get_resources_auth_profile_by_id_with_http_info( @validate_call - def get_resources_auth_profile_by_id_without_preload_content( + def get_resources_attacks_without_preload_content( self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7474,12 +7457,24 @@ def get_resources_auth_profile_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_auth_profile_by_id + """get_resources_attacks - Get a particular Auth profile. + Get all the available CyPerf attacks. - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7502,8 +7497,14 @@ def get_resources_auth_profile_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7511,8 +7512,9 @@ def get_resources_auth_profile_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '404': "ErrorResponse", + '200': "GetResourcesAttacks200Response", + '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7522,9 +7524,15 @@ def get_resources_auth_profile_by_id_without_preload_content( ) - def _get_resources_auth_profile_by_id_serialize( + def _get_resources_attacks_serialize( self, - auth_profile_id, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + categories, _request_auth, _content_type, _headers, @@ -7544,9 +7552,35 @@ def _get_resources_auth_profile_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if auth_profile_id is not None: - _path_params['authProfileId'] = auth_profile_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if categories is not None: + + _query_params.append(('categories', categories)) + # process the header parameters # process the form parameters # process the body parameter @@ -7569,7 +7603,7 @@ def _get_resources_auth_profile_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/auth-profiles/{authProfileId}', + resource_path='/api/v2/resources/attacks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7586,10 +7620,9 @@ def _get_resources_auth_profile_by_id_serialize( @validate_call - def get_resources_auth_profiles( + def get_resources_auth_profile_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7602,15 +7635,13 @@ def get_resources_auth_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesAuthProfiles200Response: - """get_resources_auth_profiles + ) -> AuthProfile: + """get_resources_auth_profile_by_id - Get all the available Auth profiles. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7633,9 +7664,8 @@ def get_resources_auth_profiles( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7643,7 +7673,8 @@ def get_resources_auth_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAuthProfiles200Response", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7654,10 +7685,9 @@ def get_resources_auth_profiles( @validate_call - def get_resources_auth_profiles_with_http_info( + def get_resources_auth_profile_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7670,15 +7700,13 @@ def get_resources_auth_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesAuthProfiles200Response]: - """get_resources_auth_profiles + ) -> ApiResponse[AuthProfile]: + """get_resources_auth_profile_by_id - Get all the available Auth profiles. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7701,9 +7729,8 @@ def get_resources_auth_profiles_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7711,7 +7738,8 @@ def get_resources_auth_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAuthProfiles200Response", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7722,10 +7750,9 @@ def get_resources_auth_profiles_with_http_info( @validate_call - def get_resources_auth_profiles_without_preload_content( + def get_resources_auth_profile_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7739,14 +7766,12 @@ def get_resources_auth_profiles_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_auth_profiles + """get_resources_auth_profile_by_id - Get all the available Auth profiles. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7769,9 +7794,8 @@ def get_resources_auth_profiles_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7779,7 +7803,8 @@ def get_resources_auth_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAuthProfiles200Response", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7789,10 +7814,9 @@ def get_resources_auth_profiles_without_preload_content( ) - def _get_resources_auth_profiles_serialize( + def _get_resources_auth_profile_by_id_serialize( self, - take, - skip, + auth_profile_id, _request_auth, _content_type, _headers, @@ -7812,15 +7836,9 @@ def _get_resources_auth_profiles_serialize( _body_params: Optional[bytes] = None # process the path parameters + if auth_profile_id is not None: + _path_params['authProfileId'] = auth_profile_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -7843,7 +7861,7 @@ def _get_resources_auth_profiles_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/auth-profiles', + resource_path='/api/v2/resources/auth-profiles/{authProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7860,9 +7878,10 @@ def _get_resources_auth_profiles_serialize( @validate_call - def get_resources_capture_by_id( + def get_resources_auth_profiles( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7875,13 +7894,15 @@ def get_resources_capture_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReplayCapture: - """get_resources_capture_by_id + ) -> GetResourcesAuthProfiles200Response: + """get_resources_auth_profiles - Get a particular CyPerf capture loaded by the user. + Get all the available Auth profiles. - :param capture_id: The ID of the capture. (required) - :type capture_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7904,8 +7925,9 @@ def get_resources_capture_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_capture_by_id_serialize( - capture_id=capture_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7913,9 +7935,7 @@ def get_resources_capture_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7926,9 +7946,10 @@ def get_resources_capture_by_id( @validate_call - def get_resources_capture_by_id_with_http_info( + def get_resources_auth_profiles_with_http_info( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7941,13 +7962,15 @@ def get_resources_capture_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReplayCapture]: - """get_resources_capture_by_id + ) -> ApiResponse[GetResourcesAuthProfiles200Response]: + """get_resources_auth_profiles - Get a particular CyPerf capture loaded by the user. + Get all the available Auth profiles. - :param capture_id: The ID of the capture. (required) - :type capture_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7970,8 +7993,9 @@ def get_resources_capture_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_capture_by_id_serialize( - capture_id=capture_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7979,9 +8003,7 @@ def get_resources_capture_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7992,9 +8014,10 @@ def get_resources_capture_by_id_with_http_info( @validate_call - def get_resources_capture_by_id_without_preload_content( + def get_resources_auth_profiles_without_preload_content( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8008,12 +8031,14 @@ def get_resources_capture_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_capture_by_id + """get_resources_auth_profiles - Get a particular CyPerf capture loaded by the user. + Get all the available Auth profiles. - :param capture_id: The ID of the capture. (required) - :type capture_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8036,8 +8061,9 @@ def get_resources_capture_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_capture_by_id_serialize( - capture_id=capture_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8045,9 +8071,7 @@ def get_resources_capture_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8057,9 +8081,10 @@ def get_resources_capture_by_id_without_preload_content( ) - def _get_resources_capture_by_id_serialize( + def _get_resources_auth_profiles_serialize( self, - capture_id, + take, + skip, _request_auth, _content_type, _headers, @@ -8079,9 +8104,15 @@ def _get_resources_capture_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if capture_id is not None: - _path_params['captureId'] = capture_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -8104,7 +8135,7 @@ def _get_resources_capture_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/{captureId}', + resource_path='/api/v2/resources/auth-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8121,10 +8152,9 @@ def _get_resources_capture_by_id_serialize( @validate_call - def get_resources_captures( + def get_resources_capture_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8137,14 +8167,13 @@ def get_resources_captures( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ReplayCapture]: - """get_resources_captures + ) -> ReplayCapture: + """get_resources_capture_by_id + Get a particular CyPerf capture loaded by the user. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param capture_id: The ID of the capture. (required) + :type capture_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8167,9 +8196,8 @@ def get_resources_captures( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_serialize( - take=take, - skip=skip, + _param = self._get_resources_capture_by_id_serialize( + capture_id=capture_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8177,7 +8205,9 @@ def get_resources_captures( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", + '200': "ReplayCapture", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8188,10 +8218,9 @@ def get_resources_captures( @validate_call - def get_resources_captures_with_http_info( + def get_resources_capture_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8204,14 +8233,13 @@ def get_resources_captures_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ReplayCapture]]: - """get_resources_captures + ) -> ApiResponse[ReplayCapture]: + """get_resources_capture_by_id + Get a particular CyPerf capture loaded by the user. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param capture_id: The ID of the capture. (required) + :type capture_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8234,9 +8262,8 @@ def get_resources_captures_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_serialize( - take=take, - skip=skip, + _param = self._get_resources_capture_by_id_serialize( + capture_id=capture_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8244,7 +8271,9 @@ def get_resources_captures_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", + '200': "ReplayCapture", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8255,10 +8284,9 @@ def get_resources_captures_with_http_info( @validate_call - def get_resources_captures_without_preload_content( + def get_resources_capture_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8272,13 +8300,12 @@ def get_resources_captures_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_captures + """get_resources_capture_by_id + Get a particular CyPerf capture loaded by the user. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param capture_id: The ID of the capture. (required) + :type capture_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8301,9 +8328,8 @@ def get_resources_captures_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_serialize( - take=take, - skip=skip, + _param = self._get_resources_capture_by_id_serialize( + capture_id=capture_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8311,7 +8337,9 @@ def get_resources_captures_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", + '200': "ReplayCapture", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8321,10 +8349,9 @@ def get_resources_captures_without_preload_content( ) - def _get_resources_captures_serialize( + def _get_resources_capture_by_id_serialize( self, - take, - skip, + capture_id, _request_auth, _content_type, _headers, @@ -8344,15 +8371,9 @@ def _get_resources_captures_serialize( _body_params: Optional[bytes] = None # process the path parameters + if capture_id is not None: + _path_params['captureId'] = capture_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -8375,7 +8396,7 @@ def _get_resources_captures_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures', + resource_path='/api/v2/resources/captures/{captureId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8392,9 +8413,10 @@ def _get_resources_captures_serialize( @validate_call - def get_resources_captures_encrypted_upload_file_result( + def get_resources_captures( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8407,13 +8429,14 @@ def get_resources_captures_encrypted_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_captures_encrypted_upload_file_result + ) -> List[ReplayCapture]: + """get_resources_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8436,8 +8459,9 @@ def get_resources_captures_encrypted_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_encrypted_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8445,8 +8469,7 @@ def get_resources_captures_encrypted_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8457,9 +8480,10 @@ def get_resources_captures_encrypted_upload_file_result( @validate_call - def get_resources_captures_encrypted_upload_file_result_with_http_info( + def get_resources_captures_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8472,13 +8496,14 @@ def get_resources_captures_encrypted_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_captures_encrypted_upload_file_result + ) -> ApiResponse[List[ReplayCapture]]: + """get_resources_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8501,8 +8526,9 @@ def get_resources_captures_encrypted_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_encrypted_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8510,8 +8536,7 @@ def get_resources_captures_encrypted_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8522,9 +8547,10 @@ def get_resources_captures_encrypted_upload_file_result_with_http_info( @validate_call - def get_resources_captures_encrypted_upload_file_result_without_preload_content( + def get_resources_captures_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8538,12 +8564,13 @@ def get_resources_captures_encrypted_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_captures_encrypted_upload_file_result + """get_resources_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8566,8 +8593,9 @@ def get_resources_captures_encrypted_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_encrypted_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8575,8 +8603,7 @@ def get_resources_captures_encrypted_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8586,9 +8613,10 @@ def get_resources_captures_encrypted_upload_file_result_without_preload_content( ) - def _get_resources_captures_encrypted_upload_file_result_serialize( + def _get_resources_captures_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -8608,9 +8636,15 @@ def _get_resources_captures_encrypted_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -8633,7 +8667,7 @@ def _get_resources_captures_encrypted_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/captures', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8650,7 +8684,7 @@ def _get_resources_captures_encrypted_upload_file_result_serialize( @validate_call - def get_resources_captures_upload_file_result( + def get_resources_captures_encrypted_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -8666,7 +8700,7 @@ def get_resources_captures_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_captures_upload_file_result + """get_resources_captures_encrypted_upload_file_result Get the result of the upload file operation. @@ -8694,7 +8728,7 @@ def get_resources_captures_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_upload_file_result_serialize( + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8715,7 +8749,7 @@ def get_resources_captures_upload_file_result( @validate_call - def get_resources_captures_upload_file_result_with_http_info( + def get_resources_captures_encrypted_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -8731,7 +8765,7 @@ def get_resources_captures_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_captures_upload_file_result + """get_resources_captures_encrypted_upload_file_result Get the result of the upload file operation. @@ -8759,7 +8793,7 @@ def get_resources_captures_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_upload_file_result_serialize( + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8780,7 +8814,7 @@ def get_resources_captures_upload_file_result_with_http_info( @validate_call - def get_resources_captures_upload_file_result_without_preload_content( + def get_resources_captures_encrypted_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -8796,7 +8830,7 @@ def get_resources_captures_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_captures_upload_file_result + """get_resources_captures_encrypted_upload_file_result Get the result of the upload file operation. @@ -8824,7 +8858,7 @@ def get_resources_captures_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_upload_file_result_serialize( + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8844,7 +8878,7 @@ def get_resources_captures_upload_file_result_without_preload_content( ) - def _get_resources_captures_upload_file_result_serialize( + def _get_resources_captures_encrypted_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -8891,7 +8925,7 @@ def _get_resources_captures_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8908,9 +8942,9 @@ def _get_resources_captures_upload_file_result_serialize( @validate_call - def get_resources_certificate_by_id( + def get_resources_captures_upload_file_result( self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8923,13 +8957,13 @@ def get_resources_certificate_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_certificate_by_id + ) -> None: + """get_resources_captures_upload_file_result - Get a particular certificates archive file. + Get the result of the upload file operation. - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8952,8 +8986,8 @@ def get_resources_certificate_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_by_id_serialize( - certificate_id=certificate_id, + _param = self._get_resources_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8961,9 +8995,8 @@ def get_resources_certificate_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8974,9 +9007,9 @@ def get_resources_certificate_by_id( @validate_call - def get_resources_certificate_by_id_with_http_info( + def get_resources_captures_upload_file_result_with_http_info( self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8989,13 +9022,13 @@ def get_resources_certificate_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_certificate_by_id + ) -> ApiResponse[None]: + """get_resources_captures_upload_file_result - Get a particular certificates archive file. + Get the result of the upload file operation. - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9018,8 +9051,8 @@ def get_resources_certificate_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_by_id_serialize( - certificate_id=certificate_id, + _param = self._get_resources_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9027,9 +9060,8 @@ def get_resources_certificate_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9040,9 +9072,9 @@ def get_resources_certificate_by_id_with_http_info( @validate_call - def get_resources_certificate_by_id_without_preload_content( + def get_resources_captures_upload_file_result_without_preload_content( self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9056,12 +9088,12 @@ def get_resources_certificate_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_certificate_by_id + """get_resources_captures_upload_file_result - Get a particular certificates archive file. + Get the result of the upload file operation. - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9084,8 +9116,8 @@ def get_resources_certificate_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_by_id_serialize( - certificate_id=certificate_id, + _param = self._get_resources_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9093,9 +9125,8 @@ def get_resources_certificate_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9105,9 +9136,9 @@ def get_resources_certificate_by_id_without_preload_content( ) - def _get_resources_certificate_by_id_serialize( + def _get_resources_captures_upload_file_result_serialize( self, - certificate_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -9127,8 +9158,8 @@ def _get_resources_certificate_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if certificate_id is not None: - _path_params['certificateId'] = certificate_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -9152,7 +9183,7 @@ def _get_resources_certificate_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates/{certificateId}', + resource_path='/api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9169,7 +9200,7 @@ def _get_resources_certificate_by_id_serialize( @validate_call - def get_resources_certificate_content_file( + def get_resources_certificate_by_id( self, certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ @@ -9184,10 +9215,10 @@ def get_resources_certificate_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_certificate_content_file + ) -> GenericFile: + """get_resources_certificate_by_id - Get the content of a particular certificate archive file. + Get a particular certificates archive file. :param certificate_id: The ID of the certificate. (required) :type certificate_id: str @@ -9213,7 +9244,7 @@ def get_resources_certificate_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_content_file_serialize( + _param = self._get_resources_certificate_by_id_serialize( certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9222,8 +9253,10 @@ def get_resources_certificate_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9233,7 +9266,7 @@ def get_resources_certificate_content_file( @validate_call - def get_resources_certificate_content_file_with_http_info( + def get_resources_certificate_by_id_with_http_info( self, certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ @@ -9248,10 +9281,10 @@ def get_resources_certificate_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_certificate_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_certificate_by_id - Get the content of a particular certificate archive file. + Get a particular certificates archive file. :param certificate_id: The ID of the certificate. (required) :type certificate_id: str @@ -9277,7 +9310,7 @@ def get_resources_certificate_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_content_file_serialize( + _param = self._get_resources_certificate_by_id_serialize( certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9286,8 +9319,10 @@ def get_resources_certificate_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9297,7 +9332,7 @@ def get_resources_certificate_content_file_with_http_info( @validate_call - def get_resources_certificate_content_file_without_preload_content( + def get_resources_certificate_by_id_without_preload_content( self, certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ @@ -9313,9 +9348,9 @@ def get_resources_certificate_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_certificate_content_file + """get_resources_certificate_by_id - Get the content of a particular certificate archive file. + Get a particular certificates archive file. :param certificate_id: The ID of the certificate. (required) :type certificate_id: str @@ -9341,7 +9376,7 @@ def get_resources_certificate_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_content_file_serialize( + _param = self._get_resources_certificate_by_id_serialize( certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9350,8 +9385,10 @@ def get_resources_certificate_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9360,7 +9397,7 @@ def get_resources_certificate_content_file_without_preload_content( ) - def _get_resources_certificate_content_file_serialize( + def _get_resources_certificate_by_id_serialize( self, certificate_id, _request_auth, @@ -9394,7 +9431,6 @@ def _get_resources_certificate_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -9408,7 +9444,7 @@ def _get_resources_certificate_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates/{certificateId}/contentFile', + resource_path='/api/v2/resources/certificates/{certificateId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9425,10 +9461,9 @@ def _get_resources_certificate_content_file_serialize( @validate_call - def get_resources_certificates( + def get_resources_certificate_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9441,15 +9476,13 @@ def get_resources_certificates( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_certificates + ) -> bytearray: + """get_resources_certificate_content_file - Get all the available certificates files. + Get the content of a particular certificate archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9472,9 +9505,8 @@ def get_resources_certificates( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9482,9 +9514,8 @@ def get_resources_certificates( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9494,10 +9525,9 @@ def get_resources_certificates( @validate_call - def get_resources_certificates_with_http_info( + def get_resources_certificate_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9510,15 +9540,13 @@ def get_resources_certificates_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_certificates + ) -> ApiResponse[bytearray]: + """get_resources_certificate_content_file - Get all the available certificates files. + Get the content of a particular certificate archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9541,9 +9569,8 @@ def get_resources_certificates_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9551,9 +9578,8 @@ def get_resources_certificates_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9563,10 +9589,9 @@ def get_resources_certificates_with_http_info( @validate_call - def get_resources_certificates_without_preload_content( + def get_resources_certificate_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9580,14 +9605,12 @@ def get_resources_certificates_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_certificates + """get_resources_certificate_content_file - Get all the available certificates files. + Get the content of a particular certificate archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9610,9 +9633,8 @@ def get_resources_certificates_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9620,9 +9642,8 @@ def get_resources_certificates_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9631,10 +9652,9 @@ def get_resources_certificates_without_preload_content( ) - def _get_resources_certificates_serialize( + def _get_resources_certificate_content_file_serialize( self, - take, - skip, + certificate_id, _request_auth, _content_type, _headers, @@ -9654,15 +9674,9 @@ def _get_resources_certificates_serialize( _body_params: Optional[bytes] = None # process the path parameters + if certificate_id is not None: + _path_params['certificateId'] = certificate_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -9672,6 +9686,7 @@ def _get_resources_certificates_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -9685,7 +9700,7 @@ def _get_resources_certificates_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates', + resource_path='/api/v2/resources/certificates/{certificateId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9702,9 +9717,10 @@ def _get_resources_certificates_serialize( @validate_call - def get_resources_certificates_upload_file_result( + def get_resources_certificates( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9717,13 +9733,15 @@ def get_resources_certificates_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_certificates_upload_file_result + ) -> GetResourcesCertificates200Response: + """get_resources_certificates - Get the result of the upload file operation. + Get all the available certificates files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9746,8 +9764,9 @@ def get_resources_certificates_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9755,8 +9774,8 @@ def get_resources_certificates_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9767,9 +9786,10 @@ def get_resources_certificates_upload_file_result( @validate_call - def get_resources_certificates_upload_file_result_with_http_info( + def get_resources_certificates_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9782,13 +9802,15 @@ def get_resources_certificates_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_certificates_upload_file_result + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_certificates - Get the result of the upload file operation. + Get all the available certificates files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9811,8 +9833,9 @@ def get_resources_certificates_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9820,8 +9843,8 @@ def get_resources_certificates_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9832,9 +9855,10 @@ def get_resources_certificates_upload_file_result_with_http_info( @validate_call - def get_resources_certificates_upload_file_result_without_preload_content( + def get_resources_certificates_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9848,12 +9872,14 @@ def get_resources_certificates_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_certificates_upload_file_result + """get_resources_certificates - Get the result of the upload file operation. + Get all the available certificates files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9876,8 +9902,9 @@ def get_resources_certificates_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9885,8 +9912,8 @@ def get_resources_certificates_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9896,9 +9923,10 @@ def get_resources_certificates_upload_file_result_without_preload_content( ) - def _get_resources_certificates_upload_file_result_serialize( + def _get_resources_certificates_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -9918,9 +9946,15 @@ def _get_resources_certificates_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -9943,7 +9977,7 @@ def _get_resources_certificates_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/certificates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9960,9 +9994,9 @@ def _get_resources_certificates_upload_file_result_serialize( @validate_call - def get_resources_custom_fuzzing_script_by_id( + def get_resources_certificates_upload_file_result( self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9975,13 +10009,13 @@ def get_resources_custom_fuzzing_script_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_custom_fuzzing_script_by_id + ) -> None: + """get_resources_certificates_upload_file_result - Get a particular custom fuzzing script. + Get the result of the upload file operation. - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10004,8 +10038,8 @@ def get_resources_custom_fuzzing_script_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_id, + _param = self._get_resources_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10013,9 +10047,8 @@ def get_resources_custom_fuzzing_script_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10026,9 +10059,9 @@ def get_resources_custom_fuzzing_script_by_id( @validate_call - def get_resources_custom_fuzzing_script_by_id_with_http_info( + def get_resources_certificates_upload_file_result_with_http_info( self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10041,13 +10074,13 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_custom_fuzzing_script_by_id + ) -> ApiResponse[None]: + """get_resources_certificates_upload_file_result - Get a particular custom fuzzing script. + Get the result of the upload file operation. - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10070,8 +10103,8 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_id, + _param = self._get_resources_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10079,9 +10112,8 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10092,9 +10124,9 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( @validate_call - def get_resources_custom_fuzzing_script_by_id_without_preload_content( + def get_resources_certificates_upload_file_result_without_preload_content( self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10108,12 +10140,12 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_fuzzing_script_by_id + """get_resources_certificates_upload_file_result - Get a particular custom fuzzing script. + Get the result of the upload file operation. - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10136,8 +10168,8 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_id, + _param = self._get_resources_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10145,9 +10177,8 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10157,9 +10188,9 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( ) - def _get_resources_custom_fuzzing_script_by_id_serialize( + def _get_resources_certificates_upload_file_result_serialize( self, - custom_fuzzing_script_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -10179,8 +10210,8 @@ def _get_resources_custom_fuzzing_script_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if custom_fuzzing_script_id is not None: - _path_params['customFuzzingScriptId'] = custom_fuzzing_script_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -10204,7 +10235,7 @@ def _get_resources_custom_fuzzing_script_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}', + resource_path='/api/v2/resources/certificates/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10221,7 +10252,7 @@ def _get_resources_custom_fuzzing_script_by_id_serialize( @validate_call - def get_resources_custom_fuzzing_script_content_file( + def get_resources_custom_fuzzing_script_by_id( self, custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ @@ -10236,10 +10267,10 @@ def get_resources_custom_fuzzing_script_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_custom_fuzzing_script_content_file + ) -> GenericFile: + """get_resources_custom_fuzzing_script_by_id - Get the content of a particular custom fuzzing script file. + Get a particular custom fuzzing script. :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) :type custom_fuzzing_script_id: str @@ -10265,7 +10296,7 @@ def get_resources_custom_fuzzing_script_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10274,8 +10305,10 @@ def get_resources_custom_fuzzing_script_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10285,7 +10318,7 @@ def get_resources_custom_fuzzing_script_content_file( @validate_call - def get_resources_custom_fuzzing_script_content_file_with_http_info( + def get_resources_custom_fuzzing_script_by_id_with_http_info( self, custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ @@ -10300,10 +10333,10 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_custom_fuzzing_script_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_custom_fuzzing_script_by_id - Get the content of a particular custom fuzzing script file. + Get a particular custom fuzzing script. :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) :type custom_fuzzing_script_id: str @@ -10329,7 +10362,7 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10338,8 +10371,10 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10349,7 +10384,7 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( @validate_call - def get_resources_custom_fuzzing_script_content_file_without_preload_content( + def get_resources_custom_fuzzing_script_by_id_without_preload_content( self, custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ @@ -10365,9 +10400,9 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_fuzzing_script_content_file + """get_resources_custom_fuzzing_script_by_id - Get the content of a particular custom fuzzing script file. + Get a particular custom fuzzing script. :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) :type custom_fuzzing_script_id: str @@ -10393,7 +10428,7 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10402,8 +10437,10 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10412,7 +10449,7 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( ) - def _get_resources_custom_fuzzing_script_content_file_serialize( + def _get_resources_custom_fuzzing_script_by_id_serialize( self, custom_fuzzing_script_id, _request_auth, @@ -10446,7 +10483,6 @@ def _get_resources_custom_fuzzing_script_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -10460,7 +10496,7 @@ def _get_resources_custom_fuzzing_script_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}/contentFile', + resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10477,10 +10513,9 @@ def _get_resources_custom_fuzzing_script_content_file_serialize( @validate_call - def get_resources_custom_fuzzing_scripts( + def get_resources_custom_fuzzing_script_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10493,15 +10528,13 @@ def get_resources_custom_fuzzing_scripts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_custom_fuzzing_scripts + ) -> bytearray: + """get_resources_custom_fuzzing_script_content_file - Get all the available custom fuzzing scripts. + Get the content of a particular custom fuzzing script file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10524,9 +10557,8 @@ def get_resources_custom_fuzzing_scripts( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10534,9 +10566,8 @@ def get_resources_custom_fuzzing_scripts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10546,10 +10577,9 @@ def get_resources_custom_fuzzing_scripts( @validate_call - def get_resources_custom_fuzzing_scripts_with_http_info( + def get_resources_custom_fuzzing_script_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10562,15 +10592,13 @@ def get_resources_custom_fuzzing_scripts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_custom_fuzzing_scripts + ) -> ApiResponse[bytearray]: + """get_resources_custom_fuzzing_script_content_file - Get all the available custom fuzzing scripts. + Get the content of a particular custom fuzzing script file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10593,9 +10621,8 @@ def get_resources_custom_fuzzing_scripts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10603,9 +10630,8 @@ def get_resources_custom_fuzzing_scripts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10615,10 +10641,9 @@ def get_resources_custom_fuzzing_scripts_with_http_info( @validate_call - def get_resources_custom_fuzzing_scripts_without_preload_content( + def get_resources_custom_fuzzing_script_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10632,14 +10657,12 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_fuzzing_scripts + """get_resources_custom_fuzzing_script_content_file - Get all the available custom fuzzing scripts. + Get the content of a particular custom fuzzing script file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10662,9 +10685,8 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10672,9 +10694,8 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10683,10 +10704,9 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( ) - def _get_resources_custom_fuzzing_scripts_serialize( + def _get_resources_custom_fuzzing_script_content_file_serialize( self, - take, - skip, + custom_fuzzing_script_id, _request_auth, _content_type, _headers, @@ -10706,15 +10726,9 @@ def _get_resources_custom_fuzzing_scripts_serialize( _body_params: Optional[bytes] = None # process the path parameters + if custom_fuzzing_script_id is not None: + _path_params['customFuzzingScriptId'] = custom_fuzzing_script_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -10724,6 +10738,7 @@ def _get_resources_custom_fuzzing_scripts_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -10737,7 +10752,7 @@ def _get_resources_custom_fuzzing_scripts_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts', + resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10754,9 +10769,10 @@ def _get_resources_custom_fuzzing_scripts_serialize( @validate_call - def get_resources_custom_fuzzing_scripts_upload_file_result( + def get_resources_custom_fuzzing_scripts( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10769,13 +10785,15 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_custom_fuzzing_scripts_upload_file_result + ) -> GetResourcesCertificates200Response: + """get_resources_custom_fuzzing_scripts - Get the result of the upload file operation. + Get all the available custom fuzzing scripts. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10798,8 +10816,9 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10807,8 +10826,8 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10819,9 +10838,10 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( @validate_call - def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( + def get_resources_custom_fuzzing_scripts_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10834,13 +10854,15 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_custom_fuzzing_scripts_upload_file_result + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_custom_fuzzing_scripts - Get the result of the upload file operation. + Get all the available custom fuzzing scripts. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10863,8 +10885,9 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10872,8 +10895,8 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10884,9 +10907,10 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( @validate_call - def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_content( + def get_resources_custom_fuzzing_scripts_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10900,12 +10924,14 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_fuzzing_scripts_upload_file_result + """get_resources_custom_fuzzing_scripts - Get the result of the upload file operation. + Get all the available custom fuzzing scripts. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10928,8 +10954,9 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10937,8 +10964,8 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10948,9 +10975,10 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont ) - def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( + def _get_resources_custom_fuzzing_scripts_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -10970,9 +10998,15 @@ def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -10995,7 +11029,7 @@ def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/custom-fuzzing-scripts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11012,10 +11046,9 @@ def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( @validate_call - def get_resources_flow_library( + def get_resources_custom_fuzzing_scripts_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11028,15 +11061,13 @@ def get_resources_flow_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_flow_library + ) -> None: + """get_resources_custom_fuzzing_scripts_upload_file_result - Get all the available flow library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11059,9 +11090,8 @@ def get_resources_flow_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11069,8 +11099,8 @@ def get_resources_flow_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11081,10 +11111,9 @@ def get_resources_flow_library( @validate_call - def get_resources_flow_library_with_http_info( + def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11097,15 +11126,13 @@ def get_resources_flow_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_flow_library + ) -> ApiResponse[None]: + """get_resources_custom_fuzzing_scripts_upload_file_result - Get all the available flow library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11128,9 +11155,8 @@ def get_resources_flow_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11138,8 +11164,8 @@ def get_resources_flow_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11150,10 +11176,9 @@ def get_resources_flow_library_with_http_info( @validate_call - def get_resources_flow_library_without_preload_content( + def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11167,14 +11192,12 @@ def get_resources_flow_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library + """get_resources_custom_fuzzing_scripts_upload_file_result - Get all the available flow library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11197,9 +11220,8 @@ def get_resources_flow_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11207,8 +11229,8 @@ def get_resources_flow_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11218,10 +11240,9 @@ def get_resources_flow_library_without_preload_content( ) - def _get_resources_flow_library_serialize( + def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( self, - take, - skip, + upload_file_id, _request_auth, _content_type, _headers, @@ -11241,15 +11262,9 @@ def _get_resources_flow_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -11272,7 +11287,7 @@ def _get_resources_flow_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11289,9 +11304,10 @@ def _get_resources_flow_library_serialize( @validate_call - def get_resources_flow_library_by_id( + def get_resources_flow_library( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11304,13 +11320,15 @@ def get_resources_flow_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_flow_library_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_flow_library - Get a particular flow library file. + Get all the available flow library files. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11333,8 +11351,9 @@ def get_resources_flow_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11342,9 +11361,8 @@ def get_resources_flow_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11355,9 +11373,10 @@ def get_resources_flow_library_by_id( @validate_call - def get_resources_flow_library_by_id_with_http_info( + def get_resources_flow_library_with_http_info( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11370,13 +11389,15 @@ def get_resources_flow_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_flow_library_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_flow_library - Get a particular flow library file. + Get all the available flow library files. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11399,8 +11420,9 @@ def get_resources_flow_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11408,9 +11430,8 @@ def get_resources_flow_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11421,9 +11442,10 @@ def get_resources_flow_library_by_id_with_http_info( @validate_call - def get_resources_flow_library_by_id_without_preload_content( + def get_resources_flow_library_without_preload_content( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11437,12 +11459,14 @@ def get_resources_flow_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_by_id + """get_resources_flow_library - Get a particular flow library file. + Get all the available flow library files. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11465,8 +11489,9 @@ def get_resources_flow_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11474,9 +11499,8 @@ def get_resources_flow_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11486,9 +11510,10 @@ def get_resources_flow_library_by_id_without_preload_content( ) - def _get_resources_flow_library_by_id_serialize( + def _get_resources_flow_library_serialize( self, - flow_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -11508,9 +11533,15 @@ def _get_resources_flow_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if flow_library_id is not None: - _path_params['flowLibraryId'] = flow_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -11533,7 +11564,7 @@ def _get_resources_flow_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/{flowLibraryId}', + resource_path='/api/v2/resources/flow-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11550,7 +11581,7 @@ def _get_resources_flow_library_by_id_serialize( @validate_call - def get_resources_flow_library_content_file( + def get_resources_flow_library_by_id( self, flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ @@ -11565,10 +11596,10 @@ def get_resources_flow_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_flow_library_content_file + ) -> GenericFile: + """get_resources_flow_library_by_id - Get the content of a particular flow library file. + Get a particular flow library file. :param flow_library_id: The ID of the flow library. (required) :type flow_library_id: str @@ -11594,7 +11625,7 @@ def get_resources_flow_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( + _param = self._get_resources_flow_library_by_id_serialize( flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11603,8 +11634,10 @@ def get_resources_flow_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11614,7 +11647,7 @@ def get_resources_flow_library_content_file( @validate_call - def get_resources_flow_library_content_file_with_http_info( + def get_resources_flow_library_by_id_with_http_info( self, flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ @@ -11629,10 +11662,10 @@ def get_resources_flow_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_flow_library_content_file - - Get the content of a particular flow library file. + ) -> ApiResponse[GenericFile]: + """get_resources_flow_library_by_id + + Get a particular flow library file. :param flow_library_id: The ID of the flow library. (required) :type flow_library_id: str @@ -11658,7 +11691,7 @@ def get_resources_flow_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( + _param = self._get_resources_flow_library_by_id_serialize( flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11667,8 +11700,10 @@ def get_resources_flow_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11678,7 +11713,7 @@ def get_resources_flow_library_content_file_with_http_info( @validate_call - def get_resources_flow_library_content_file_without_preload_content( + def get_resources_flow_library_by_id_without_preload_content( self, flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ @@ -11694,9 +11729,9 @@ def get_resources_flow_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_content_file + """get_resources_flow_library_by_id - Get the content of a particular flow library file. + Get a particular flow library file. :param flow_library_id: The ID of the flow library. (required) :type flow_library_id: str @@ -11722,7 +11757,7 @@ def get_resources_flow_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( + _param = self._get_resources_flow_library_by_id_serialize( flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11731,8 +11766,10 @@ def get_resources_flow_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11741,7 +11778,7 @@ def get_resources_flow_library_content_file_without_preload_content( ) - def _get_resources_flow_library_content_file_serialize( + def _get_resources_flow_library_by_id_serialize( self, flow_library_id, _request_auth, @@ -11775,7 +11812,6 @@ def _get_resources_flow_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -11789,7 +11825,7 @@ def _get_resources_flow_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/{flowLibraryId}/contentFile', + resource_path='/api/v2/resources/flow-library/{flowLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11806,9 +11842,9 @@ def _get_resources_flow_library_content_file_serialize( @validate_call - def get_resources_flow_library_upload_file_result( + def get_resources_flow_library_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11821,13 +11857,13 @@ def get_resources_flow_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_flow_library_upload_file_result + ) -> bytearray: + """get_resources_flow_library_content_file - Get the result of the upload file operation. + Get the content of a particular flow library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11850,8 +11886,8 @@ def get_resources_flow_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11859,9 +11895,8 @@ def get_resources_flow_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11871,9 +11906,9 @@ def get_resources_flow_library_upload_file_result( @validate_call - def get_resources_flow_library_upload_file_result_with_http_info( + def get_resources_flow_library_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11886,13 +11921,13 @@ def get_resources_flow_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_flow_library_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_flow_library_content_file - Get the result of the upload file operation. + Get the content of a particular flow library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11915,8 +11950,8 @@ def get_resources_flow_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11924,9 +11959,8 @@ def get_resources_flow_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11936,9 +11970,9 @@ def get_resources_flow_library_upload_file_result_with_http_info( @validate_call - def get_resources_flow_library_upload_file_result_without_preload_content( + def get_resources_flow_library_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11952,12 +11986,12 @@ def get_resources_flow_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_upload_file_result + """get_resources_flow_library_content_file - Get the result of the upload file operation. + Get the content of a particular flow library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11980,8 +12014,8 @@ def get_resources_flow_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11989,9 +12023,8 @@ def get_resources_flow_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12000,9 +12033,9 @@ def get_resources_flow_library_upload_file_result_without_preload_content( ) - def _get_resources_flow_library_upload_file_result_serialize( + def _get_resources_flow_library_content_file_serialize( self, - upload_file_id, + flow_library_id, _request_auth, _content_type, _headers, @@ -12022,8 +12055,8 @@ def _get_resources_flow_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if flow_library_id is not None: + _path_params['flowLibraryId'] = flow_library_id # process the query parameters # process the header parameters # process the form parameters @@ -12034,6 +12067,7 @@ def _get_resources_flow_library_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -12047,7 +12081,7 @@ def _get_resources_flow_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/flow-library/{flowLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12064,9 +12098,9 @@ def _get_resources_flow_library_upload_file_result_serialize( @validate_call - def get_resources_global_playlist_by_id( + def get_resources_flow_library_upload_file_result( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12079,13 +12113,13 @@ def get_resources_global_playlist_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_global_playlist_by_id + ) -> None: + """get_resources_flow_library_upload_file_result - Get a particular global playlists archive file. + Get the result of the upload file operation. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12108,8 +12142,8 @@ def get_resources_global_playlist_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12117,9 +12151,8 @@ def get_resources_global_playlist_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12130,9 +12163,9 @@ def get_resources_global_playlist_by_id( @validate_call - def get_resources_global_playlist_by_id_with_http_info( + def get_resources_flow_library_upload_file_result_with_http_info( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12145,13 +12178,13 @@ def get_resources_global_playlist_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_global_playlist_by_id + ) -> ApiResponse[None]: + """get_resources_flow_library_upload_file_result - Get a particular global playlists archive file. + Get the result of the upload file operation. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12174,8 +12207,8 @@ def get_resources_global_playlist_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12183,9 +12216,8 @@ def get_resources_global_playlist_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12196,9 +12228,9 @@ def get_resources_global_playlist_by_id_with_http_info( @validate_call - def get_resources_global_playlist_by_id_without_preload_content( + def get_resources_flow_library_upload_file_result_without_preload_content( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12212,12 +12244,12 @@ def get_resources_global_playlist_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlist_by_id + """get_resources_flow_library_upload_file_result - Get a particular global playlists archive file. + Get the result of the upload file operation. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12240,8 +12272,8 @@ def get_resources_global_playlist_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12249,9 +12281,8 @@ def get_resources_global_playlist_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12261,9 +12292,9 @@ def get_resources_global_playlist_by_id_without_preload_content( ) - def _get_resources_global_playlist_by_id_serialize( + def _get_resources_flow_library_upload_file_result_serialize( self, - global_playlist_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -12283,8 +12314,8 @@ def _get_resources_global_playlist_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if global_playlist_id is not None: - _path_params['globalPlaylistId'] = global_playlist_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -12308,7 +12339,7 @@ def _get_resources_global_playlist_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}', + resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12325,7 +12356,7 @@ def _get_resources_global_playlist_by_id_serialize( @validate_call - def get_resources_global_playlist_content_file( + def get_resources_global_playlist_by_id( self, global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ @@ -12340,10 +12371,10 @@ def get_resources_global_playlist_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_global_playlist_content_file + ) -> GenericFile: + """get_resources_global_playlist_by_id - Get the content of a particular global playlists archive file. + Get a particular global playlists archive file. :param global_playlist_id: The ID of the global playlist. (required) :type global_playlist_id: str @@ -12369,7 +12400,7 @@ def get_resources_global_playlist_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( + _param = self._get_resources_global_playlist_by_id_serialize( global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12378,8 +12409,10 @@ def get_resources_global_playlist_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12389,7 +12422,7 @@ def get_resources_global_playlist_content_file( @validate_call - def get_resources_global_playlist_content_file_with_http_info( + def get_resources_global_playlist_by_id_with_http_info( self, global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ @@ -12404,10 +12437,10 @@ def get_resources_global_playlist_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_global_playlist_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_global_playlist_by_id - Get the content of a particular global playlists archive file. + Get a particular global playlists archive file. :param global_playlist_id: The ID of the global playlist. (required) :type global_playlist_id: str @@ -12433,7 +12466,7 @@ def get_resources_global_playlist_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( + _param = self._get_resources_global_playlist_by_id_serialize( global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12442,8 +12475,10 @@ def get_resources_global_playlist_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12453,7 +12488,7 @@ def get_resources_global_playlist_content_file_with_http_info( @validate_call - def get_resources_global_playlist_content_file_without_preload_content( + def get_resources_global_playlist_by_id_without_preload_content( self, global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ @@ -12469,9 +12504,9 @@ def get_resources_global_playlist_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlist_content_file + """get_resources_global_playlist_by_id - Get the content of a particular global playlists archive file. + Get a particular global playlists archive file. :param global_playlist_id: The ID of the global playlist. (required) :type global_playlist_id: str @@ -12497,7 +12532,7 @@ def get_resources_global_playlist_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( + _param = self._get_resources_global_playlist_by_id_serialize( global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12506,8 +12541,10 @@ def get_resources_global_playlist_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12516,7 +12553,7 @@ def get_resources_global_playlist_content_file_without_preload_content( ) - def _get_resources_global_playlist_content_file_serialize( + def _get_resources_global_playlist_by_id_serialize( self, global_playlist_id, _request_auth, @@ -12550,7 +12587,6 @@ def _get_resources_global_playlist_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -12564,7 +12600,7 @@ def _get_resources_global_playlist_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}/contentFile', + resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12581,10 +12617,9 @@ def _get_resources_global_playlist_content_file_serialize( @validate_call - def get_resources_global_playlists( + def get_resources_global_playlist_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12597,15 +12632,13 @@ def get_resources_global_playlists( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_global_playlists + ) -> bytearray: + """get_resources_global_playlist_content_file - Get all the available global playlists files. + Get the content of a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12628,9 +12661,8 @@ def get_resources_global_playlists( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12638,9 +12670,8 @@ def get_resources_global_playlists( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12650,10 +12681,9 @@ def get_resources_global_playlists( @validate_call - def get_resources_global_playlists_with_http_info( + def get_resources_global_playlist_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12666,15 +12696,13 @@ def get_resources_global_playlists_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_global_playlists + ) -> ApiResponse[bytearray]: + """get_resources_global_playlist_content_file - Get all the available global playlists files. + Get the content of a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12697,9 +12725,8 @@ def get_resources_global_playlists_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12707,9 +12734,8 @@ def get_resources_global_playlists_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12719,10 +12745,9 @@ def get_resources_global_playlists_with_http_info( @validate_call - def get_resources_global_playlists_without_preload_content( + def get_resources_global_playlist_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12736,14 +12761,12 @@ def get_resources_global_playlists_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlists + """get_resources_global_playlist_content_file - Get all the available global playlists files. + Get the content of a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12766,9 +12789,8 @@ def get_resources_global_playlists_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12776,9 +12798,8 @@ def get_resources_global_playlists_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12787,10 +12808,9 @@ def get_resources_global_playlists_without_preload_content( ) - def _get_resources_global_playlists_serialize( + def _get_resources_global_playlist_content_file_serialize( self, - take, - skip, + global_playlist_id, _request_auth, _content_type, _headers, @@ -12810,15 +12830,9 @@ def _get_resources_global_playlists_serialize( _body_params: Optional[bytes] = None # process the path parameters + if global_playlist_id is not None: + _path_params['globalPlaylistId'] = global_playlist_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -12828,6 +12842,7 @@ def _get_resources_global_playlists_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -12841,7 +12856,7 @@ def _get_resources_global_playlists_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists', + resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12858,9 +12873,10 @@ def _get_resources_global_playlists_serialize( @validate_call - def get_resources_global_playlists_upload_file_result( + def get_resources_global_playlists( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12873,13 +12889,15 @@ def get_resources_global_playlists_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_global_playlists_upload_file_result + ) -> GetResourcesCertificates200Response: + """get_resources_global_playlists - Get the result of the upload file operation. + Get all the available global playlists files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12902,8 +12920,9 @@ def get_resources_global_playlists_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12911,8 +12930,8 @@ def get_resources_global_playlists_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12923,9 +12942,10 @@ def get_resources_global_playlists_upload_file_result( @validate_call - def get_resources_global_playlists_upload_file_result_with_http_info( + def get_resources_global_playlists_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12938,13 +12958,15 @@ def get_resources_global_playlists_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_global_playlists_upload_file_result + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_global_playlists - Get the result of the upload file operation. + Get all the available global playlists files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12967,8 +12989,9 @@ def get_resources_global_playlists_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12976,8 +12999,8 @@ def get_resources_global_playlists_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12988,9 +13011,10 @@ def get_resources_global_playlists_upload_file_result_with_http_info( @validate_call - def get_resources_global_playlists_upload_file_result_without_preload_content( + def get_resources_global_playlists_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13004,12 +13028,14 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlists_upload_file_result + """get_resources_global_playlists - Get the result of the upload file operation. + Get all the available global playlists files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13032,8 +13058,9 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13041,8 +13068,8 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13052,9 +13079,10 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( ) - def _get_resources_global_playlists_upload_file_result_serialize( + def _get_resources_global_playlists_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -13074,9 +13102,15 @@ def _get_resources_global_playlists_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -13099,7 +13133,7 @@ def _get_resources_global_playlists_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/global-playlists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13116,10 +13150,9 @@ def _get_resources_global_playlists_upload_file_result_serialize( @validate_call - def get_resources_http_library( + def get_resources_global_playlists_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13132,15 +13165,13 @@ def get_resources_http_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_http_library + ) -> None: + """get_resources_global_playlists_upload_file_result - Get all the available http library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13163,9 +13194,8 @@ def get_resources_http_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13173,8 +13203,8 @@ def get_resources_http_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13185,10 +13215,9 @@ def get_resources_http_library( @validate_call - def get_resources_http_library_with_http_info( + def get_resources_global_playlists_upload_file_result_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13201,15 +13230,13 @@ def get_resources_http_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_http_library + ) -> ApiResponse[None]: + """get_resources_global_playlists_upload_file_result - Get all the available http library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13232,9 +13259,8 @@ def get_resources_http_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13242,8 +13268,8 @@ def get_resources_http_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13254,10 +13280,9 @@ def get_resources_http_library_with_http_info( @validate_call - def get_resources_http_library_without_preload_content( + def get_resources_global_playlists_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13271,14 +13296,12 @@ def get_resources_http_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library + """get_resources_global_playlists_upload_file_result - Get all the available http library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13301,9 +13324,8 @@ def get_resources_http_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13311,8 +13333,8 @@ def get_resources_http_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13322,10 +13344,9 @@ def get_resources_http_library_without_preload_content( ) - def _get_resources_http_library_serialize( + def _get_resources_global_playlists_upload_file_result_serialize( self, - take, - skip, + upload_file_id, _request_auth, _content_type, _headers, @@ -13345,15 +13366,9 @@ def _get_resources_http_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -13376,7 +13391,7 @@ def _get_resources_http_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library', + resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13393,9 +13408,10 @@ def _get_resources_http_library_serialize( @validate_call - def get_resources_http_library_by_id( + def get_resources_http_library( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13408,13 +13424,15 @@ def get_resources_http_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_http_library_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_http_library - Get a particular http library file. + Get all the available http library files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13437,8 +13455,9 @@ def get_resources_http_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13446,9 +13465,8 @@ def get_resources_http_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13459,9 +13477,10 @@ def get_resources_http_library_by_id( @validate_call - def get_resources_http_library_by_id_with_http_info( + def get_resources_http_library_with_http_info( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13474,13 +13493,15 @@ def get_resources_http_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_http_library_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_http_library - Get a particular http library file. + Get all the available http library files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13503,8 +13524,9 @@ def get_resources_http_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13512,9 +13534,8 @@ def get_resources_http_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13525,9 +13546,10 @@ def get_resources_http_library_by_id_with_http_info( @validate_call - def get_resources_http_library_by_id_without_preload_content( + def get_resources_http_library_without_preload_content( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13541,12 +13563,14 @@ def get_resources_http_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_by_id + """get_resources_http_library - Get a particular http library file. + Get all the available http library files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13569,8 +13593,9 @@ def get_resources_http_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13578,9 +13603,8 @@ def get_resources_http_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13590,9 +13614,10 @@ def get_resources_http_library_by_id_without_preload_content( ) - def _get_resources_http_library_by_id_serialize( + def _get_resources_http_library_serialize( self, - http_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -13612,9 +13637,15 @@ def _get_resources_http_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_library_id is not None: - _path_params['httpLibraryId'] = http_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -13637,7 +13668,7 @@ def _get_resources_http_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/{httpLibraryId}', + resource_path='/api/v2/resources/http-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13654,7 +13685,7 @@ def _get_resources_http_library_by_id_serialize( @validate_call - def get_resources_http_library_content_file( + def get_resources_http_library_by_id( self, http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ @@ -13669,10 +13700,10 @@ def get_resources_http_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_http_library_content_file + ) -> GenericFile: + """get_resources_http_library_by_id - Get the content of a particular http library file. + Get a particular http library file. :param http_library_id: The ID of the http library. (required) :type http_library_id: str @@ -13698,7 +13729,7 @@ def get_resources_http_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( + _param = self._get_resources_http_library_by_id_serialize( http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -13707,8 +13738,10 @@ def get_resources_http_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13718,7 +13751,7 @@ def get_resources_http_library_content_file( @validate_call - def get_resources_http_library_content_file_with_http_info( + def get_resources_http_library_by_id_with_http_info( self, http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ @@ -13733,10 +13766,10 @@ def get_resources_http_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_http_library_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_http_library_by_id - Get the content of a particular http library file. + Get a particular http library file. :param http_library_id: The ID of the http library. (required) :type http_library_id: str @@ -13762,7 +13795,7 @@ def get_resources_http_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( + _param = self._get_resources_http_library_by_id_serialize( http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -13771,8 +13804,10 @@ def get_resources_http_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13782,7 +13817,7 @@ def get_resources_http_library_content_file_with_http_info( @validate_call - def get_resources_http_library_content_file_without_preload_content( + def get_resources_http_library_by_id_without_preload_content( self, http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ @@ -13798,9 +13833,9 @@ def get_resources_http_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_content_file + """get_resources_http_library_by_id - Get the content of a particular http library file. + Get a particular http library file. :param http_library_id: The ID of the http library. (required) :type http_library_id: str @@ -13826,7 +13861,7 @@ def get_resources_http_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( + _param = self._get_resources_http_library_by_id_serialize( http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -13835,8 +13870,10 @@ def get_resources_http_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13845,7 +13882,7 @@ def get_resources_http_library_content_file_without_preload_content( ) - def _get_resources_http_library_content_file_serialize( + def _get_resources_http_library_by_id_serialize( self, http_library_id, _request_auth, @@ -13879,7 +13916,6 @@ def _get_resources_http_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -13893,7 +13929,7 @@ def _get_resources_http_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/{httpLibraryId}/contentFile', + resource_path='/api/v2/resources/http-library/{httpLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13910,9 +13946,9 @@ def _get_resources_http_library_content_file_serialize( @validate_call - def get_resources_http_library_upload_file_result( + def get_resources_http_library_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13925,13 +13961,13 @@ def get_resources_http_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_http_library_upload_file_result + ) -> bytearray: + """get_resources_http_library_content_file - Get the result of the upload file operation. + Get the content of a particular http library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13954,8 +13990,8 @@ def get_resources_http_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13963,9 +13999,8 @@ def get_resources_http_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13975,9 +14010,9 @@ def get_resources_http_library_upload_file_result( @validate_call - def get_resources_http_library_upload_file_result_with_http_info( + def get_resources_http_library_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13990,13 +14025,13 @@ def get_resources_http_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_http_library_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_http_library_content_file - Get the result of the upload file operation. + Get the content of a particular http library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14019,8 +14054,8 @@ def get_resources_http_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14028,9 +14063,8 @@ def get_resources_http_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14040,9 +14074,9 @@ def get_resources_http_library_upload_file_result_with_http_info( @validate_call - def get_resources_http_library_upload_file_result_without_preload_content( + def get_resources_http_library_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14056,12 +14090,12 @@ def get_resources_http_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_upload_file_result + """get_resources_http_library_content_file - Get the result of the upload file operation. + Get the content of a particular http library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14084,8 +14118,8 @@ def get_resources_http_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14093,9 +14127,8 @@ def get_resources_http_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14104,9 +14137,9 @@ def get_resources_http_library_upload_file_result_without_preload_content( ) - def _get_resources_http_library_upload_file_result_serialize( + def _get_resources_http_library_content_file_serialize( self, - upload_file_id, + http_library_id, _request_auth, _content_type, _headers, @@ -14126,8 +14159,8 @@ def _get_resources_http_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if http_library_id is not None: + _path_params['httpLibraryId'] = http_library_id # process the query parameters # process the header parameters # process the form parameters @@ -14138,6 +14171,7 @@ def _get_resources_http_library_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -14151,7 +14185,7 @@ def _get_resources_http_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/http-library/{httpLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14168,9 +14202,9 @@ def _get_resources_http_library_upload_file_result_serialize( @validate_call - def get_resources_http_profile_by_id( + def get_resources_http_library_upload_file_result( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14183,13 +14217,13 @@ def get_resources_http_profile_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HTTPProfile: - """get_resources_http_profile_by_id + ) -> None: + """get_resources_http_library_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14212,8 +14246,8 @@ def get_resources_http_profile_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14221,8 +14255,8 @@ def get_resources_http_profile_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14233,9 +14267,9 @@ def get_resources_http_profile_by_id( @validate_call - def get_resources_http_profile_by_id_with_http_info( + def get_resources_http_library_upload_file_result_with_http_info( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14248,13 +14282,13 @@ def get_resources_http_profile_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HTTPProfile]: - """get_resources_http_profile_by_id + ) -> ApiResponse[None]: + """get_resources_http_library_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14277,8 +14311,8 @@ def get_resources_http_profile_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14286,8 +14320,8 @@ def get_resources_http_profile_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14298,9 +14332,9 @@ def get_resources_http_profile_by_id_with_http_info( @validate_call - def get_resources_http_profile_by_id_without_preload_content( + def get_resources_http_library_upload_file_result_without_preload_content( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14314,12 +14348,12 @@ def get_resources_http_profile_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_profile_by_id + """get_resources_http_library_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14342,8 +14376,8 @@ def get_resources_http_profile_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14351,8 +14385,8 @@ def get_resources_http_profile_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14362,9 +14396,9 @@ def get_resources_http_profile_by_id_without_preload_content( ) - def _get_resources_http_profile_by_id_serialize( + def _get_resources_http_library_upload_file_result_serialize( self, - http_profile_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -14384,8 +14418,8 @@ def _get_resources_http_profile_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_profile_id is not None: - _path_params['httpProfileId'] = http_profile_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -14409,7 +14443,7 @@ def _get_resources_http_profile_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-profiles/{httpProfileId}', + resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14426,10 +14460,9 @@ def _get_resources_http_profile_by_id_serialize( @validate_call - def get_resources_http_profiles( + def get_resources_http_profile_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14442,15 +14475,13 @@ def get_resources_http_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesHttpProfiles200Response: - """get_resources_http_profiles + ) -> HTTPProfile: + """get_resources_http_profile_by_id - Get all the available HTTP profiles. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14473,9 +14504,8 @@ def get_resources_http_profiles( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14483,7 +14513,8 @@ def get_resources_http_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14494,10 +14525,9 @@ def get_resources_http_profiles( @validate_call - def get_resources_http_profiles_with_http_info( + def get_resources_http_profile_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14510,15 +14540,13 @@ def get_resources_http_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesHttpProfiles200Response]: - """get_resources_http_profiles + ) -> ApiResponse[HTTPProfile]: + """get_resources_http_profile_by_id - Get all the available HTTP profiles. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14541,9 +14569,8 @@ def get_resources_http_profiles_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14551,7 +14578,8 @@ def get_resources_http_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14562,10 +14590,9 @@ def get_resources_http_profiles_with_http_info( @validate_call - def get_resources_http_profiles_without_preload_content( + def get_resources_http_profile_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14579,14 +14606,12 @@ def get_resources_http_profiles_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_profiles + """get_resources_http_profile_by_id - Get all the available HTTP profiles. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14609,9 +14634,8 @@ def get_resources_http_profiles_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14619,7 +14643,8 @@ def get_resources_http_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14629,10 +14654,9 @@ def get_resources_http_profiles_without_preload_content( ) - def _get_resources_http_profiles_serialize( + def _get_resources_http_profile_by_id_serialize( self, - take, - skip, + http_profile_id, _request_auth, _content_type, _headers, @@ -14652,15 +14676,9 @@ def _get_resources_http_profiles_serialize( _body_params: Optional[bytes] = None # process the path parameters + if http_profile_id is not None: + _path_params['httpProfileId'] = http_profile_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -14683,7 +14701,7 @@ def _get_resources_http_profiles_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-profiles', + resource_path='/api/v2/resources/http-profiles/{httpProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14700,9 +14718,10 @@ def _get_resources_http_profiles_serialize( @validate_call - def get_resources_media_file_by_id( + def get_resources_http_profiles( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14715,13 +14734,15 @@ def get_resources_media_file_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_media_file_by_id + ) -> GetResourcesHttpProfiles200Response: + """get_resources_http_profiles - Get a particular media file. + Get all the available HTTP profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14744,8 +14765,9 @@ def get_resources_media_file_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14753,9 +14775,7 @@ def get_resources_media_file_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14766,9 +14786,10 @@ def get_resources_media_file_by_id( @validate_call - def get_resources_media_file_by_id_with_http_info( + def get_resources_http_profiles_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14781,13 +14802,15 @@ def get_resources_media_file_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_media_file_by_id + ) -> ApiResponse[GetResourcesHttpProfiles200Response]: + """get_resources_http_profiles - Get a particular media file. + Get all the available HTTP profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14810,8 +14833,9 @@ def get_resources_media_file_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14819,9 +14843,7 @@ def get_resources_media_file_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14832,9 +14854,10 @@ def get_resources_media_file_by_id_with_http_info( @validate_call - def get_resources_media_file_by_id_without_preload_content( + def get_resources_http_profiles_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14848,12 +14871,14 @@ def get_resources_media_file_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_file_by_id + """get_resources_http_profiles - Get a particular media file. + Get all the available HTTP profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14876,8 +14901,9 @@ def get_resources_media_file_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14885,9 +14911,7 @@ def get_resources_media_file_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14897,9 +14921,10 @@ def get_resources_media_file_by_id_without_preload_content( ) - def _get_resources_media_file_by_id_serialize( + def _get_resources_http_profiles_serialize( self, - media_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -14919,9 +14944,15 @@ def _get_resources_media_file_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_file_id is not None: - _path_params['mediaFileId'] = media_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -14944,7 +14975,7 @@ def _get_resources_media_file_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/{mediaFileId}', + resource_path='/api/v2/resources/http-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14961,7 +14992,7 @@ def _get_resources_media_file_by_id_serialize( @validate_call - def get_resources_media_file_content_file( + def get_resources_media_file_by_id( self, media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ @@ -14976,10 +15007,10 @@ def get_resources_media_file_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_media_file_content_file + ) -> GenericFile: + """get_resources_media_file_by_id - Get the content of a particular media file. + Get a particular media file. :param media_file_id: The ID of the media file. (required) :type media_file_id: str @@ -15005,7 +15036,7 @@ def get_resources_media_file_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( + _param = self._get_resources_media_file_by_id_serialize( media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15014,8 +15045,10 @@ def get_resources_media_file_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15025,7 +15058,7 @@ def get_resources_media_file_content_file( @validate_call - def get_resources_media_file_content_file_with_http_info( + def get_resources_media_file_by_id_with_http_info( self, media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ @@ -15040,10 +15073,10 @@ def get_resources_media_file_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_media_file_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_media_file_by_id - Get the content of a particular media file. + Get a particular media file. :param media_file_id: The ID of the media file. (required) :type media_file_id: str @@ -15069,7 +15102,7 @@ def get_resources_media_file_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( + _param = self._get_resources_media_file_by_id_serialize( media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15078,8 +15111,10 @@ def get_resources_media_file_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15089,7 +15124,7 @@ def get_resources_media_file_content_file_with_http_info( @validate_call - def get_resources_media_file_content_file_without_preload_content( + def get_resources_media_file_by_id_without_preload_content( self, media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ @@ -15105,9 +15140,9 @@ def get_resources_media_file_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_file_content_file + """get_resources_media_file_by_id - Get the content of a particular media file. + Get a particular media file. :param media_file_id: The ID of the media file. (required) :type media_file_id: str @@ -15133,7 +15168,7 @@ def get_resources_media_file_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( + _param = self._get_resources_media_file_by_id_serialize( media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15142,8 +15177,10 @@ def get_resources_media_file_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15152,7 +15189,7 @@ def get_resources_media_file_content_file_without_preload_content( ) - def _get_resources_media_file_content_file_serialize( + def _get_resources_media_file_by_id_serialize( self, media_file_id, _request_auth, @@ -15186,7 +15223,262 @@ def _get_resources_media_file_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/media-files/{mediaFileId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_media_file_content_file( + self, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bytearray: + """get_resources_media_file_content_file + + Get the content of a particular media file. + + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_media_file_content_file_with_http_info( + self, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bytearray]: + """get_resources_media_file_content_file + + Get the content of a particular media file. + + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_media_file_content_file_without_preload_content( + self, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_media_file_content_file + + Get the content of a particular media file. + + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_media_file_content_file_serialize( + self, + media_file_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if media_file_id is not None: + _path_params['mediaFileId'] = media_file_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/octet-stream', 'application/json' ] ) @@ -28262,28 +28554,550 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call + def start_resources_apps_export_all( + self, + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_resources_apps_export_all + + Export all apps created by the user. Optionally, provide a list of app IDs to export. + + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_apps_export_all_with_http_info( + self, + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_resources_apps_export_all + + Export all apps created by the user. Optionally, provide a list of app IDs to export. + + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_apps_export_all_without_preload_content( + self, + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_resources_apps_export_all + + Export all apps created by the user. Optionally, provide a list of app IDs to export. + + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_resources_apps_export_all_serialize( + self, + export_apps_operation_input, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if export_apps_operation_input is not None: + _body_params = export_apps_operation_input + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/resources/apps/operations/export-all', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def start_resources_captures_batch_delete( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_resources_captures_batch_delete + + Delete one or more captures + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_batch_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_captures_batch_delete_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_resources_captures_batch_delete + + Delete one or more captures + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_batch_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_captures_batch_delete_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_resources_captures_batch_delete + + Delete one or more captures + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_batch_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_resources_captures_batch_delete_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: - + _host = None + _collection_formats: Dict[str, str] = { + } + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter - + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) - - + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/resources/captures/operations/batch-delete', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) @validate_call - def start_resources_apps_export_all( + def start_resources_captures_encrypted_upload_file( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28296,13 +29110,13 @@ def start_resources_apps_export_all( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_apps_export_all + ) -> None: + """start_resources_captures_encrypted_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28325,8 +29139,8 @@ def start_resources_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28334,7 +29148,8 @@ def start_resources_apps_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28344,9 +29159,9 @@ def start_resources_apps_export_all( @validate_call - def start_resources_apps_export_all_with_http_info( + def start_resources_captures_encrypted_upload_file_with_http_info( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28359,13 +29174,13 @@ def start_resources_apps_export_all_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_apps_export_all + ) -> ApiResponse[None]: + """start_resources_captures_encrypted_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28388,8 +29203,8 @@ def start_resources_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28397,7 +29212,8 @@ def start_resources_apps_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28407,9 +29223,9 @@ def start_resources_apps_export_all_with_http_info( @validate_call - def start_resources_apps_export_all_without_preload_content( + def start_resources_captures_encrypted_upload_file_without_preload_content( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28423,12 +29239,12 @@ def start_resources_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_apps_export_all + """start_resources_captures_encrypted_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28451,8 +29267,8 @@ def start_resources_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28460,7 +29276,8 @@ def start_resources_apps_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28469,9 +29286,9 @@ def start_resources_apps_export_all_without_preload_content( ) - def _start_resources_apps_export_all_serialize( + def _start_resources_captures_encrypted_upload_file_serialize( self, - export_apps_operation_input, + file, _request_auth, _content_type, _headers, @@ -28494,9 +29311,9 @@ def _start_resources_apps_export_all_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter - if export_apps_operation_input is not None: - _body_params = export_apps_operation_input # set the HTTP header `Accept` @@ -28514,7 +29331,7 @@ def _start_resources_apps_export_all_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'multipart/form-data' ] ) ) @@ -28529,7 +29346,7 @@ def _start_resources_apps_export_all_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/apps/operations/export-all', + resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28546,8 +29363,9 @@ def _start_resources_apps_export_all_serialize( @validate_call - def start_resources_captures_batch_delete( + def start_resources_captures_upload_file( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28561,10 +29379,12 @@ def start_resources_captures_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_captures_batch_delete + """start_resources_captures_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28587,7 +29407,8 @@ def start_resources_captures_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28596,6 +29417,7 @@ def start_resources_captures_batch_delete( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28605,8 +29427,9 @@ def start_resources_captures_batch_delete( @validate_call - def start_resources_captures_batch_delete_with_http_info( + def start_resources_captures_upload_file_with_http_info( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28620,10 +29443,12 @@ def start_resources_captures_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_captures_batch_delete + """start_resources_captures_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28646,7 +29471,8 @@ def start_resources_captures_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28655,6 +29481,7 @@ def start_resources_captures_batch_delete_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28664,8 +29491,9 @@ def start_resources_captures_batch_delete_with_http_info( @validate_call - def start_resources_captures_batch_delete_without_preload_content( + def start_resources_captures_upload_file_without_preload_content( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28679,10 +29507,12 @@ def start_resources_captures_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_captures_batch_delete + """start_resources_captures_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28705,7 +29535,8 @@ def start_resources_captures_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28714,6 +29545,7 @@ def start_resources_captures_batch_delete_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28722,8 +29554,9 @@ def start_resources_captures_batch_delete_without_preload_content( ) - def _start_resources_captures_batch_delete_serialize( + def _start_resources_captures_upload_file_serialize( self, + file, _request_auth, _content_type, _headers, @@ -28746,6 +29579,8 @@ def _start_resources_captures_batch_delete_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -28757,6 +29592,19 @@ def _start_resources_captures_batch_delete_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -28766,7 +29614,7 @@ def _start_resources_captures_batch_delete_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/captures/operations/batch-delete', + resource_path='/api/v2/resources/captures/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28783,7 +29631,7 @@ def _start_resources_captures_batch_delete_serialize( @validate_call - def start_resources_captures_encrypted_upload_file( + def start_resources_certificates_upload_file( self, file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ @@ -28799,7 +29647,7 @@ def start_resources_captures_encrypted_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """start_resources_captures_encrypted_upload_file + """start_resources_certificates_upload_file Upload a file. @@ -28827,7 +29675,7 @@ def start_resources_captures_encrypted_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_encrypted_upload_file_serialize( + _param = self._start_resources_certificates_upload_file_serialize( file=file, _request_auth=_request_auth, _content_type=_content_type, @@ -28847,7 +29695,7 @@ def start_resources_captures_encrypted_upload_file( @validate_call - def start_resources_captures_encrypted_upload_file_with_http_info( + def start_resources_certificates_upload_file_with_http_info( self, file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ @@ -28863,7 +29711,7 @@ def start_resources_captures_encrypted_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """start_resources_captures_encrypted_upload_file + """start_resources_certificates_upload_file Upload a file. @@ -28891,7 +29739,7 @@ def start_resources_captures_encrypted_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_encrypted_upload_file_serialize( + _param = self._start_resources_certificates_upload_file_serialize( file=file, _request_auth=_request_auth, _content_type=_content_type, @@ -28911,7 +29759,7 @@ def start_resources_captures_encrypted_upload_file_with_http_info( @validate_call - def start_resources_captures_encrypted_upload_file_without_preload_content( + def start_resources_certificates_upload_file_without_preload_content( self, file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ @@ -28927,7 +29775,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_captures_encrypted_upload_file + """start_resources_certificates_upload_file Upload a file. @@ -28955,7 +29803,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_encrypted_upload_file_serialize( + _param = self._start_resources_certificates_upload_file_serialize( file=file, _request_auth=_request_auth, _content_type=_content_type, @@ -28974,7 +29822,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( ) - def _start_resources_captures_encrypted_upload_file_serialize( + def _start_resources_certificates_upload_file_serialize( self, file, _request_auth, @@ -29034,7 +29882,7 @@ def _start_resources_captures_encrypted_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile', + resource_path='/api/v2/resources/certificates/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29051,9 +29899,9 @@ def _start_resources_captures_encrypted_upload_file_serialize( @validate_call - def start_resources_captures_upload_file( + def start_resources_config_export_user_defined_apps( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29067,12 +29915,12 @@ def start_resources_captures_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29095,8 +29943,8 @@ def start_resources_captures_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29105,7 +29953,6 @@ def start_resources_captures_upload_file( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29115,9 +29962,9 @@ def start_resources_captures_upload_file( @validate_call - def start_resources_captures_upload_file_with_http_info( + def start_resources_config_export_user_defined_apps_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29131,12 +29978,12 @@ def start_resources_captures_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29159,8 +30006,8 @@ def start_resources_captures_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29169,7 +30016,6 @@ def start_resources_captures_upload_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29179,9 +30025,9 @@ def start_resources_captures_upload_file_with_http_info( @validate_call - def start_resources_captures_upload_file_without_preload_content( + def start_resources_config_export_user_defined_apps_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29195,12 +30041,12 @@ def start_resources_captures_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29223,8 +30069,8 @@ def start_resources_captures_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29233,7 +30079,6 @@ def start_resources_captures_upload_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29242,9 +30087,9 @@ def start_resources_captures_upload_file_without_preload_content( ) - def _start_resources_captures_upload_file_serialize( + def _start_resources_config_export_user_defined_apps_serialize( self, - file, + config_id, _request_auth, _content_type, _headers, @@ -29264,11 +30109,11 @@ def _start_resources_captures_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters + if config_id is not None: + _path_params['configId'] = config_id # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter @@ -29280,19 +30125,6 @@ def _start_resources_captures_upload_file_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29302,7 +30134,7 @@ def _start_resources_captures_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/captures/operations/uploadFile', + resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29319,9 +30151,9 @@ def _start_resources_captures_upload_file_serialize( @validate_call - def start_resources_certificates_upload_file( + def start_resources_create_app( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29334,13 +30166,13 @@ def start_resources_certificates_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_certificates_upload_file + ) -> AsyncContext: + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29363,8 +30195,8 @@ def start_resources_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29372,8 +30204,7 @@ def start_resources_certificates_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -29383,9 +30214,9 @@ def start_resources_certificates_upload_file( @validate_call - def start_resources_certificates_upload_file_with_http_info( + def start_resources_create_app_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29398,13 +30229,13 @@ def start_resources_certificates_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_certificates_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29427,8 +30258,8 @@ def start_resources_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29436,8 +30267,7 @@ def start_resources_certificates_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -29447,9 +30277,9 @@ def start_resources_certificates_upload_file_with_http_info( @validate_call - def start_resources_certificates_upload_file_without_preload_content( + def start_resources_create_app_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29463,12 +30293,12 @@ def start_resources_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_certificates_upload_file + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29491,8 +30321,8 @@ def start_resources_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29500,8 +30330,7 @@ def start_resources_certificates_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -29510,9 +30339,9 @@ def start_resources_certificates_upload_file_without_preload_content( ) - def _start_resources_certificates_upload_file_serialize( + def _start_resources_create_app_serialize( self, - file, + create_app_operation, _request_auth, _content_type, _headers, @@ -29535,9 +30364,9 @@ def _start_resources_certificates_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if create_app_operation is not None: + _body_params = create_app_operation # set the HTTP header `Accept` @@ -29555,7 +30384,7 @@ def _start_resources_certificates_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -29570,7 +30399,7 @@ def _start_resources_certificates_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/certificates/operations/uploadFile', + resource_path='/api/v2/resources/operations/create-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29587,9 +30416,9 @@ def _start_resources_certificates_upload_file_serialize( @validate_call - def start_resources_config_export_user_defined_apps( + def start_resources_custom_fuzzing_scripts_upload_file( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29602,13 +30431,13 @@ def start_resources_config_export_user_defined_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_config_export_user_defined_apps + ) -> None: + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29631,8 +30460,8 @@ def start_resources_config_export_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29640,7 +30469,8 @@ def start_resources_config_export_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29650,9 +30480,9 @@ def start_resources_config_export_user_defined_apps( @validate_call - def start_resources_config_export_user_defined_apps_with_http_info( + def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29665,13 +30495,13 @@ def start_resources_config_export_user_defined_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_config_export_user_defined_apps + ) -> ApiResponse[None]: + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29694,8 +30524,8 @@ def start_resources_config_export_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29703,7 +30533,8 @@ def start_resources_config_export_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29713,9 +30544,9 @@ def start_resources_config_export_user_defined_apps_with_http_info( @validate_call - def start_resources_config_export_user_defined_apps_without_preload_content( + def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29729,12 +30560,12 @@ def start_resources_config_export_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_config_export_user_defined_apps + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29757,8 +30588,8 @@ def start_resources_config_export_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29766,7 +30597,8 @@ def start_resources_config_export_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29775,9 +30607,9 @@ def start_resources_config_export_user_defined_apps_without_preload_content( ) - def _start_resources_config_export_user_defined_apps_serialize( + def _start_resources_custom_fuzzing_scripts_upload_file_serialize( self, - config_id, + file, _request_auth, _content_type, _headers, @@ -29797,11 +30629,11 @@ def _start_resources_config_export_user_defined_apps_serialize( _body_params: Optional[bytes] = None # process the path parameters - if config_id is not None: - _path_params['configId'] = config_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -29813,6 +30645,19 @@ def _start_resources_config_export_user_defined_apps_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29822,7 +30667,7 @@ def _start_resources_config_export_user_defined_apps_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29839,9 +30684,9 @@ def _start_resources_config_export_user_defined_apps_serialize( @validate_call - def start_resources_create_app( + def start_resources_edit_app( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29855,12 +30700,12 @@ def start_resources_create_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29883,8 +30728,8 @@ def start_resources_create_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29902,9 +30747,9 @@ def start_resources_create_app( @validate_call - def start_resources_create_app_with_http_info( + def start_resources_edit_app_with_http_info( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29918,12 +30763,12 @@ def start_resources_create_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29946,8 +30791,8 @@ def start_resources_create_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29965,9 +30810,9 @@ def start_resources_create_app_with_http_info( @validate_call - def start_resources_create_app_without_preload_content( + def start_resources_edit_app_without_preload_content( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29981,12 +30826,12 @@ def start_resources_create_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30009,8 +30854,8 @@ def start_resources_create_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30027,9 +30872,9 @@ def start_resources_create_app_without_preload_content( ) - def _start_resources_create_app_serialize( + def _start_resources_edit_app_serialize( self, - create_app_operation, + edit_app_operation, _request_auth, _content_type, _headers, @@ -30053,8 +30898,8 @@ def _start_resources_create_app_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_app_operation is not None: - _body_params = create_app_operation + if edit_app_operation is not None: + _body_params = edit_app_operation # set the HTTP header `Accept` @@ -30087,7 +30932,7 @@ def _start_resources_create_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/create-app', + resource_path='/api/v2/resources/operations/edit-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30104,9 +30949,9 @@ def _start_resources_create_app_serialize( @validate_call - def start_resources_custom_fuzzing_scripts_upload_file( + def start_resources_find_param_matches( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30119,13 +30964,13 @@ def start_resources_custom_fuzzing_scripts_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_custom_fuzzing_scripts_upload_file + ) -> AsyncContext: + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30148,8 +30993,8 @@ def start_resources_custom_fuzzing_scripts_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30157,8 +31002,7 @@ def start_resources_custom_fuzzing_scripts_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -30168,9 +31012,9 @@ def start_resources_custom_fuzzing_scripts_upload_file( @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( + def start_resources_find_param_matches_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30183,13 +31027,13 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_custom_fuzzing_scripts_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30212,8 +31056,8 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30221,8 +31065,7 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -30232,9 +31075,9 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( + def start_resources_find_param_matches_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30248,12 +31091,12 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_custom_fuzzing_scripts_upload_file + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30276,8 +31119,8 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30285,8 +31128,7 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -30295,9 +31137,9 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( ) - def _start_resources_custom_fuzzing_scripts_upload_file_serialize( + def _start_resources_find_param_matches_serialize( self, - file, + find_param_matches_operation, _request_auth, _content_type, _headers, @@ -30320,9 +31162,9 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if find_param_matches_operation is not None: + _body_params = find_param_matches_operation # set the HTTP header `Accept` @@ -30340,7 +31182,7 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -30355,7 +31197,7 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', + resource_path='/api/v2/resources/operations/find-param-matches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30372,9 +31214,9 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( @validate_call - def start_resources_edit_app( + def start_resources_flow_library_upload_file( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30387,13 +31229,13 @@ def start_resources_edit_app( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_edit_app + ) -> None: + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30416,8 +31258,8 @@ def start_resources_edit_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30425,7 +31267,8 @@ def start_resources_edit_app( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -30435,9 +31278,9 @@ def start_resources_edit_app( @validate_call - def start_resources_edit_app_with_http_info( + def start_resources_flow_library_upload_file_with_http_info( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30450,13 +31293,13 @@ def start_resources_edit_app_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_edit_app + ) -> ApiResponse[None]: + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30479,8 +31322,8 @@ def start_resources_edit_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30488,7 +31331,8 @@ def start_resources_edit_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -30498,9 +31342,9 @@ def start_resources_edit_app_with_http_info( @validate_call - def start_resources_edit_app_without_preload_content( + def start_resources_flow_library_upload_file_without_preload_content( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30514,12 +31358,12 @@ def start_resources_edit_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_edit_app + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30542,8 +31386,8 @@ def start_resources_edit_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30551,7 +31395,8 @@ def start_resources_edit_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -30560,9 +31405,9 @@ def start_resources_edit_app_without_preload_content( ) - def _start_resources_edit_app_serialize( + def _start_resources_flow_library_upload_file_serialize( self, - edit_app_operation, + file, _request_auth, _content_type, _headers, @@ -30585,9 +31430,9 @@ def _start_resources_edit_app_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter - if edit_app_operation is not None: - _body_params = edit_app_operation # set the HTTP header `Accept` @@ -30605,7 +31450,7 @@ def _start_resources_edit_app_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'multipart/form-data' ] ) ) @@ -30620,7 +31465,7 @@ def _start_resources_edit_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/edit-app', + resource_path='/api/v2/resources/flow-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30637,9 +31482,9 @@ def _start_resources_edit_app_serialize( @validate_call - def start_resources_find_param_matches( + def start_resources_get_app_categories( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30653,12 +31498,12 @@ def start_resources_find_param_matches( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30681,8 +31526,8 @@ def start_resources_find_param_matches( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30700,9 +31545,9 @@ def start_resources_find_param_matches( @validate_call - def start_resources_find_param_matches_with_http_info( + def start_resources_get_app_categories_with_http_info( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30716,12 +31561,12 @@ def start_resources_find_param_matches_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30744,8 +31589,8 @@ def start_resources_find_param_matches_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30763,9 +31608,9 @@ def start_resources_find_param_matches_with_http_info( @validate_call - def start_resources_find_param_matches_without_preload_content( + def start_resources_get_app_categories_without_preload_content( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30779,12 +31624,12 @@ def start_resources_find_param_matches_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30807,8 +31652,8 @@ def start_resources_find_param_matches_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30825,9 +31670,9 @@ def start_resources_find_param_matches_without_preload_content( ) - def _start_resources_find_param_matches_serialize( + def _start_resources_get_app_categories_serialize( self, - find_param_matches_operation, + get_categories_operation, _request_auth, _content_type, _headers, @@ -30851,8 +31696,8 @@ def _start_resources_find_param_matches_serialize( # process the header parameters # process the form parameters # process the body parameter - if find_param_matches_operation is not None: - _body_params = find_param_matches_operation + if get_categories_operation is not None: + _body_params = get_categories_operation # set the HTTP header `Accept` @@ -30885,7 +31730,7 @@ def _start_resources_find_param_matches_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/find-param-matches', + resource_path='/api/v2/resources/operations/get-app-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30902,9 +31747,9 @@ def _start_resources_find_param_matches_serialize( @validate_call - def start_resources_flow_library_upload_file( + def start_resources_get_apps( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30917,13 +31762,13 @@ def start_resources_flow_library_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_flow_library_upload_file + ) -> AsyncContext: + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30946,8 +31791,8 @@ def start_resources_flow_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30955,8 +31800,7 @@ def start_resources_flow_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -30966,9 +31810,9 @@ def start_resources_flow_library_upload_file( @validate_call - def start_resources_flow_library_upload_file_with_http_info( + def start_resources_get_apps_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30981,13 +31825,13 @@ def start_resources_flow_library_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_flow_library_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31010,8 +31854,8 @@ def start_resources_flow_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31019,8 +31863,7 @@ def start_resources_flow_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -31030,9 +31873,9 @@ def start_resources_flow_library_upload_file_with_http_info( @validate_call - def start_resources_flow_library_upload_file_without_preload_content( + def start_resources_get_apps_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31046,12 +31889,12 @@ def start_resources_flow_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_flow_library_upload_file + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31074,8 +31917,8 @@ def start_resources_flow_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31083,8 +31926,7 @@ def start_resources_flow_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -31093,9 +31935,9 @@ def start_resources_flow_library_upload_file_without_preload_content( ) - def _start_resources_flow_library_upload_file_serialize( + def _start_resources_get_apps_serialize( self, - file, + get_apps_operation, _request_auth, _content_type, _headers, @@ -31118,9 +31960,9 @@ def _start_resources_flow_library_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if get_apps_operation is not None: + _body_params = get_apps_operation # set the HTTP header `Accept` @@ -31138,7 +31980,7 @@ def _start_resources_flow_library_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -31153,7 +31995,7 @@ def _start_resources_flow_library_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/flow-library/operations/uploadFile', + resource_path='/api/v2/resources/operations/get-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cyperf/api/configurations_api.py b/cyperf/api/configurations_api.py index a68ff2f..62830e7 100644 --- a/cyperf/api/configurations_api.py +++ b/cyperf/api/configurations_api.py @@ -21,8 +21,10 @@ from typing import List, Optional, Union from typing_extensions import Annotated from cyperf.models.async_context import AsyncContext +from cyperf.models.config_category import ConfigCategory from cyperf.models.config_metadata import ConfigMetadata from cyperf.models.export_all_operation import ExportAllOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_configs200_response import GetConfigs200Response from cyperf.models.get_resources_custom_import_operations200_response import GetResourcesCustomImportOperations200Response @@ -879,6 +881,550 @@ def _get_config_by_id_serialize( + @validate_call + def get_config_categorie_by_id( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ConfigCategory: + """get_config_categorie_by_id + + returns a single configuration category with its subcategories. + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConfigCategory", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_config_categorie_by_id_with_http_info( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ConfigCategory]: + """get_config_categorie_by_id + + returns a single configuration category with its subcategories. + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConfigCategory", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_config_categorie_by_id_without_preload_content( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_config_categorie_by_id + + returns a single configuration category with its subcategories. + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConfigCategory", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_config_categorie_by_id_serialize( + self, + config_categorie_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if config_categorie_id is not None: + _path_params['configCategorieId'] = config_categorie_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/config-categories/{configCategorieId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_config_categorie_subcategories( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetConfigCategorieSubcategories200Response: + """get_config_categorie_subcategories + + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_config_categorie_subcategories_with_http_info( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetConfigCategorieSubcategories200Response]: + """get_config_categorie_subcategories + + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_config_categorie_subcategories_without_preload_content( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_config_categorie_subcategories + + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_config_categorie_subcategories_serialize( + self, + config_categorie_id, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if config_categorie_id is not None: + _path_params['configCategorieId'] = config_categorie_id + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/config-categories/{configCategorieId}/subcategories', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_config_categories( self, diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index b8e637d..1311162 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -54,6 +54,7 @@ ApplicationType = DynamicModel('ApplicationType', (), {} ) AppsecApp = DynamicModel('AppsecApp', (), {} ) AppsecAppMetadata = DynamicModel('AppsecAppMetadata', (), {} ) +AppsecAppMetadataKeywordsInner = DynamicModel('AppsecAppMetadataKeywordsInner', (), {} ) AppsecAttack = DynamicModel('AppsecAttack', (), {} ) AppsecConfig = DynamicModel('AppsecConfig', (), {} ) ArchiveInfo = DynamicModel('ArchiveInfo', (), {} ) @@ -62,7 +63,6 @@ Attack = DynamicModel('Attack', (), {} ) AttackAction = DynamicModel('AttackAction', (), {} ) AttackMetadata = DynamicModel('AttackMetadata', (), {} ) -AttackMetadataKeywordsInner = DynamicModel('AttackMetadataKeywordsInner', (), {} ) AttackObjectivesAndTimeline = DynamicModel('AttackObjectivesAndTimeline', (), {} ) AttackProfile = DynamicModel('AttackProfile', (), {} ) AttackTimelineSegment = DynamicModel('AttackTimelineSegment', (), {} ) @@ -91,11 +91,13 @@ CiscoEncapsulation = DynamicModel('CiscoEncapsulation', (), {} ) ClearPortsOwnershipOperation = DynamicModel('ClearPortsOwnershipOperation', (), {} ) Command = DynamicModel('Command', (), {} ) +CommandMetadata = DynamicModel('CommandMetadata', (), {} ) ComputeNode = DynamicModel('ComputeNode', (), {} ) Config = DynamicModel('Config', (), {} ) ConfigCategory = DynamicModel('ConfigCategory', (), {} ) ConfigId = DynamicModel('ConfigId', (), {} ) ConfigMetadata = DynamicModel('ConfigMetadata', (), {} ) +ConfigSubCategory = DynamicModel('ConfigSubCategory', (), {} ) ConfigValidation = DynamicModel('ConfigValidation', (), {} ) Conflict = DynamicModel('Conflict', (), {} ) Connection = DynamicModel('Connection', (), {} ) @@ -175,11 +177,14 @@ GetAgents200ResponseOneOf = DynamicModel('GetAgents200ResponseOneOf', (), {} ) GetAgentsTags200Response = DynamicModel('GetAgentsTags200Response', (), {} ) GetAgentsTags200ResponseOneOf = DynamicModel('GetAgentsTags200ResponseOneOf', (), {} ) +GetAppsOperation = DynamicModel('GetAppsOperation', (), {} ) GetAsyncOperationResult200Response = DynamicModel('GetAsyncOperationResult200Response', (), {} ) GetAttacksOperation = DynamicModel('GetAttacksOperation', (), {} ) GetBrokers200Response = DynamicModel('GetBrokers200Response', (), {} ) GetBrokers200ResponseOneOf = DynamicModel('GetBrokers200ResponseOneOf', (), {} ) GetCategoriesOperation = DynamicModel('GetCategoriesOperation', (), {} ) +GetConfigCategorieSubcategories200Response = DynamicModel('GetConfigCategorieSubcategories200Response', (), {} ) +GetConfigCategorieSubcategories200ResponseOneOf = DynamicModel('GetConfigCategorieSubcategories200ResponseOneOf', (), {} ) GetConfigCategories200Response = DynamicModel('GetConfigCategories200Response', (), {} ) GetConfigCategories200ResponseOneOf = DynamicModel('GetConfigCategories200ResponseOneOf', (), {} ) GetConfigs200Response = DynamicModel('GetConfigs200Response', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 254e219..c557831 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -54,6 +54,7 @@ class LinkNameException(Exception): from cyperf.models.application_type import ApplicationType from cyperf.models.appsec_app import AppsecApp from cyperf.models.appsec_app_metadata import AppsecAppMetadata +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.appsec_attack import AppsecAttack from cyperf.models.appsec_config import AppsecConfig from cyperf.models.archive_info import ArchiveInfo @@ -62,7 +63,6 @@ class LinkNameException(Exception): from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.attack_profile import AttackProfile from cyperf.models.attack_timeline_segment import AttackTimelineSegment @@ -91,11 +91,13 @@ class LinkNameException(Exception): from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.compute_node import ComputeNode from cyperf.models.config import Config from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId from cyperf.models.config_metadata import ConfigMetadata +from cyperf.models.config_sub_category import ConfigSubCategory from cyperf.models.config_validation import ConfigValidation from cyperf.models.conflict import Conflict from cyperf.models.connection import Connection @@ -175,11 +177,14 @@ class LinkNameException(Exception): from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf from cyperf.models.get_configs200_response import GetConfigs200Response diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index d48b9b2..5f9ca53 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_metadata import ActionMetadata +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -32,7 +33,8 @@ class AppsecAppMetadata(BaseModel): """ # noqa: E501 actions_metadata: Optional[List[ActionMetadata]] = Field(default=None, alias="ActionsMetadata") app_parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="AppParameters") - __properties: ClassVar[List[str]] = ["ActionsMetadata", "AppParameters"] + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the application") + __properties: ClassVar[List[str]] = ["ActionsMetadata", "AppParameters", "keywords"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +89,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['AppParameters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in keywords (list) + _items = [] + if self.keywords: + for _item in self.keywords: + if _item: + _items.append(_item.to_dict()) + _dict['keywords'] = _items return _dict @classmethod @@ -102,7 +111,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionsMetadata": [ActionMetadata.from_dict(_item) for _item in obj["ActionsMetadata"]] if obj.get("ActionsMetadata") is not None else None, - "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None + "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, + "keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["keywords"]] if obj.get("keywords") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/appsec_app_metadata_keywords_inner.py b/cyperf/models/appsec_app_metadata_keywords_inner.py new file mode 100644 index 0000000..c8f39ce --- /dev/null +++ b/cyperf/models/appsec_app_metadata_keywords_inner.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, Dict, List, Optional, Union +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +APPSECAPPMETADATAKEYWORDSINNER_ANY_OF_SCHEMAS = ["List[object]", "bool", "float", "int", "object", "str"] + +class AppsecAppMetadataKeywordsInner(BaseModel): + """ + AppsecAppMetadataKeywordsInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_3_validator: Optional[StrictInt] = None + # data type: bool + anyof_schema_4_validator: Optional[StrictBool] = None + # data type: List[object] + anyof_schema_5_validator: Optional[List[Any]] = None + # data type: object + anyof_schema_6_validator: Optional[Dict[str, Any]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[List[object], bool, float, int, object, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "List[object]", "bool", "float", "int", "object", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = AppsecAppMetadataKeywordsInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[object] + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: object + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in AppsecAppMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into object + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into AppsecAppMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], List[object], bool, float, int, object, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py index 4b2728b..957a1f0 100644 --- a/cyperf/models/attack_metadata.py +++ b/cyperf/models/attack_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -32,7 +32,7 @@ class AttackMetadata(BaseModel): """ # noqa: E501 cve_count: Optional[StrictInt] = Field(default=None, description="The number of CVE references associated with the attack", alias="CveCount") direction: Optional[StrictStr] = Field(default=None, description="The aggregated direction of the strike included in the attack", alias="Direction") - keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the attack", alias="Keywords") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the attack", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, alias="LegacyNames") references: Optional[List[Reference]] = Field(default=None, description="The aggregated references of the attack", alias="References") severity: Optional[StrictStr] = Field(default=None, description="The aggregated severity of the strike included in the attack", alias="Severity") @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CveCount": obj.get("CveCount"), "Direction": obj.get("Direction"), - "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, "LegacyNames": obj.get("LegacyNames"), "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, "Severity": obj.get("Severity"), diff --git a/cyperf/models/command.py b/cyperf/models/command.py index 0fdca2e..f22f09d 100644 --- a/cyperf/models/command.py +++ b/cyperf/models/command.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.exchange import Exchange -from cyperf.models.metadata import Metadata from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -36,7 +36,7 @@ class Command(BaseModel): description: Optional[StrictStr] = Field(default=None, description="The description of the command", alias="Description") exchanges: Optional[List[Exchange]] = Field(default=None, description="The exchanges of the command", alias="Exchanges") is_strike: Optional[StrictBool] = Field(default=None, description="Indicates if the command is a strike", alias="IsStrike") - metadata: Optional[Metadata] = Field(default=None, alias="Metadata") + metadata: Optional[CommandMetadata] = Field(default=None, alias="Metadata") name: Optional[StrictStr] = Field(default=None, description="The name of the command", alias="Name") parameters: Optional[List[Parameter]] = Field(default=None, description="The parameters of the command", alias="Parameters") links: Optional[List[APILink]] = None @@ -129,7 +129,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Description": obj.get("Description"), "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, "IsStrike": obj.get("IsStrike"), - "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, + "Metadata": CommandMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py new file mode 100644 index 0000000..4a8e604 --- /dev/null +++ b/cyperf/models/command_metadata.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner +from cyperf.models.reference import Reference +from cyperf.models.rtp_profile_meta import RTPProfileMeta +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class CommandMetadata(BaseModel): + """ + CommandMetadata + """ # noqa: E501 + direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") + is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") + is_for_app_traffic_only: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that can only be used in application traffic and cannot be mixed with attack traffic", alias="IsForAppTrafficOnly") + is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") + legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") + no_multi_flow_support: Optional[StrictBool] = Field(default=None, description="If true, only a single application with this protocol id can be present in the configuration", alias="NoMultiFlowSupport") + protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") + rtp_profile_meta: Optional[RTPProfileMeta] = Field(default=None, alias="RTPProfileMeta") + references: Optional[List[Reference]] = Field(default=None, description="The references of the strike", alias="References") + requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands", alias="RequiresUniqueness") + severity: Optional[StrictStr] = Field(default=None, description="The severity of the strike", alias="Severity") + skip_attack_generation: Optional[StrictBool] = Field(default=None, description="If true, don't generate an attack for this strike", alias="SkipAttackGeneration") + sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") + static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") + supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommandMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in keywords (list) + _items = [] + if self.keywords: + for _item in self.keywords: + if _item: + _items.append(_item.to_dict()) + _dict['Keywords'] = _items + # override the default output from pydantic by calling `to_dict()` of rtp_profile_meta + if self.rtp_profile_meta: + _dict['RTPProfileMeta'] = self.rtp_profile_meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in references (list) + _items = [] + if self.references: + for _item in self.references: + if _item: + _items.append(_item.to_dict()) + _dict['References'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CommandMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Direction": obj.get("Direction"), + "IsBanner": obj.get("IsBanner"), + "IsForAppTrafficOnly": obj.get("IsForAppTrafficOnly"), + "IsStreaming": obj.get("IsStreaming"), + "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "LegacyNames": obj.get("LegacyNames"), + "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), + "Protocol": obj.get("Protocol"), + "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, + "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "RequiresUniqueness": obj.get("RequiresUniqueness"), + "Severity": obj.get("Severity"), + "SkipAttackGeneration": obj.get("SkipAttackGeneration"), + "SortSeverity": obj.get("SortSeverity"), + "Static": obj.get("Static"), + "SupportedApps": obj.get("SupportedApps"), + "Year": obj.get("Year") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/config_category.py b/cyperf/models/config_category.py index 52cfb25..c13b550 100644 --- a/cyperf/models/config_category.py +++ b/cyperf/models/config_category.py @@ -20,6 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.config_sub_category import ConfigSubCategory from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,7 +31,9 @@ class ConfigCategory(BaseModel): ConfigCategory """ # noqa: E501 display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration category", alias="displayName") - __properties: ClassVar[List[str]] = ["displayName"] + links: Optional[List[APILink]] = None + subcategories: Optional[List[ConfigSubCategory]] = Field(default=None, description="List of subcategory names") + __properties: ClassVar[List[str]] = ["displayName", "links", "subcategories"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +74,20 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in subcategories (list) + _items = [] + if self.subcategories: + for _item in self.subcategories: + if _item: + _items.append(_item.to_dict()) + _dict['subcategories'] = _items return _dict @classmethod @@ -84,7 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "displayName": obj.get("displayName") + "displayName": obj.get("displayName"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "subcategories": [ConfigSubCategory.from_dict(_item) for _item in obj["subcategories"]] if obj.get("subcategories") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/config_metadata.py b/cyperf/models/config_metadata.py index 3676749..fda8b96 100644 --- a/cyperf/models/config_metadata.py +++ b/cyperf/models/config_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.version import Version from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -32,7 +32,7 @@ class ConfigMetadata(BaseModel): ConfigMetadata """ # noqa: E501 application: Optional[StrictStr] = None - config_data: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The actual configuration object", alias="configData") + config_data: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The actual configuration object", alias="configData") config_url: Optional[StrictStr] = Field(default=None, description="The backend URL of the saved config data", alias="configUrl") created_on: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when config was created", alias="createdOn") display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration", alias="displayName") @@ -136,7 +136,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "application": obj.get("application"), "configData": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["configData"].items() ) if obj.get("configData") is not None diff --git a/cyperf/models/config_sub_category.py b/cyperf/models/config_sub_category.py new file mode 100644 index 0000000..30e510d --- /dev/null +++ b/cyperf/models/config_sub_category.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ConfigSubCategory(BaseModel): + """ + ConfigSubCategory + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration subcategory", alias="displayName") + __properties: ClassVar[List[str]] = ["displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConfigSubCategory from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConfigSubCategory from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "displayName": obj.get("displayName") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/generic_file.py b/cyperf/models/generic_file.py index b9e3aaa..3a43762 100644 --- a/cyperf/models/generic_file.py +++ b/cyperf/models/generic_file.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.file_metadata import FileMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -36,7 +36,7 @@ class GenericFile(BaseModel): md5: Optional[StrictStr] = Field(default=None, description="The md5 value of the file") metadata: Optional[FileMetadata] = None name: Optional[StrictStr] = Field(default=None, description="The name of the file") - options: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The characteristics of the file") + options: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The characteristics of the file") owner: Optional[StrictStr] = Field(default=None, description="The user-visible name of the file's owner") owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the file's owner", alias="ownerId") reference_links: Optional[Dict[str, StrictInt]] = Field(default=None, alias="referenceLinks") @@ -122,7 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "metadata": FileMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, "name": obj.get("name"), "options": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["options"].items() ) if obj.get("options") is not None diff --git a/cyperf/models/get_apps_operation.py b/cyperf/models/get_apps_operation.py new file mode 100644 index 0000000..9404c17 --- /dev/null +++ b/cyperf/models/get_apps_operation.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.category_filter import CategoryFilter +from cyperf.models.sort_body_field import SortBodyField +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetAppsOperation(BaseModel): + """ + GetAppsOperation + """ # noqa: E501 + categories: Optional[List[CategoryFilter]] = None + filter_mode: Optional[StrictStr] = Field(default=None, alias="filterMode") + search_col: Optional[List[StrictStr]] = Field(default=None, alias="searchCol") + search_val: Optional[List[StrictStr]] = Field(default=None, alias="searchVal") + skip: Optional[StrictStr] = None + sort: Optional[List[SortBodyField]] = None + take: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["categories", "filterMode", "searchCol", "searchVal", "skip", "sort", "take"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppsOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in categories (list) + _items = [] + if self.categories: + for _item in self.categories: + if _item: + _items.append(_item.to_dict()) + _dict['categories'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in sort (list) + _items = [] + if self.sort: + for _item in self.sort: + if _item: + _items.append(_item.to_dict()) + _dict['sort'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppsOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "filterMode": obj.get("filterMode"), + "searchCol": obj.get("searchCol"), + "searchVal": obj.get("searchVal"), + "skip": obj.get("skip"), + "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "take": obj.get("take") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_config_categorie_subcategories200_response.py b/cyperf/models/get_config_categorie_subcategories200_response.py new file mode 100644 index 0000000..3dc6fde --- /dev/null +++ b/cyperf/models/get_config_categorie_subcategories200_response.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.config_sub_category import ConfigSubCategory +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETCONFIGCATEGORIESUBCATEGORIES200RESPONSE_ONE_OF_SCHEMAS = ["GetConfigCategorieSubcategories200ResponseOneOf", "List[ConfigSubCategory]"] + +class GetConfigCategorieSubcategories200Response(BaseModel): + """ + GetConfigCategorieSubcategories200Response + """ + # data type: List[ConfigSubCategory] + oneof_schema_1_validator: Optional[List[ConfigSubCategory]] = None + # data type: GetConfigCategorieSubcategories200ResponseOneOf + oneof_schema_2_validator: Optional[GetConfigCategorieSubcategories200ResponseOneOf] = None + actual_instance: Optional[Union[GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]]] = None + one_of_schemas: Set[str] = { "GetConfigCategorieSubcategories200ResponseOneOf", "List[ConfigSubCategory]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetConfigCategorieSubcategories200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[ConfigSubCategory] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetConfigCategorieSubcategories200ResponseOneOf + if not isinstance(v, GetConfigCategorieSubcategories200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetConfigCategorieSubcategories200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[ConfigSubCategory] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetConfigCategorieSubcategories200ResponseOneOf + try: + instance.actual_instance = GetConfigCategorieSubcategories200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py new file mode 100644 index 0000000..81c5642 --- /dev/null +++ b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.config_sub_category import ConfigSubCategory +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetConfigCategorieSubcategories200ResponseOneOf(BaseModel): + """ + GetConfigCategorieSubcategories200ResponseOneOf + """ # noqa: E501 + data: Optional[List[ConfigSubCategory]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": [ConfigSubCategory.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index eb20e9c..9282dd4 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from cyperf.models.rtp_profile_meta import RTPProfileMeta from typing import Optional, Set, Union, GenericAlias, get_args @@ -34,7 +34,7 @@ class Metadata(BaseModel): direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") - keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") no_multi_flow_support: Optional[StrictBool] = Field(default=None, description="If true, only a single application with this protocol id can be present in the configuration", alias="NoMultiFlowSupport") protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") @@ -122,7 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), "IsStreaming": obj.get("IsStreaming"), - "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, "LegacyNames": obj.get("LegacyNames"), "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), diff --git a/cyperf/models/open_api_definitions.py b/cyperf/models/open_api_definitions.py index 2299499..a00c6e0 100644 --- a/cyperf/models/open_api_definitions.py +++ b/cyperf/models/open_api_definitions.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,7 +29,7 @@ class OpenAPIDefinitions(BaseModel): """ OpenAPIDefinitions """ # noqa: E501 - open_api_definitions: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The OpenAPI definitions for CyPerf data model", alias="openApiDefinitions") + open_api_definitions: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The OpenAPI definitions for CyPerf data model", alias="openApiDefinitions") __properties: ClassVar[List[str]] = ["openApiDefinitions"] model_config = ConfigDict( @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "openApiDefinitions": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["openApiDefinitions"].items() ) if obj.get("openApiDefinitions") is not None diff --git a/cyperf/models/plugin_stats.py b/cyperf/models/plugin_stats.py index 3514522..1ce54ed 100644 --- a/cyperf/models/plugin_stats.py +++ b/cyperf/models/plugin_stats.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class PluginStats(BaseModel): PluginStats """ # noqa: E501 plugin: Optional[StrictStr] = Field(default=None, description="The name of the plugin") - stats: Optional[List[Dict[str, AttackMetadataKeywordsInner]]] = Field(default=None, description="The statistics to be ingested") + stats: Optional[List[Dict[str, AppsecAppMetadataKeywordsInner]]] = Field(default=None, description="The statistics to be ingested") version: Optional[StrictStr] = Field(default=None, description="The version of the plugin") __properties: ClassVar[List[str]] = ["plugin", "stats", "version"] @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "plugin": obj.get("plugin"), - "stats": [Dict[str, AttackMetadataKeywordsInner].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": [Dict[str, AppsecAppMetadataKeywordsInner].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, "version": obj.get("version") , "links": obj.get("links") diff --git a/cyperf/models/snapshot.py b/cyperf/models/snapshot.py index 34a4c6f..92ddf9d 100644 --- a/cyperf/models/snapshot.py +++ b/cyperf/models/snapshot.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class Snapshot(BaseModel): Snapshot """ # noqa: E501 timestamp: Optional[StrictInt] = Field(default=None, description="The Unix timestamp in milliseconds at which the snapshot was taken") - values: Optional[List[List[AttackMetadataKeywordsInner]]] = Field(default=None, description="The values of the snapshot. The order of the values corresponds to the order of columns in result.") + values: Optional[List[List[AppsecAppMetadataKeywordsInner]]] = Field(default=None, description="The values of the snapshot. The order of the values corresponds to the order of columns in result.") __properties: ClassVar[List[str]] = ["timestamp", "values"] model_config = ConfigDict( @@ -97,7 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "timestamp": obj.get("timestamp"), "values": [ - [AttackMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] + [AppsecAppMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] for _item in obj["values"] ] if obj.get("values") is not None else None , diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index 1bac8fd..080d75e 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -25,6 +25,7 @@ Method | HTTP request | Description [**get_capture_flows**](ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | [**get_flow_exchanges**](ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | [**get_resources_app_by_id**](ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | +[**get_resources_app_categories**](ApplicationResourcesApi.md#get_resources_app_categories) | **GET** /api/v2/resources/app-categories | [**get_resources_application_type_by_id**](ApplicationResourcesApi.md#get_resources_application_type_by_id) | **GET** /api/v2/resources/application-types/{applicationTypeId} | [**get_resources_application_types**](ApplicationResourcesApi.md#get_resources_application_types) | **GET** /api/v2/resources/application-types | [**get_resources_apps**](ApplicationResourcesApi.md#get_resources_apps) | **GET** /api/v2/resources/apps | @@ -120,6 +121,8 @@ Method | HTTP request | Description [**start_resources_edit_app**](ApplicationResourcesApi.md#start_resources_edit_app) | **POST** /api/v2/resources/operations/edit-app | [**start_resources_find_param_matches**](ApplicationResourcesApi.md#start_resources_find_param_matches) | **POST** /api/v2/resources/operations/find-param-matches | [**start_resources_flow_library_upload_file**](ApplicationResourcesApi.md#start_resources_flow_library_upload_file) | **POST** /api/v2/resources/flow-library/operations/uploadFile | +[**start_resources_get_app_categories**](ApplicationResourcesApi.md#start_resources_get_app_categories) | **POST** /api/v2/resources/operations/get-app-categories | +[**start_resources_get_apps**](ApplicationResourcesApi.md#start_resources_get_apps) | **POST** /api/v2/resources/operations/get-apps | [**start_resources_get_attack_categories**](ApplicationResourcesApi.md#start_resources_get_attack_categories) | **POST** /api/v2/resources/operations/get-attack-categories | [**start_resources_get_attacks**](ApplicationResourcesApi.md#start_resources_get_attacks) | **POST** /api/v2/resources/operations/get-attacks | [**start_resources_get_strike_categories**](ApplicationResourcesApi.md#start_resources_get_strike_categories) | **POST** /api/v2/resources/operations/get-strike-categories | @@ -1750,6 +1753,84 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_resources_app_categories** +> List[Category] get_resources_app_categories(take=take, skip=skip) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.category import Category +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_resources_app_categories(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_app_categories:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_app_categories: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**List[Category]**](Category.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_resources_application_type_by_id** > ApplicationType get_resources_application_type_by_id(application_type_id) @@ -1909,7 +1990,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_resources_apps** -> GetResourcesApps200Response get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) +> GetResourcesApps200Response get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort, categories=categories) @@ -1951,9 +2032,10 @@ with cyperf.ApiClient(configuration) as api_client: search_val = 'search_val_example' # str | The keywords used to filter the items (optional) filter_mode = 'filter_mode_example' # str | The operator applied to the supplied values (optional) sort = 'sort_example' # str | A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc (optional) + categories = 'categories_example' # str | A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... (optional) try: - api_response = api_instance.get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) + api_response = api_instance.get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort, categories=categories) print("The response of ApplicationResourcesApi->get_resources_apps:\n") pprint(api_response) except Exception as e: @@ -1973,6 +2055,7 @@ Name | Type | Description | Notes **search_val** | **str**| The keywords used to filter the items | [optional] **filter_mode** | **str**| The operator applied to the supplied values | [optional] **sort** | **str**| A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc | [optional] + **categories** | **str**| A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... | [optional] ### Return type @@ -1992,6 +2075,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The list of CyPerf applications | - | +**400** | Bad request | - | **401** | Authorization information is missing or invalid. | - | **500** | Unexpected error | - | @@ -9220,6 +9304,162 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_resources_get_app_categories** +> AsyncContext start_resources_get_app_categories(get_categories_operation=get_categories_operation) + + + +Get the list of app categories + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + get_categories_operation = cyperf.GetCategoriesOperation() # GetCategoriesOperation | (optional) + + try: + api_response = api_instance.start_resources_get_app_categories(get_categories_operation=get_categories_operation) + print("The response of ApplicationResourcesApi->start_resources_get_app_categories:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_get_app_categories: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **get_categories_operation** | [**GetCategoriesOperation**](GetCategoriesOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_resources_get_apps** +> AsyncContext start_resources_get_apps(get_apps_operation=get_apps_operation) + + + +Get the list of applications + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.get_apps_operation import GetAppsOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + get_apps_operation = cyperf.GetAppsOperation() # GetAppsOperation | (optional) + + try: + api_response = api_instance.start_resources_get_apps(get_apps_operation=get_apps_operation) + print("The response of ApplicationResourcesApi->start_resources_get_apps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_get_apps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **get_apps_operation** | [**GetAppsOperation**](GetAppsOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_resources_get_attack_categories** > AsyncContext start_resources_get_attack_categories(get_categories_operation=get_categories_operation) diff --git a/docs/AppsecAppMetadata.md b/docs/AppsecAppMetadata.md index c98596e..ea4e8e8 100644 --- a/docs/AppsecAppMetadata.md +++ b/docs/AppsecAppMetadata.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions_metadata** | [**List[ActionMetadata]**](ActionMetadata.md) | | [optional] **app_parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The aggregated keywords of the application | [optional] ## Example diff --git a/docs/AppsecAppMetadataKeywordsInner.md b/docs/AppsecAppMetadataKeywordsInner.md new file mode 100644 index 0000000..32f6df5 --- /dev/null +++ b/docs/AppsecAppMetadataKeywordsInner.md @@ -0,0 +1,28 @@ +# AppsecAppMetadataKeywordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of AppsecAppMetadataKeywordsInner from a JSON string +appsec_app_metadata_keywords_inner_instance = AppsecAppMetadataKeywordsInner.from_json(json) +# print the JSON string representation of the object +print(AppsecAppMetadataKeywordsInner.to_json()) + +# convert the object into a dict +appsec_app_metadata_keywords_inner_dict = appsec_app_metadata_keywords_inner_instance.to_dict() +# create an instance of AppsecAppMetadataKeywordsInner from a dict +appsec_app_metadata_keywords_inner_from_dict = AppsecAppMetadataKeywordsInner.from_dict(appsec_app_metadata_keywords_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AttackMetadata.md b/docs/AttackMetadata.md index e80a700..e142e7a 100644 --- a/docs/AttackMetadata.md +++ b/docs/AttackMetadata.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cve_count** | **int** | The number of CVE references associated with the attack | [optional] **direction** | **str** | The aggregated direction of the strike included in the attack | [optional] -**keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The aggregated keywords of the attack | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The aggregated keywords of the attack | [optional] **legacy_names** | **List[str]** | | [optional] **references** | [**List[Reference]**](Reference.md) | The aggregated references of the attack | [optional] **severity** | **str** | The aggregated severity of the strike included in the attack | [optional] diff --git a/docs/Command.md b/docs/Command.md index d573731..f0c318b 100644 --- a/docs/Command.md +++ b/docs/Command.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **description** | **str** | The description of the command | [optional] **exchanges** | [**List[Exchange]**](Exchange.md) | The exchanges of the command | [optional] **is_strike** | **bool** | Indicates if the command is a strike | [optional] [readonly] -**metadata** | [**Metadata**](Metadata.md) | | [optional] +**metadata** | [**CommandMetadata**](CommandMetadata.md) | | [optional] **name** | **str** | The name of the command | [optional] [readonly] **parameters** | [**List[Parameter]**](Parameter.md) | The parameters of the command | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md new file mode 100644 index 0000000..0b09e72 --- /dev/null +++ b/docs/CommandMetadata.md @@ -0,0 +1,45 @@ +# CommandMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**direction** | **str** | The direction of the strike | [optional] +**is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] +**is_for_app_traffic_only** | **bool** | Indicates that this is a command that can only be used in application traffic and cannot be mixed with attack traffic | [optional] +**is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The keywords of the strike | [optional] +**legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] +**no_multi_flow_support** | **bool** | If true, only a single application with this protocol id can be present in the configuration | [optional] +**protocol** | **str** | The protocol of the strike | [optional] +**rtp_profile_meta** | [**RTPProfileMeta**](RTPProfileMeta.md) | | [optional] +**references** | [**List[Reference]**](Reference.md) | The references of the strike | [optional] +**requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands | [optional] +**severity** | **str** | The severity of the strike | [optional] +**skip_attack_generation** | **bool** | If true, don't generate an attack for this strike | [optional] +**sort_severity** | **str** | The field by which the severity is sorted | [optional] +**static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] +**supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**year** | **str** | The year of the strike | [optional] + +## Example + +```python +from cyperf.models.command_metadata import CommandMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of CommandMetadata from a JSON string +command_metadata_instance = CommandMetadata.from_json(json) +# print the JSON string representation of the object +print(CommandMetadata.to_json()) + +# convert the object into a dict +command_metadata_dict = command_metadata_instance.to_dict() +# create an instance of CommandMetadata from a dict +command_metadata_from_dict = CommandMetadata.from_dict(command_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConfigCategory.md b/docs/ConfigCategory.md index 0831a62..86be0d6 100644 --- a/docs/ConfigCategory.md +++ b/docs/ConfigCategory.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **display_name** | **str** | The user-visible name of the configuration category | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] +**subcategories** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | List of subcategory names | [optional] ## Example diff --git a/docs/ConfigMetadata.md b/docs/ConfigMetadata.md index 274c345..d413560 100644 --- a/docs/ConfigMetadata.md +++ b/docs/ConfigMetadata.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **application** | **str** | | [optional] -**config_data** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The actual configuration object | [optional] +**config_data** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The actual configuration object | [optional] **config_url** | **str** | The backend URL of the saved config data | [optional] **created_on** | **int** | A Unix timestamp that indicates when config was created | [optional] [readonly] **display_name** | **str** | The user-visible name of the configuration | [optional] diff --git a/docs/ConfigSubCategory.md b/docs/ConfigSubCategory.md new file mode 100644 index 0000000..edb5995 --- /dev/null +++ b/docs/ConfigSubCategory.md @@ -0,0 +1,29 @@ +# ConfigSubCategory + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **str** | The user-visible name of the configuration subcategory | [optional] + +## Example + +```python +from cyperf.models.config_sub_category import ConfigSubCategory + +# TODO update the JSON string below +json = "{}" +# create an instance of ConfigSubCategory from a JSON string +config_sub_category_instance = ConfigSubCategory.from_json(json) +# print the JSON string representation of the object +print(ConfigSubCategory.to_json()) + +# convert the object into a dict +config_sub_category_dict = config_sub_category_instance.to_dict() +# create an instance of ConfigSubCategory from a dict +config_sub_category_from_dict = ConfigSubCategory.from_dict(config_sub_category_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConfigurationsApi.md b/docs/ConfigurationsApi.md index 5766462..0e902b5 100644 --- a/docs/ConfigurationsApi.md +++ b/docs/ConfigurationsApi.md @@ -7,6 +7,8 @@ Method | HTTP request | Description [**create_configs**](ConfigurationsApi.md#create_configs) | **POST** /api/v2/configs | [**delete_config**](ConfigurationsApi.md#delete_config) | **DELETE** /api/v2/configs/{configId} | [**get_config_by_id**](ConfigurationsApi.md#get_config_by_id) | **GET** /api/v2/configs/{configId} | +[**get_config_categorie_by_id**](ConfigurationsApi.md#get_config_categorie_by_id) | **GET** /api/v2/config-categories/{configCategorieId} | +[**get_config_categorie_subcategories**](ConfigurationsApi.md#get_config_categorie_subcategories) | **GET** /api/v2/config-categories/{configCategorieId}/subcategories | [**get_config_categories**](ConfigurationsApi.md#get_config_categories) | **GET** /api/v2/config-categories | [**get_configs**](ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | [**get_resources_custom_import_operations**](ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | @@ -257,6 +259,165 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_config_categorie_by_id** +> ConfigCategory get_config_categorie_by_id(config_categorie_id) + + + +returns a single configuration category with its subcategories. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.config_category import ConfigCategory +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ConfigurationsApi(api_client) + config_categorie_id = 'config_categorie_id_example' # str | The ID of the config categorie. + + try: + api_response = api_instance.get_config_categorie_by_id(config_categorie_id) + print("The response of ConfigurationsApi->get_config_categorie_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ConfigurationsApi->get_config_categorie_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **config_categorie_id** | **str**| The ID of the config categorie. | + +### Return type + +[**ConfigCategory**](ConfigCategory.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The filtered configuration category with subcategories | - | +**500** | Internal server error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_config_categorie_subcategories** +> GetConfigCategorieSubcategories200Response get_config_categorie_subcategories(config_categorie_id, take=take, skip=skip) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ConfigurationsApi(api_client) + config_categorie_id = 'config_categorie_id_example' # str | The ID of the config categorie. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_config_categorie_subcategories(config_categorie_id, take=take, skip=skip) + print("The response of ConfigurationsApi->get_config_categorie_subcategories:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ConfigurationsApi->get_config_categorie_subcategories: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **config_categorie_id** | **str**| The ID of the config categorie. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**GetConfigCategorieSubcategories200Response**](GetConfigCategorieSubcategories200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of subcategories for the specified category | - | +**400** | Missing or invalid category parameter | - | +**500** | Internal server error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_config_categories** > GetConfigCategories200Response get_config_categories(take=take, skip=skip) diff --git a/docs/GenericFile.md b/docs/GenericFile.md index 640336a..818600d 100644 --- a/docs/GenericFile.md +++ b/docs/GenericFile.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **md5** | **str** | The md5 value of the file | [optional] **metadata** | [**FileMetadata**](FileMetadata.md) | | [optional] **name** | **str** | The name of the file | [optional] -**options** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The characteristics of the file | [optional] +**options** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The characteristics of the file | [optional] **owner** | **str** | The user-visible name of the file's owner | [optional] [readonly] **owner_id** | **str** | The unique identifier of the file's owner | [optional] [readonly] **reference_links** | **Dict[str, int]** | | [optional] diff --git a/docs/GetAppsOperation.md b/docs/GetAppsOperation.md new file mode 100644 index 0000000..8c8163f --- /dev/null +++ b/docs/GetAppsOperation.md @@ -0,0 +1,35 @@ +# GetAppsOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**List[CategoryFilter]**](CategoryFilter.md) | | [optional] +**filter_mode** | **str** | | [optional] +**search_col** | **List[str]** | | [optional] +**search_val** | **List[str]** | | [optional] +**skip** | **str** | | [optional] +**sort** | [**List[SortBodyField]**](SortBodyField.md) | | [optional] +**take** | **str** | | [optional] + +## Example + +```python +from cyperf.models.get_apps_operation import GetAppsOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppsOperation from a JSON string +get_apps_operation_instance = GetAppsOperation.from_json(json) +# print the JSON string representation of the object +print(GetAppsOperation.to_json()) + +# convert the object into a dict +get_apps_operation_dict = get_apps_operation_instance.to_dict() +# create an instance of GetAppsOperation from a dict +get_apps_operation_from_dict = GetAppsOperation.from_dict(get_apps_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetConfigCategorieSubcategories200Response.md b/docs/GetConfigCategorieSubcategories200Response.md new file mode 100644 index 0000000..c03e8e0 --- /dev/null +++ b/docs/GetConfigCategorieSubcategories200Response.md @@ -0,0 +1,30 @@ +# GetConfigCategorieSubcategories200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetConfigCategorieSubcategories200Response from a JSON string +get_config_categorie_subcategories200_response_instance = GetConfigCategorieSubcategories200Response.from_json(json) +# print the JSON string representation of the object +print(GetConfigCategorieSubcategories200Response.to_json()) + +# convert the object into a dict +get_config_categorie_subcategories200_response_dict = get_config_categorie_subcategories200_response_instance.to_dict() +# create an instance of GetConfigCategorieSubcategories200Response from a dict +get_config_categorie_subcategories200_response_from_dict = GetConfigCategorieSubcategories200Response.from_dict(get_config_categorie_subcategories200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetConfigCategorieSubcategories200ResponseOneOf.md b/docs/GetConfigCategorieSubcategories200ResponseOneOf.md new file mode 100644 index 0000000..ef04046 --- /dev/null +++ b/docs/GetConfigCategorieSubcategories200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetConfigCategorieSubcategories200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a JSON string +get_config_categorie_subcategories200_response_one_of_instance = GetConfigCategorieSubcategories200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetConfigCategorieSubcategories200ResponseOneOf.to_json()) + +# convert the object into a dict +get_config_categorie_subcategories200_response_one_of_dict = get_config_categorie_subcategories200_response_one_of_instance.to_dict() +# create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a dict +get_config_categorie_subcategories200_response_one_of_from_dict = GetConfigCategorieSubcategories200ResponseOneOf.from_dict(get_config_categorie_subcategories200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Metadata.md b/docs/Metadata.md index 228d7c7..d7fca70 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **direction** | **str** | The direction of the strike | [optional] **is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] **is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] -**keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The keywords of the strike | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The keywords of the strike | [optional] **legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] **no_multi_flow_support** | **bool** | If true, only a single application with this protocol id can be present in the configuration | [optional] **protocol** | **str** | The protocol of the strike | [optional] diff --git a/docs/OpenAPIDefinitions.md b/docs/OpenAPIDefinitions.md index a95a4c4..2db53a2 100644 --- a/docs/OpenAPIDefinitions.md +++ b/docs/OpenAPIDefinitions.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**open_api_definitions** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The OpenAPI definitions for CyPerf data model | [optional] +**open_api_definitions** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The OpenAPI definitions for CyPerf data model | [optional] ## Example diff --git a/docs/PluginStats.md b/docs/PluginStats.md index 628c84b..8faf9d6 100644 --- a/docs/PluginStats.md +++ b/docs/PluginStats.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **plugin** | **str** | The name of the plugin | [optional] -**stats** | **List[Dict[str, AttackMetadataKeywordsInner]]** | The statistics to be ingested | [optional] +**stats** | **List[Dict[str, AppsecAppMetadataKeywordsInner]]** | The statistics to be ingested | [optional] **version** | **str** | The version of the plugin | [optional] ## Example diff --git a/docs/Snapshot.md b/docs/Snapshot.md index e0fd70e..f4342e7 100644 --- a/docs/Snapshot.md +++ b/docs/Snapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **timestamp** | **int** | The Unix timestamp in milliseconds at which the snapshot was taken | [optional] -**values** | **List[List[AttackMetadataKeywordsInner]]** | The values of the snapshot. The order of the values corresponds to the order of columns in result. | [optional] +**values** | **List[List[AppsecAppMetadataKeywordsInner]]** | The values of the snapshot. The order of the values corresponds to the order of columns in result. | [optional] ## Example diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py index c780ed6..1cf13fb 100644 --- a/test/test_application_resources_api.py +++ b/test/test_application_resources_api.py @@ -154,6 +154,12 @@ def test_get_resources_app_by_id(self) -> None: """ pass + def test_get_resources_app_categories(self) -> None: + """Test case for get_resources_app_categories + + """ + pass + def test_get_resources_application_type_by_id(self) -> None: """Test case for get_resources_application_type_by_id @@ -685,6 +691,8 @@ def test_get_resources_user_defined_apps_upload_file_result(self) -> None: + + @@ -754,6 +762,18 @@ def test_start_resources_flow_library_upload_file(self) -> None: """ pass + def test_start_resources_get_app_categories(self) -> None: + """Test case for start_resources_get_app_categories + + """ + pass + + def test_start_resources_get_apps(self) -> None: + """Test case for start_resources_get_apps + + """ + pass + def test_start_resources_get_attack_categories(self) -> None: """Test case for start_resources_get_attack_categories diff --git a/test/test_application_type.py b/test/test_application_type.py index 05249b8..96ee8b2 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -48,9 +48,10 @@ def make_instance(self, include_optional) -> ApplicationType: id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null @@ -326,9 +327,10 @@ def make_instance(self, include_optional) -> ApplicationType: id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index 3cebc8b..cd77b96 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -142,6 +142,9 @@ def make_instance(self, include_optional) -> AppsecApp: app_parameters = [ cyperf.models.parameter_meta.ParameterMeta( name = '', ) + ], + keywords = [ + null ], ), id = '', last_modified = 56, diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index cf92393..49a4c41 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -147,6 +147,9 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: ], ), ) ], name = '', ) + ], + keywords = [ + null ] ) else: diff --git a/test/test_appsec_app_metadata_keywords_inner.py b/test/test_appsec_app_metadata_keywords_inner.py new file mode 100644 index 0000000..b04f531 --- /dev/null +++ b/test/test_appsec_app_metadata_keywords_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner + +class TestAppsecAppMetadataKeywordsInner(unittest.TestCase): + """AppsecAppMetadataKeywordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppsecAppMetadataKeywordsInner: + """Test AppsecAppMetadataKeywordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppsecAppMetadataKeywordsInner` + """ + model = AppsecAppMetadataKeywordsInner() + if include_optional: + return AppsecAppMetadataKeywordsInner( + ) + else: + return AppsecAppMetadataKeywordsInner( + ) + """ + + def testAppsecAppMetadataKeywordsInner(self): + """Test AppsecAppMetadataKeywordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_command.py b/test/test_command.py index a4fabc5..485799f 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -46,9 +46,10 @@ def make_instance(self, include_optional) -> Command: id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null diff --git a/test/test_command_metadata.py b/test/test_command_metadata.py new file mode 100644 index 0000000..9adbb02 --- /dev/null +++ b/test/test_command_metadata.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.command_metadata import CommandMetadata + +class TestCommandMetadata(unittest.TestCase): + """CommandMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CommandMetadata: + """Test CommandMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CommandMetadata` + """ + model = CommandMetadata() + if include_optional: + return CommandMetadata( + direction = '', + is_banner = True, + is_for_app_traffic_only = True, + is_streaming = True, + keywords = [ + null + ], + legacy_names = [ + '' + ], + no_multi_flow_support = True, + protocol = '', + rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( + custom_header_len_offset = 56, + custom_header_len_size = 56, + custom_header_signature = 'YQ==', + custom_header_signature_offset = 56, + custom_header_size = 56, + encryption_mode = '', + requires_rtp_profile = True, ), + references = [ + cyperf.models.reference.Reference( + type = '', + value = '', ) + ], + requires_uniqueness = True, + severity = '', + skip_attack_generation = True, + sort_severity = '', + static = True, + supported_apps = [ + '' + ], + year = '' + ) + else: + return CommandMetadata( + ) + """ + + def testCommandMetadata(self): + """Test CommandMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_config_category.py b/test/test_config_category.py index 4a35c88..9b2cba2 100644 --- a/test/test_config_category.py +++ b/test/test_config_category.py @@ -36,7 +36,21 @@ def make_instance(self, include_optional) -> ConfigCategory: model = ConfigCategory() if include_optional: return ConfigCategory( - display_name = '' + display_name = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + subcategories = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ] ) else: return ConfigCategory( diff --git a/test/test_config_sub_category.py b/test/test_config_sub_category.py new file mode 100644 index 0000000..c4f8e6e --- /dev/null +++ b/test/test_config_sub_category.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.config_sub_category import ConfigSubCategory + +class TestConfigSubCategory(unittest.TestCase): + """ConfigSubCategory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConfigSubCategory: + """Test ConfigSubCategory + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ConfigSubCategory` + """ + model = ConfigSubCategory() + if include_optional: + return ConfigSubCategory( + display_name = '' + ) + else: + return ConfigSubCategory( + ) + """ + + def testConfigSubCategory(self): + """Test ConfigSubCategory""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_configurations_api.py b/test/test_configurations_api.py index 1fae14c..74987c3 100644 --- a/test/test_configurations_api.py +++ b/test/test_configurations_api.py @@ -46,6 +46,18 @@ def test_get_config_by_id(self) -> None: """ pass + def test_get_config_categorie_by_id(self) -> None: + """Test case for get_config_categorie_by_id + + """ + pass + + def test_get_config_categorie_subcategories(self) -> None: + """Test case for get_config_categorie_subcategories + + """ + pass + def test_get_config_categories(self) -> None: """Test case for get_config_categories diff --git a/test/test_get_apps_operation.py b/test/test_get_apps_operation.py new file mode 100644 index 0000000..96e849f --- /dev/null +++ b/test/test_get_apps_operation.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.get_apps_operation import GetAppsOperation + +class TestGetAppsOperation(unittest.TestCase): + """GetAppsOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppsOperation: + """Test GetAppsOperation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppsOperation` + """ + model = GetAppsOperation() + if include_optional: + return GetAppsOperation( + categories = [ + cyperf.models.category_filter.CategoryFilter( + category = '', + values = [ + '' + ], ) + ], + filter_mode = '', + search_col = [ + '' + ], + search_val = [ + '' + ], + skip = '', + sort = [ + cyperf.models.sort_body_field.SortBodyField( + field = '', + order = '', ) + ], + take = '' + ) + else: + return GetAppsOperation( + ) + """ + + def testGetAppsOperation(self): + """Test GetAppsOperation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_config_categorie_subcategories200_response.py b/test/test_get_config_categorie_subcategories200_response.py new file mode 100644 index 0000000..cea704c --- /dev/null +++ b/test/test_get_config_categorie_subcategories200_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response + +class TestGetConfigCategorieSubcategories200Response(unittest.TestCase): + """GetConfigCategorieSubcategories200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetConfigCategorieSubcategories200Response: + """Test GetConfigCategorieSubcategories200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetConfigCategorieSubcategories200Response` + """ + model = GetConfigCategorieSubcategories200Response() + if include_optional: + return GetConfigCategorieSubcategories200Response( + data = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ], + total_count = 56 + ) + else: + return GetConfigCategorieSubcategories200Response( + ) + """ + + def testGetConfigCategorieSubcategories200Response(self): + """Test GetConfigCategorieSubcategories200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_config_categorie_subcategories200_response_one_of.py b/test/test_get_config_categorie_subcategories200_response_one_of.py new file mode 100644 index 0000000..bc9b584 --- /dev/null +++ b/test/test_get_config_categorie_subcategories200_response_one_of.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf + +class TestGetConfigCategorieSubcategories200ResponseOneOf(unittest.TestCase): + """GetConfigCategorieSubcategories200ResponseOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetConfigCategorieSubcategories200ResponseOneOf: + """Test GetConfigCategorieSubcategories200ResponseOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetConfigCategorieSubcategories200ResponseOneOf` + """ + model = GetConfigCategorieSubcategories200ResponseOneOf() + if include_optional: + return GetConfigCategorieSubcategories200ResponseOneOf( + data = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ], + total_count = 56 + ) + else: + return GetConfigCategorieSubcategories200ResponseOneOf( + ) + """ + + def testGetConfigCategorieSubcategories200ResponseOneOf(self): + """Test GetConfigCategorieSubcategories200ResponseOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_config_categories200_response.py b/test/test_get_config_categories200_response.py index c236f10..50716c1 100644 --- a/test/test_get_config_categories200_response.py +++ b/test/test_get_config_categories200_response.py @@ -38,7 +38,21 @@ def make_instance(self, include_optional) -> GetConfigCategories200Response: return GetConfigCategories200Response( data = [ cyperf.models.config_category.ConfigCategory( - display_name = '', ) + display_name = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + subcategories = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ], ) ], total_count = 56 ) diff --git a/test/test_get_config_categories200_response_one_of.py b/test/test_get_config_categories200_response_one_of.py index 93f1d59..e9cbfe6 100644 --- a/test/test_get_config_categories200_response_one_of.py +++ b/test/test_get_config_categories200_response_one_of.py @@ -38,7 +38,21 @@ def make_instance(self, include_optional) -> GetConfigCategories200ResponseOneOf return GetConfigCategories200ResponseOneOf( data = [ cyperf.models.config_category.ConfigCategory( - display_name = '', ) + display_name = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + subcategories = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ], ) ], total_count = 56 ) diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index 79f2f14..aa5c159 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -50,9 +50,10 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index baae382..806f1a5 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -50,9 +50,10 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index b3ae529..cd815bb 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -144,6 +144,9 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: app_parameters = [ cyperf.models.parameter_meta.ParameterMeta( name = '', ) + ], + keywords = [ + null ], ), id = '', last_modified = 56, diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index 29bd111..5cf8c29 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -144,6 +144,9 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: app_parameters = [ cyperf.models.parameter_meta.ParameterMeta( name = '', ) + ], + keywords = [ + null ], ), id = '', last_modified = 56, From e1bd506e44f828b3a6a751696fc6532d25b68374 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 4 Dec 2025 08:12:38 -0700 Subject: [PATCH 10/20] Pull request #49: ISGAPPSEC2-35959-newrestapi-get_session_config-method-with-include-all-parameter Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-35959-get_session_config-method-with-include-all to main Squashed commit of the following: commit 3d246d357f4d572d0aa7b8f0062cb1515c56c913 Author: iustmitu Date: Thu Nov 20 11:06:32 2025 +0200 return [] instead of None for a required field --- cyperf/models/activation_code_list_request.py | 2 +- cyperf/models/agent.py | 2 +- cyperf/models/agent_assignment_details.py | 2 +- cyperf/models/agent_assignments.py | 2 +- cyperf/models/agent_reservation.py | 4 ++-- cyperf/models/agents_group.py | 2 +- cyperf/models/app_flow_input.py | 2 +- cyperf/models/app_flow_input_find_param.py | 4 ++-- cyperf/models/application.py | 2 +- cyperf/models/application_profile.py | 2 +- cyperf/models/attack_metadata.py | 2 +- cyperf/models/attack_profile.py | 2 +- cyperf/models/auth_settings.py | 4 ++-- cyperf/models/category_filter.py | 2 +- cyperf/models/cert_config.py | 2 +- cyperf/models/certificate.py | 4 ++-- cyperf/models/cisco_any_connect_settings.py | 2 +- cyperf/models/command_metadata.py | 4 ++-- cyperf/models/config.py | 2 +- cyperf/models/dut_network.py | 2 +- cyperf/models/emulated_router_range.py | 2 +- cyperf/models/emulated_subnet_config.py | 2 +- cyperf/models/file_value.py | 2 +- cyperf/models/find_param_matches_operation.py | 2 +- cyperf/models/get_apps_operation.py | 4 ++-- cyperf/models/get_attacks_operation.py | 4 ++-- cyperf/models/get_strikes_operation.py | 4 ++-- cyperf/models/inner_ip_range.py | 2 +- cyperf/models/ip_network.py | 3 ++- cyperf/models/ip_range.py | 2 +- cyperf/models/local_subnet_config.py | 2 +- cyperf/models/metadata.py | 4 ++-- cyperf/models/network_mapping.py | 6 +++--- cyperf/models/network_segment_base.py | 2 +- cyperf/models/nodes_by_controller.py | 2 +- cyperf/models/ntp_info.py | 2 +- cyperf/models/pangp_settings.py | 2 +- cyperf/models/parameter.py | 4 ++-- cyperf/models/parameter_match.py | 2 +- cyperf/models/parameter_metadata.py | 2 +- cyperf/models/params.py | 6 +++--- cyperf/models/plugin.py | 2 +- cyperf/models/port.py | 2 +- cyperf/models/ports_by_node.py | 2 +- cyperf/models/regex_match.py | 2 +- cyperf/models/result_metadata.py | 2 +- cyperf/models/results_group.py | 2 +- cyperf/models/set_app_operation.py | 2 +- cyperf/models/set_dpdk_mode_operation_input.py | 2 +- cyperf/models/set_ntp_operation_input.py | 4 ++-- cyperf/models/simulated_id_p.py | 2 +- cyperf/models/stats_result.py | 2 +- cyperf/models/tls_profile.py | 2 +- cyperf/models/update_network_mapping.py | 6 +++--- cyperf/models/update_port_tags_operation.py | 4 ++-- 55 files changed, 74 insertions(+), 73 deletions(-) diff --git a/cyperf/models/activation_code_list_request.py b/cyperf/models/activation_code_list_request.py index 2a5c851..34d645f 100644 --- a/cyperf/models/activation_code_list_request.py +++ b/cyperf/models/activation_code_list_request.py @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "activationCode": obj.get("activationCode") + "activationCode": obj.get("activationCode") if obj.get("activationCode") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 71644ed..5cec980 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -181,7 +181,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AgentTags": obj.get("AgentTags"), + "AgentTags": obj.get("AgentTags") if obj.get("AgentTags") is not None else [], "IP": obj.get("IP"), "Interfaces": [Interface.from_dict(_item) for _item in obj["Interfaces"]] if obj.get("Interfaces") is not None else None, "LastUpdate": obj.get("LastUpdate"), diff --git a/cyperf/models/agent_assignment_details.py b/cyperf/models/agent_assignment_details.py index 266612e..e6afd16 100644 --- a/cyperf/models/agent_assignment_details.py +++ b/cyperf/models/agent_assignment_details.py @@ -103,7 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "agentId": obj.get("agentId"), "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, "id": obj.get("id"), - "interfaces": obj.get("interfaces"), + "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , "links": obj.get("links") diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index bdf1416..230987a 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -113,7 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ByID": [AgentAssignmentDetails.from_dict(_item) for _item in obj["ByID"]] if obj.get("ByID") is not None else None, "ByPort": [AgentAssignmentByPort.from_dict(_item) for _item in obj["ByPort"]] if obj.get("ByPort") is not None else None, - "ByTag": obj.get("ByTag"), + "ByTag": obj.get("ByTag") if obj.get("ByTag") is not None else [], "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , "links": obj.get("links") diff --git a/cyperf/models/agent_reservation.py b/cyperf/models/agent_reservation.py index fef07a9..9c0bf21 100644 --- a/cyperf/models/agent_reservation.py +++ b/cyperf/models/agent_reservation.py @@ -90,9 +90,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "agentId": obj.get("agentId"), - "agentPayloadNames": obj.get("agentPayloadNames"), + "agentPayloadNames": obj.get("agentPayloadNames") if obj.get("agentPayloadNames") is not None else [], "generalPurposeCPUPercent": obj.get("generalPurposeCPUPercent"), - "interfaces": obj.get("interfaces"), + "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], "ipAddressVersionUsed": obj.get("ipAddressVersionUsed"), "optimizationMode": obj.get("optimizationMode") , diff --git a/cyperf/models/agents_group.py b/cyperf/models/agents_group.py index 32c2f4d..85214c9 100644 --- a/cyperf/models/agents_group.py +++ b/cyperf/models/agents_group.py @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Agents": obj.get("Agents"), + "Agents": obj.get("Agents") if obj.get("Agents") is not None else [], "Available": obj.get("Available"), "Name": obj.get("Name"), "Online": obj.get("Online") diff --git a/cyperf/models/app_flow_input.py b/cyperf/models/app_flow_input.py index 2b69e23..5cfe64d 100644 --- a/cyperf/models/app_flow_input.py +++ b/cyperf/models/app_flow_input.py @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AppFlowId": obj.get("AppFlowId"), - "Exchanges": obj.get("Exchanges") + "Exchanges": obj.get("Exchanges") if obj.get("Exchanges") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/app_flow_input_find_param.py b/cyperf/models/app_flow_input_find_param.py index ca656b5..b2ce642 100644 --- a/cyperf/models/app_flow_input_find_param.py +++ b/cyperf/models/app_flow_input_find_param.py @@ -93,8 +93,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AppFlowDesc": AppFlowDesc.from_dict(obj["AppFlowDesc"]) if obj.get("AppFlowDesc") is not None else None, "AppFlowId": obj.get("AppFlowId"), - "ExchangeNames": obj.get("ExchangeNames"), - "Exchanges": obj.get("Exchanges") + "ExchangeNames": obj.get("ExchangeNames") if obj.get("ExchangeNames") is not None else [], + "Exchanges": obj.get("Exchanges") if obj.get("Exchanges") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 3f0811d..0ed0760 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -281,7 +281,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "StatelessStream": StatelessStream.from_dict(obj["StatelessStream"]) if obj.get("StatelessStream") is not None else None, "Static": obj.get("Static"), - "SupportedApps": obj.get("SupportedApps"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "SupportsCalibration": obj.get("SupportsCalibration"), "SupportsMultiFlow": obj.get("SupportsMultiFlow"), "SupportsStrikes": obj.get("SupportsStrikes"), diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index 4e5243e..e479cd1 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -163,7 +163,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "add-applications": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-applications"]] if obj.get("add-applications") is not None else None, "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, - "reset-tags-to-default": obj.get("reset-tags-to-default") + "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py index 957a1f0..fdf6e81 100644 --- a/cyperf/models/attack_metadata.py +++ b/cyperf/models/attack_metadata.py @@ -109,7 +109,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CveCount": obj.get("CveCount"), "Direction": obj.get("Direction"), "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, "Severity": obj.get("Severity"), "StrikesCount": obj.get("StrikesCount") diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index 8ceeeed..53e6fbe 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -163,7 +163,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "add-attacks": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-attacks"]] if obj.get("add-attacks") is not None else None, "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, - "reset-tags-to-default": obj.get("reset-tags-to-default") + "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index 8786c9b..10abafd 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -123,9 +123,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CertificateFile": Params.from_dict(obj["CertificateFile"]) if obj.get("CertificateFile") is not None else None, "KeyFile": Params.from_dict(obj["KeyFile"]) if obj.get("KeyFile") is not None else None, "KeyFilePassword": obj.get("KeyFilePassword"), - "Passwords": obj.get("Passwords"), + "Passwords": obj.get("Passwords") if obj.get("Passwords") is not None else [], "PasswordsParam": Params.from_dict(obj["PasswordsParam"]) if obj.get("PasswordsParam") is not None else None, - "Usernames": obj.get("Usernames"), + "Usernames": obj.get("Usernames") if obj.get("Usernames") is not None else [], "UsernamesParam": Params.from_dict(obj["UsernamesParam"]) if obj.get("UsernamesParam") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , diff --git a/cyperf/models/category_filter.py b/cyperf/models/category_filter.py index 0ceddcf..3bfd335 100644 --- a/cyperf/models/category_filter.py +++ b/cyperf/models/category_filter.py @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "category": obj.get("category"), - "values": obj.get("values") + "values": obj.get("values") if obj.get("values") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/cert_config.py b/cyperf/models/cert_config.py index 30bd180..591930e 100644 --- a/cyperf/models/cert_config.py +++ b/cyperf/models/cert_config.py @@ -125,7 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "certificateFile": Params.from_dict(obj["certificateFile"]) if obj.get("certificateFile") is not None else None, "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, - "get-sni-conflicts": obj.get("get-sni-conflicts"), + "get-sni-conflicts": obj.get("get-sni-conflicts") if obj.get("get-sni-conflicts") is not None else [], "id": obj.get("id"), "isPlaylist": obj.get("isPlaylist"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, diff --git a/cyperf/models/certificate.py b/cyperf/models/certificate.py index 9d85bf4..77536cd 100644 --- a/cyperf/models/certificate.py +++ b/cyperf/models/certificate.py @@ -97,8 +97,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "auto": obj.get("auto"), - "dnsNames": obj.get("dnsNames"), - "ipAddresses": obj.get("ipAddresses"), + "dnsNames": obj.get("dnsNames") if obj.get("dnsNames") is not None else [], + "ipAddresses": obj.get("ipAddresses") if obj.get("ipAddresses") is not None else [], "issuer": obj.get("issuer"), "notAfter": obj.get("notAfter"), "notBefore": obj.get("notBefore"), diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index 034b51c..1134438 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -128,7 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "CiscoEncapsulation": CiscoEncapsulation.from_dict(obj["CiscoEncapsulation"]) if obj.get("CiscoEncapsulation") is not None else None, - "ConnectionProfiles": obj.get("ConnectionProfiles"), + "ConnectionProfiles": obj.get("ConnectionProfiles") if obj.get("ConnectionProfiles") is not None else [], "ESPProbeRetryTimeout": obj.get("ESPProbeRetryTimeout"), "ESPProbeTimeout": obj.get("ESPProbeTimeout"), "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index 4a8e604..b9af2af 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -125,7 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsForAppTrafficOnly": obj.get("IsForAppTrafficOnly"), "IsStreaming": obj.get("IsStreaming"), "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, @@ -135,7 +135,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SkipAttackGeneration": obj.get("SkipAttackGeneration"), "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), - "SupportedApps": obj.get("SupportedApps"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/config.py b/cyperf/models/config.py index da542a7..2b9a122 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -147,7 +147,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetworkProfiles": [NetworkProfile.from_dict(_item) for _item in obj["NetworkProfiles"]] if obj.get("NetworkProfiles") is not None else None, "TrafficProfiles": [ApplicationProfile.from_dict(_item) for _item in obj["TrafficProfiles"]] if obj.get("TrafficProfiles") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "validate": obj.get("validate") + "validate": obj.get("validate") if obj.get("validate") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index d59c7b9..184d78b 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -211,7 +211,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags"), + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [], "ClientDUTActive": obj.get("ClientDUTActive"), "ClientDUTHost": obj.get("ClientDUTHost"), "ClientDUTPort": obj.get("ClientDUTPort"), diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 17f0dd9..6276f1d 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -174,7 +174,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "maxCountPerAgent": obj.get("maxCountPerAgent"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/emulated_subnet_config.py b/cyperf/models/emulated_subnet_config.py index 99fa280..15cfe0e 100644 --- a/cyperf/models/emulated_subnet_config.py +++ b/cyperf/models/emulated_subnet_config.py @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index 69162ea..43e3f5f 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "fileName": obj.get("fileName"), "md5Sum": obj.get("md5Sum"), - "payload": obj.get("payload"), + "payload": obj.get("payload") if obj.get("payload") is not None else [], "resourceURL": obj.get("resourceURL"), "value": obj.get("value") , diff --git a/cyperf/models/find_param_matches_operation.py b/cyperf/models/find_param_matches_operation.py index 645d93a..7a122e4 100644 --- a/cyperf/models/find_param_matches_operation.py +++ b/cyperf/models/find_param_matches_operation.py @@ -97,7 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Actions": [ActionInputFindParam.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, "AppId": obj.get("AppId"), - "MatchLocation": obj.get("MatchLocation"), + "MatchLocation": obj.get("MatchLocation") if obj.get("MatchLocation") is not None else [], "Pattern": obj.get("Pattern") , "links": obj.get("links") diff --git a/cyperf/models/get_apps_operation.py b/cyperf/models/get_apps_operation.py index 9404c17..39d6b86 100644 --- a/cyperf/models/get_apps_operation.py +++ b/cyperf/models/get_apps_operation.py @@ -108,8 +108,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol"), - "searchVal": obj.get("searchVal"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, "take": obj.get("take") diff --git a/cyperf/models/get_attacks_operation.py b/cyperf/models/get_attacks_operation.py index 5404d64..07f9d35 100644 --- a/cyperf/models/get_attacks_operation.py +++ b/cyperf/models/get_attacks_operation.py @@ -108,8 +108,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol"), - "searchVal": obj.get("searchVal"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, "take": obj.get("take") diff --git a/cyperf/models/get_strikes_operation.py b/cyperf/models/get_strikes_operation.py index 700f372..091662b 100644 --- a/cyperf/models/get_strikes_operation.py +++ b/cyperf/models/get_strikes_operation.py @@ -110,8 +110,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, "compatibleWith": obj.get("compatibleWith"), "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol"), - "searchVal": obj.get("searchVal"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, "take": obj.get("take") diff --git a/cyperf/models/inner_ip_range.py b/cyperf/models/inner_ip_range.py index 8a6dd42..e1f5603 100644 --- a/cyperf/models/inner_ip_range.py +++ b/cyperf/models/inner_ip_range.py @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 4d53d47..1791edb 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -180,9 +180,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags"), + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [], "DNSResolver": DNSResolver.from_dict(obj["DNSResolver"]) if obj.get("DNSResolver") is not None else None, "DNSServer": DNSServer.from_dict(obj["DNSServer"]) if obj.get("DNSServer") is not None else None, + "DUTConnections": obj.get("DUTConnections") 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"), diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index c9c5c1b..adb7003 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -174,7 +174,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "maxCountPerAgent": obj.get("maxCountPerAgent"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index 92769b7..d385dd9 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 9282dd4..8cf7c7e 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -123,7 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsBanner": obj.get("IsBanner"), "IsStreaming": obj.get("IsStreaming"), "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, @@ -133,7 +133,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SkipAttackGeneration": obj.get("SkipAttackGeneration"), "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), - "SupportedApps": obj.get("SupportedApps"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/network_mapping.py b/cyperf/models/network_mapping.py index 9fcba81..d78232e 100644 --- a/cyperf/models/network_mapping.py +++ b/cyperf/models/network_mapping.py @@ -86,9 +86,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ClientNetworkTags": obj.get("ClientNetworkTags"), - "ExcludedDUTList": obj.get("ExcludedDUTList"), - "ServerNetworkTags": obj.get("ServerNetworkTags") + "ClientNetworkTags": obj.get("ClientNetworkTags") if obj.get("ClientNetworkTags") is not None else [], + "ExcludedDUTList": obj.get("ExcludedDUTList") if obj.get("ExcludedDUTList") is not None else [], + "ServerNetworkTags": obj.get("ServerNetworkTags") if obj.get("ServerNetworkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/network_segment_base.py b/cyperf/models/network_segment_base.py index 58253ab..12c155c 100644 --- a/cyperf/models/network_segment_base.py +++ b/cyperf/models/network_segment_base.py @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/nodes_by_controller.py b/cyperf/models/nodes_by_controller.py index 4137294..d535b2e 100644 --- a/cyperf/models/nodes_by_controller.py +++ b/cyperf/models/nodes_by_controller.py @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": obj.get("computeNodes"), + "computeNodes": obj.get("computeNodes") if obj.get("computeNodes") is not None else [], "controllerId": obj.get("controllerId") , "links": obj.get("links") diff --git a/cyperf/models/ntp_info.py b/cyperf/models/ntp_info.py index dc716ae..3dc6609 100644 --- a/cyperf/models/ntp_info.py +++ b/cyperf/models/ntp_info.py @@ -91,7 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "activeServer": obj.get("activeServer"), - "servers": obj.get("servers"), + "servers": obj.get("servers") if obj.get("servers") is not None else [], "status": obj.get("status") , "links": obj.get("links") diff --git a/cyperf/models/pangp_settings.py b/cyperf/models/pangp_settings.py index 25915ae..0043bec 100644 --- a/cyperf/models/pangp_settings.py +++ b/cyperf/models/pangp_settings.py @@ -138,7 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PANGPEncapsulation": PANGPEncapsulation.from_dict(obj["PANGPEncapsulation"]) if obj.get("PANGPEncapsulation") is not None else None, "PortalHostname": obj.get("PortalHostname"), "VPNGateway": obj.get("VPNGateway"), - "VPNGateways": obj.get("VPNGateways") + "VPNGateways": obj.get("VPNGateways") if obj.get("VPNGateways") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index a30f21b..6505120 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -109,12 +109,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "DefaultArrayElements": obj.get("DefaultArrayElements"), + "DefaultArrayElements": obj.get("DefaultArrayElements") if obj.get("DefaultArrayElements") is not None else [], "DefaultSource": obj.get("DefaultSource"), "DefaultValue": obj.get("DefaultValue"), "ElementType": obj.get("ElementType"), "Metadata": ParameterMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, - "Sources": obj.get("Sources"), + "Sources": obj.get("Sources") if obj.get("Sources") is not None else [], "Type": obj.get("Type"), "field": obj.get("field"), "id": obj.get("id"), diff --git a/cyperf/models/parameter_match.py b/cyperf/models/parameter_match.py index 308356e..601f7a8 100644 --- a/cyperf/models/parameter_match.py +++ b/cyperf/models/parameter_match.py @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "MatchLocation": obj.get("MatchLocation"), + "MatchLocation": obj.get("MatchLocation") if obj.get("MatchLocation") is not None else [], "MatchType": obj.get("MatchType"), "RegexMatch": RegexMatch.from_dict(obj["RegexMatch"]) if obj.get("RegexMatch") is not None else None , diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index b8d259f..e0d9caf 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -128,7 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Enum": Enum.from_dict(obj["Enum"]) if obj.get("Enum") is not None else None, "FlowIdentifier": obj.get("FlowIdentifier"), "Input": obj.get("Input"), - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "Mandatory": obj.get("Mandatory"), "Payload": PayloadMetadata.from_dict(obj["Payload"]) if obj.get("Payload") is not None else None, "Readonly": obj.get("Readonly"), diff --git a/cyperf/models/params.py b/cyperf/models/params.py index 24d4305..5497f7a 100644 --- a/cyperf/models/params.py +++ b/cyperf/models/params.py @@ -139,7 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ArrayElementType": obj.get("ArrayElementType"), - "ArrayElements": obj.get("ArrayElements"), + "ArrayElements": obj.get("ArrayElements") if obj.get("ArrayElements") is not None else [], "Category": obj.get("Category"), "CategoryIndex": obj.get("CategoryIndex"), "DeprecatedPreviousSource": obj.get("DeprecatedPreviousSource"), @@ -156,10 +156,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ParamId": obj.get("ParamId"), "Readonly": obj.get("Readonly"), "Source": obj.get("Source"), - "SupportedSources": obj.get("SupportedSources"), + "SupportedSources": obj.get("SupportedSources") if obj.get("SupportedSources") is not None else [], "Type": obj.get("Type"), "Value": obj.get("Value"), - "file-upload": obj.get("file-upload"), + "file-upload": obj.get("file-upload") if obj.get("file-upload") is not None else [], "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "supportsDynamicPayload": obj.get("supportsDynamicPayload"), diff --git a/cyperf/models/plugin.py b/cyperf/models/plugin.py index 8d0013f..ab85e39 100644 --- a/cyperf/models/plugin.py +++ b/cyperf/models/plugin.py @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), - "keys": obj.get("keys"), + "keys": obj.get("keys") if obj.get("keys") is not None else [], "name": obj.get("name"), "version": obj.get("version") , diff --git a/cyperf/models/port.py b/cyperf/models/port.py index 0312f09..15cabb9 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -99,7 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reservedBy": obj.get("reservedBy"), "speed": obj.get("speed"), "status": obj.get("status"), - "tags": obj.get("tags"), + "tags": obj.get("tags") if obj.get("tags") is not None else [], "trafficStatus": obj.get("trafficStatus") , "links": obj.get("links") diff --git a/cyperf/models/ports_by_node.py b/cyperf/models/ports_by_node.py index e8c8d69..01f2a77 100644 --- a/cyperf/models/ports_by_node.py +++ b/cyperf/models/ports_by_node.py @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "computeNodeId": obj.get("computeNodeId"), - "ports": obj.get("ports") + "ports": obj.get("ports") if obj.get("ports") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/regex_match.py b/cyperf/models/regex_match.py index f84aa53..bdeea2a 100644 --- a/cyperf/models/regex_match.py +++ b/cyperf/models/regex_match.py @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Patterns": obj.get("Patterns") + "Patterns": obj.get("Patterns") if obj.get("Patterns") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index 2de2c91..c17bfab 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -181,7 +181,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tags": obj.get("tags"), "testName": obj.get("testName"), "type": obj.get("type"), - "userTags": obj.get("userTags") + "userTags": obj.get("userTags") if obj.get("userTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/results_group.py b/cyperf/models/results_group.py index f7c8e0d..128bc09 100644 --- a/cyperf/models/results_group.py +++ b/cyperf/models/results_group.py @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), - "Results": obj.get("Results") + "Results": obj.get("Results") if obj.get("Results") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/set_app_operation.py b/cyperf/models/set_app_operation.py index bc1a977..3b88bc6 100644 --- a/cyperf/models/set_app_operation.py +++ b/cyperf/models/set_app_operation.py @@ -87,7 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "appId": obj.get("appId"), - "controllers": obj.get("controllers"), + "controllers": obj.get("controllers") if obj.get("controllers") is not None else [], "force": obj.get("force") , "links": obj.get("links") diff --git a/cyperf/models/set_dpdk_mode_operation_input.py b/cyperf/models/set_dpdk_mode_operation_input.py index 3ad8656..13baefb 100644 --- a/cyperf/models/set_dpdk_mode_operation_input.py +++ b/cyperf/models/set_dpdk_mode_operation_input.py @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentIds": obj.get("agentIds"), + "agentIds": obj.get("agentIds") if obj.get("agentIds") is not None else [], "enabled": obj.get("enabled") , "links": obj.get("links") diff --git a/cyperf/models/set_ntp_operation_input.py b/cyperf/models/set_ntp_operation_input.py index ad99574..1cd4497 100644 --- a/cyperf/models/set_ntp_operation_input.py +++ b/cyperf/models/set_ntp_operation_input.py @@ -85,8 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentIds": obj.get("agentIds"), - "servers": obj.get("servers") + "agentIds": obj.get("agentIds") if obj.get("agentIds") is not None else [], + "servers": obj.get("servers") if obj.get("servers") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/simulated_id_p.py b/cyperf/models/simulated_id_p.py index ca05860..f3b4267 100644 --- a/cyperf/models/simulated_id_p.py +++ b/cyperf/models/simulated_id_p.py @@ -113,7 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ResponseSignature": obj.get("ResponseSignature"), "SignatureAlgorithm": obj.get("SignatureAlgorithm"), "SingleSignOnURL": obj.get("SingleSignOnURL"), - "XMLMetadata": obj.get("XMLMetadata"), + "XMLMetadata": obj.get("XMLMetadata") if obj.get("XMLMetadata") is not None else [], "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , "links": obj.get("links") diff --git a/cyperf/models/stats_result.py b/cyperf/models/stats_result.py index 4afb232..2d3e950 100644 --- a/cyperf/models/stats_result.py +++ b/cyperf/models/stats_result.py @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "availableFilters": [Parameter.from_dict(_item) for _item in obj["availableFilters"]] if obj.get("availableFilters") is not None else None, - "columns": obj.get("columns"), + "columns": obj.get("columns") if obj.get("columns") is not None else [], "name": obj.get("name"), "snapshots": [Snapshot.from_dict(_item) for _item in obj["snapshots"]] if obj.get("snapshots") is not None else None , diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index e0db31a..867119e 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -165,7 +165,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ciphers12": obj.get("ciphers12"), "ciphers13": obj.get("ciphers13"), "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, - "get-tls-conflicts": obj.get("get-tls-conflicts"), + "get-tls-conflicts": obj.get("get-tls-conflicts") if obj.get("get-tls-conflicts") is not None else [], "immediateClose": obj.get("immediateClose"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), diff --git a/cyperf/models/update_network_mapping.py b/cyperf/models/update_network_mapping.py index f1a03f6..6d33f33 100644 --- a/cyperf/models/update_network_mapping.py +++ b/cyperf/models/update_network_mapping.py @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ClientNetworkTags": obj.get("ClientNetworkTags"), - "ExcludedDUTList": obj.get("ExcludedDUTList"), + "ClientNetworkTags": obj.get("ClientNetworkTags") if obj.get("ClientNetworkTags") is not None else [], + "ExcludedDUTList": obj.get("ExcludedDUTList") if obj.get("ExcludedDUTList") is not None else [], "SelectTags": obj.get("SelectTags"), - "ServerNetworkTags": obj.get("ServerNetworkTags") + "ServerNetworkTags": obj.get("ServerNetworkTags") if obj.get("ServerNetworkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/update_port_tags_operation.py b/cyperf/models/update_port_tags_operation.py index 9970794..597cb13 100644 --- a/cyperf/models/update_port_tags_operation.py +++ b/cyperf/models/update_port_tags_operation.py @@ -95,8 +95,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, - "tagsToAdd": obj.get("tagsToAdd"), - "tagsToRemove": obj.get("tagsToRemove") + "tagsToAdd": obj.get("tagsToAdd") if obj.get("tagsToAdd") is not None else [], + "tagsToRemove": obj.get("tagsToRemove") if obj.get("tagsToRemove") is not None else [] , "links": obj.get("links") }) From 38ae6401ea45efd12cb105155950ee1874cdb605 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Fri, 12 Dec 2025 06:29:01 -0700 Subject: [PATCH 11/20] Pull request #52: fix get_first_N_http_standalone_strikes Merge in ISGAPPSEC/cyperf-api-wrapper from fix-get_first_N_http_standalone_strikes-function to main Squashed commit of the following: commit 8e8ac1da56dd995d75d6ee01b9ae31f48a41533e Author: iustmitu Date: Fri Dec 12 14:09:09 2025 +0200 fix get_first_N_http_standalone_strikes --- cyperf/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyperf/utils.py b/cyperf/utils.py index c020965..3d09251 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -217,7 +217,7 @@ def get_first_N_http_standalone_strikes(self, n): protocol = strike.metadata.protocol supported_apps = strike.metadata.supported_apps - if protocol.lower() == 'http' and supported_apps == None: + if protocol.lower() == 'http' and (supported_apps == None or supported_apps == []): http_strikes.append(strike) if len(http_strikes) == n: break From e35b333a3638b18de7222381308cd1cad3d9671e Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Mon, 15 Dec 2025 04:29:54 -0700 Subject: [PATCH 12/20] Pull request #51: ISGAPPSEC2-36317-no-api-to-retrieve-compute-nodes-and-aps-ports Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-36317-no-api-to-retrieve-compute-nodes-and-aps-ports to main Squashed commit of the following: commit c06e8485a534b49004303ef8a42e42ec02eab316 Author: iustmitu Date: Fri Dec 12 11:51:05 2025 +0200 regenerated wrapper, support for cumpute nodes on aps --- README.md | 2 + cyperf/__init__.py | 2 + cyperf/api/agents_api.py | 17 ++++ cyperf/dynamic_models/__init__.py | 2 + cyperf/models/__init__.py | 2 + cyperf/models/auth_method_type.py | 1 + cyperf/models/auth_settings.py | 8 +- cyperf/models/cisco_any_connect_settings.py | 4 +- cyperf/models/custom_stat.py | 6 +- cyperf/models/eth_range.py | 8 +- cyperf/models/group_tls13.py | 96 +++++++++++++++++++ cyperf/models/mac_dtls_stack.py | 8 +- cyperf/models/parameter_metadata.py | 8 +- cyperf/models/playlist_metadata.py | 95 ++++++++++++++++++ cyperf/models/result_metadata.py | 6 +- cyperf/models/static_arp_entry.py | 8 +- cyperf/models/supported_group_tls13.py | 12 +-- cyperf/models/tls_profile.py | 12 ++- cyperf/models/tunnel_range.py | 4 +- docs/AgentsApi.md | 6 +- docs/AuthMethodType.md | 2 + docs/AuthSettings.md | 1 + docs/CustomStat.md | 1 + docs/GroupTLS13.md | 31 ++++++ docs/ParameterMetadata.md | 1 + docs/PlaylistMetadata.md | 30 ++++++ docs/ResultMetadata.md | 1 + docs/SupportedGroupTLS13.md | 20 +--- docs/TLSProfile.md | 1 + test/test_application.py | 10 ++ test/test_application_type.py | 4 + test/test_attack.py | 10 ++ test/test_auth_profile.py | 3 + test/test_auth_settings.py | 21 ++++ test/test_cisco_any_connect_settings.py | 6 ++ test/test_command.py | 3 + test/test_custom_stat.py | 1 + test/test_dtls_settings.py | 5 + test/test_f5_settings.py | 6 ++ test/test_fortinet_settings.py | 6 ++ ...resources_application_types200_response.py | 1 + ...es_application_types200_response_one_of.py | 1 + test/test_get_result_stats200_response.py | 3 + ...est_get_result_stats200_response_one_of.py | 3 + test/test_get_results200_response.py | 3 + test/test_get_results200_response_one_of.py | 3 + test/test_group_tls13.py | 56 +++++++++++ test/test_pangp_settings.py | 6 ++ test/test_parameter.py | 3 + test/test_parameter_metadata.py | 3 + test/test_playlist_metadata.py | 54 +++++++++++ test/test_quic_profile.py | 10 ++ test/test_result_metadata.py | 3 + test/test_stats_result.py | 3 + test/test_tls_profile.py | 5 + test/test_transport_profile.py | 10 ++ test/test_transport_profile_base.py | 10 ++ test/test_tunnel_settings.py | 1 + 58 files changed, 599 insertions(+), 49 deletions(-) create mode 100644 cyperf/models/group_tls13.py create mode 100644 cyperf/models/playlist_metadata.py create mode 100644 docs/GroupTLS13.md create mode 100644 docs/PlaylistMetadata.md create mode 100644 test/test_group_tls13.py create mode 100644 test/test_playlist_metadata.py diff --git a/README.md b/README.md index 99bd935..2e3bd44 100644 --- a/README.md +++ b/README.md @@ -592,6 +592,7 @@ Class | Method | HTTP request | Description - [GetStatsPlugins200Response](docs/GetStatsPlugins200Response.md) - [GetStatsPlugins200ResponseOneOf](docs/GetStatsPlugins200ResponseOneOf.md) - [GetStrikesOperation](docs/GetStrikesOperation.md) + - [GroupTLS13](docs/GroupTLS13.md) - [HTTPProfile](docs/HTTPProfile.md) - [HTTPReqMeta](docs/HTTPReqMeta.md) - [HTTPResMeta](docs/HTTPResMeta.md) @@ -670,6 +671,7 @@ Class | Method | HTTP request | Description - [PayloadMetadata](docs/PayloadMetadata.md) - [PepDUT](docs/PepDUT.md) - [PfsP2Group](docs/PfsP2Group.md) + - [PlaylistMetadata](docs/PlaylistMetadata.md) - [Plugin](docs/Plugin.md) - [PluginStats](docs/PluginStats.md) - [Port](docs/Port.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 23fa2e8..5d00207 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -261,6 +261,7 @@ from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf from cyperf.models.get_strikes_operation import GetStrikesOperation +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.http_profile import HTTPProfile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta @@ -339,6 +340,7 @@ from cyperf.models.payload_metadata import PayloadMetadata from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 43ce379..03005f5 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -2613,6 +2613,7 @@ def get_controllers( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2634,6 +2635,8 @@ def get_controllers( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2659,6 +2662,7 @@ def get_controllers( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2681,6 +2685,7 @@ def get_controllers_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2702,6 +2707,8 @@ def get_controllers_with_http_info( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2727,6 +2734,7 @@ def get_controllers_with_http_info( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2749,6 +2757,7 @@ def get_controllers_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2770,6 +2779,8 @@ def get_controllers_without_preload_content( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2795,6 +2806,7 @@ def get_controllers_without_preload_content( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2816,6 +2828,7 @@ def _get_controllers_serialize( self, take, skip, + include, _request_auth, _content_type, _headers, @@ -2844,6 +2857,10 @@ def _get_controllers_serialize( _query_params.append(('skip', skip)) + if include is not None: + + _query_params.append(('include', include)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 1311162..7d3d5af 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -227,6 +227,7 @@ GetStatsPlugins200Response = DynamicModel('GetStatsPlugins200Response', (), {} ) GetStatsPlugins200ResponseOneOf = DynamicModel('GetStatsPlugins200ResponseOneOf', (), {} ) GetStrikesOperation = DynamicModel('GetStrikesOperation', (), {} ) +GroupTLS13 = DynamicModel('GroupTLS13', (), {} ) HTTPProfile = DynamicModel('HTTPProfile', (), {} ) HTTPReqMeta = DynamicModel('HTTPReqMeta', (), {} ) HTTPResMeta = DynamicModel('HTTPResMeta', (), {} ) @@ -305,6 +306,7 @@ PayloadMetadata = DynamicModel('PayloadMetadata', (), {} ) PepDUT = DynamicModel('PepDUT', (), {} ) PfsP2Group = DynamicModel('PfsP2Group', (), {} ) +PlaylistMetadata = DynamicModel('PlaylistMetadata', (), {} ) Plugin = DynamicModel('Plugin', (), {} ) PluginStats = DynamicModel('PluginStats', (), {} ) Port = DynamicModel('Port', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index c557831..cf00efc 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -227,6 +227,7 @@ class LinkNameException(Exception): from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf from cyperf.models.get_strikes_operation import GetStrikesOperation +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.http_profile import HTTPProfile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta @@ -305,6 +306,7 @@ class LinkNameException(Exception): from cyperf.models.payload_metadata import PayloadMetadata from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port diff --git a/cyperf/models/auth_method_type.py b/cyperf/models/auth_method_type.py index b1d7f83..a3ec0a0 100644 --- a/cyperf/models/auth_method_type.py +++ b/cyperf/models/auth_method_type.py @@ -30,6 +30,7 @@ class AuthMethodType(str, Enum): AAA = 'AAA' AAA_MINUS_CERTIFICATE = 'AAA-CERTIFICATE' CERTIFICATE = 'CERTIFICATE' + SAML = 'SAML' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index 10abafd..cb29ad2 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -23,6 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.auth_method_type import AuthMethodType from cyperf.models.params import Params +from cyperf.models.simulated_id_p import SimulatedIdP from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -38,10 +39,11 @@ class AuthSettings(BaseModel): key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS VPN authentication.", alias="KeyFilePassword") passwords: Optional[List[StrictStr]] = Field(default=None, alias="Passwords") passwords_param: Optional[Params] = Field(default=None, alias="PasswordsParam") + simulated_id_p: Optional[SimulatedIdP] = Field(default=None, alias="SimulatedIdP") usernames: Optional[List[StrictStr]] = Field(default=None, alias="Usernames") usernames_param: Optional[Params] = Field(default=None, alias="UsernamesParam") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AuthMethod", "AuthParam", "CertificateFile", "KeyFile", "KeyFilePassword", "Passwords", "PasswordsParam", "Usernames", "UsernamesParam", "links"] + __properties: ClassVar[List[str]] = ["AuthMethod", "AuthParam", "CertificateFile", "KeyFile", "KeyFilePassword", "Passwords", "PasswordsParam", "SimulatedIdP", "Usernames", "UsernamesParam", "links"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +96,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of passwords_param if self.passwords_param: _dict['PasswordsParam'] = self.passwords_param.to_dict() + # override the default output from pydantic by calling `to_dict()` of simulated_id_p + if self.simulated_id_p: + _dict['SimulatedIdP'] = self.simulated_id_p.to_dict() # override the default output from pydantic by calling `to_dict()` of usernames_param if self.usernames_param: _dict['UsernamesParam'] = self.usernames_param.to_dict() @@ -125,6 +130,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "KeyFilePassword": obj.get("KeyFilePassword"), "Passwords": obj.get("Passwords") if obj.get("Passwords") is not None else [], "PasswordsParam": Params.from_dict(obj["PasswordsParam"]) if obj.get("PasswordsParam") is not None else None, + "SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None, "Usernames": obj.get("Usernames") if obj.get("Usernames") is not None else [], "UsernamesParam": Params.from_dict(obj["UsernamesParam"]) if obj.get("UsernamesParam") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index 1134438..65720fb 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -48,8 +48,8 @@ class CiscoAnyConnectSettings(BaseModel): @field_validator('vpn_gateway') def vpn_gateway_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-\_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-\_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)", value): - raise ValueError(r"must validate the regular expression /^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-\_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-\_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)/") + if not re.match(r"^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)", value): + raise ValueError(r"must validate the regular expression /^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)/") return value model_config = ConfigDict( diff --git a/cyperf/models/custom_stat.py b/cyperf/models/custom_stat.py index 66a33d6..93dc1c5 100644 --- a/cyperf/models/custom_stat.py +++ b/cyperf/models/custom_stat.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -29,8 +29,9 @@ class CustomStat(BaseModel): CustomStat """ # noqa: E501 function: Optional[StrictStr] = Field(default=None, description="The function of the custom statistic", alias="Function") + is_rate: Optional[StrictBool] = Field(default=None, description="Indicates whether this statistic supports rate computation", alias="IsRate") path: Optional[StrictStr] = Field(default=None, description="The path of the custom statistic", alias="Path") - __properties: ClassVar[List[str]] = ["Function", "Path"] + __properties: ClassVar[List[str]] = ["Function", "IsRate", "Path"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Function": obj.get("Function"), + "IsRate": obj.get("IsRate"), "Path": obj.get("Path") , "links": obj.get("links") diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index c8573d1..ee02174 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -47,8 +47,8 @@ def mac_incr_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('mac_start') @@ -57,8 +57,8 @@ def mac_start_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value model_config = ConfigDict( diff --git a/cyperf/models/group_tls13.py b/cyperf/models/group_tls13.py new file mode 100644 index 0000000..e9cfd41 --- /dev/null +++ b/cyperf/models/group_tls13.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List +from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GroupTLS13(BaseModel): + """ + A TLSv1.3 group with deprecation status. + """ # noqa: E501 + is_deprecated: StrictBool = Field(alias="IsDeprecated") + name: SupportedGroupTLS13 = Field(alias="Name") + __properties: ClassVar[List[str]] = ["IsDeprecated", "Name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GroupTLS13 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GroupTLS13 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "IsDeprecated": obj.get("IsDeprecated"), + "Name": obj.get("Name") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/mac_dtls_stack.py b/cyperf/models/mac_dtls_stack.py index 1b873e2..c8dee97 100644 --- a/cyperf/models/mac_dtls_stack.py +++ b/cyperf/models/mac_dtls_stack.py @@ -121,15 +121,15 @@ def out_key_incr_validate_regular_expression(cls, value): @field_validator('tunnel_destination_mac_incr') def tunnel_destination_mac_incr_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('tunnel_destination_mac_start') def tunnel_destination_mac_start_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value model_config = ConfigDict( diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index e0d9caf..22d310e 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -23,6 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.enum import Enum from cyperf.models.payload_metadata import PayloadMetadata +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.type_info_metadata import TypeInfoMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -43,13 +44,14 @@ class ParameterMetadata(BaseModel): legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent parameters", alias="LegacyNames") mandatory: Optional[StrictBool] = Field(default=None, description="The mandatory status of the parameter", alias="Mandatory") payload: Optional[PayloadMetadata] = Field(default=None, alias="Payload") + playlist: Optional[PlaylistMetadata] = Field(default=None, alias="Playlist") readonly: Optional[StrictBool] = Field(default=None, description="The read-only status of the parameter", alias="Readonly") shared: Optional[StrictBool] = Field(default=None, description="The shared status of the parameter", alias="Shared") type: Optional[StrictStr] = Field(default=None, description="The type of the parameter", alias="Type") type_info: Optional[TypeInfoMetadata] = Field(default=None, alias="TypeInfo") unique_value: Optional[StrictBool] = Field(default=None, description="If true, the value of this parameter must be unique across all Applications/Actions", alias="UniqueValue") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Category", "CategoryIndex", "Default", "Description", "DisplayName", "Enum", "FlowIdentifier", "Input", "LegacyNames", "Mandatory", "Payload", "Readonly", "Shared", "Type", "TypeInfo", "UniqueValue", "links"] + __properties: ClassVar[List[str]] = ["Category", "CategoryIndex", "Default", "Description", "DisplayName", "Enum", "FlowIdentifier", "Input", "LegacyNames", "Mandatory", "Payload", "Playlist", "Readonly", "Shared", "Type", "TypeInfo", "UniqueValue", "links"] model_config = ConfigDict( populate_by_name=True, @@ -96,6 +98,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of payload if self.payload: _dict['Payload'] = self.payload.to_dict() + # override the default output from pydantic by calling `to_dict()` of playlist + if self.playlist: + _dict['Playlist'] = self.playlist.to_dict() # override the default output from pydantic by calling `to_dict()` of type_info if self.type_info: _dict['TypeInfo'] = self.type_info.to_dict() @@ -131,6 +136,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "Mandatory": obj.get("Mandatory"), "Payload": PayloadMetadata.from_dict(obj["Payload"]) if obj.get("Payload") is not None else None, + "Playlist": PlaylistMetadata.from_dict(obj["Playlist"]) if obj.get("Playlist") is not None else None, "Readonly": obj.get("Readonly"), "Shared": obj.get("Shared"), "Type": obj.get("Type"), diff --git a/cyperf/models/playlist_metadata.py b/cyperf/models/playlist_metadata.py new file mode 100644 index 0000000..5d8a7cc --- /dev/null +++ b/cyperf/models/playlist_metadata.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class PlaylistMetadata(BaseModel): + """ + PlaylistMetadata + """ # noqa: E501 + column: Optional[StrictStr] = Field(default=None, description="The selected column", alias="Column") + file_name: Optional[StrictStr] = Field(default=None, description="The path of the file", alias="FileName") + __properties: ClassVar[List[str]] = ["Column", "FileName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlaylistMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlaylistMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Column": obj.get("Column"), + "FileName": obj.get("FileName") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index c17bfab..08bae0d 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -47,6 +47,7 @@ class ResultMetadata(BaseModel): owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user who owns the result", alias="ownerId") pdf_url: Optional[StrictStr] = Field(default=None, description="The URL of the cached pdf report", alias="pdfURL") pinned: Optional[StrictBool] = Field(default=None, description="A flag that indicates if the result's configuration is pinned") + report_types: Optional[List[StrictStr]] = Field(default=None, description="The report types supported for the result", alias="reportTypes") reporting_links: Optional[List[APILink]] = Field(default=None, description="A list of links to result reporting resources", alias="reportingLinks") result_url: Optional[StrictStr] = Field(default=None, description="The URL of the result", alias="resultUrl") start_time: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was started", alias="startTime") @@ -54,7 +55,7 @@ class ResultMetadata(BaseModel): test_name: Optional[StrictStr] = Field(default=None, description="The name of the test associated with the result", alias="testName") type: Optional[StrictStr] = Field(default=None, description="The application type of the result") user_tags: Optional[List[StrictStr]] = Field(default=None, description="The list of user defined tags", alias="userTags") - __properties: ClassVar[List[str]] = ["activeSession", "configUrl", "csvURL", "displayName", "download-all", "download-diagnostic", "endTime", "files", "id", "lastModified", "links", "markedAsDeleted", "owner", "ownerId", "pdfURL", "pinned", "reportingLinks", "resultUrl", "startTime", "tags", "testName", "type", "userTags"] + __properties: ClassVar[List[str]] = ["activeSession", "configUrl", "csvURL", "displayName", "download-all", "download-diagnostic", "endTime", "files", "id", "lastModified", "links", "markedAsDeleted", "owner", "ownerId", "pdfURL", "pinned", "reportTypes", "reportingLinks", "resultUrl", "startTime", "tags", "testName", "type", "userTags"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +95,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "config_url", @@ -101,6 +103,7 @@ def to_dict(self) -> Dict[str, Any]: "last_modified", "owner", "owner_id", + "report_types", "result_url", "start_time", "type", @@ -175,6 +178,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ownerId": obj.get("ownerId"), "pdfURL": obj.get("pdfURL"), "pinned": obj.get("pinned"), + "reportTypes": obj.get("reportTypes") if obj.get("reportTypes") is not None else [], "reportingLinks": [APILink.from_dict(_item) for _item in obj["reportingLinks"]] if obj.get("reportingLinks") is not None else None, "resultUrl": obj.get("resultUrl"), "startTime": obj.get("startTime"), diff --git a/cyperf/models/static_arp_entry.py b/cyperf/models/static_arp_entry.py index 880abf0..58f5927 100644 --- a/cyperf/models/static_arp_entry.py +++ b/cyperf/models/static_arp_entry.py @@ -64,8 +64,8 @@ def remote_mac_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('remote_mac_incr') @@ -74,8 +74,8 @@ def remote_mac_incr_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('static_arp_entry_name') diff --git a/cyperf/models/supported_group_tls13.py b/cyperf/models/supported_group_tls13.py index 3184772..6988337 100644 --- a/cyperf/models/supported_group_tls13.py +++ b/cyperf/models/supported_group_tls13.py @@ -30,24 +30,18 @@ class SupportedGroupTLS13(str, Enum): P_MINUS_256 = 'P-256' P_MINUS_384 = 'P-384' P_MINUS_521 = 'P-521' - X25519_KYBER768 = 'X25519_KYBER768' - X25519_KYBER512 = 'X25519_KYBER512' X25519_MLKEM512 = 'X25519_MLKEM512' X25519_MLKEM768 = 'X25519_MLKEM768' - KYBER768 = 'KYBER768' MLKEM768 = 'MLKEM768' - KYBER512 = 'KYBER512' MLKEM512 = 'MLKEM512' - KYBER1024 = 'KYBER1024' MLKEM1024 = 'MLKEM1024' - P384_KYBER768 = 'P384_KYBER768' - P256_KYBER512 = 'P256_KYBER512' - P384_MLKEM1024 = 'P384_MLKEM1024' + SECP384R1MLKEM1024 = 'SecP384r1MLKEM1024' X448_MLKEM768 = 'X448_MLKEM768' P384_MLKEM768 = 'P384_MLKEM768' - P256_MLKEM768 = 'P256_MLKEM768' + SECP256R1MLKEM768 = 'SecP256r1MLKEM768' P256_MLKEM512 = 'P256_MLKEM512' X25519 = 'X25519' + P521_MLKEM1024 = 'P521_MLKEM1024' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index 867119e..9da0bba 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -25,6 +25,7 @@ from cyperf.models.cipher_tls12 import CipherTLS12 from cyperf.models.cipher_tls13 import CipherTLS13 from cyperf.models.conflict import Conflict +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.params import Params from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 @@ -46,6 +47,7 @@ class TLSProfile(BaseModel): dh_file: Optional[Params] = Field(default=None, alias="dhFile") get_tls_conflicts: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="get-tls-conflicts") _get_tls_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,GetTLSConflicts" }) + groups13: Optional[List[GroupTLS13]] = None immediate_close: Optional[StrictBool] = Field(default=None, description="The immediate FIN after close notify", alias="immediateClose") key_file: Optional[Params] = Field(default=None, description="The key file of the TLS profile.", alias="keyFile") key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS profile.", alias="keyFilePassword") @@ -66,7 +68,7 @@ class TLSProfile(BaseModel): tls13_enabled: Optional[StrictBool] = Field(default=None, alias="tls13Enabled") use_tls_profile: Optional[StrictBool] = Field(default=None, description="When disabled, the connection is not TLS secured (default: true).", alias="useTlsProfile") version: StrictStr = Field(description="The version of the TLS profile (default: NONE). Must be one of: NONE or TLSv1.2 or TLSv1.3.") - __properties: ClassVar[List[str]] = ["certificateFile", "cipher", "cipher12", "cipher13", "ciphers12", "ciphers13", "dhFile", "get-tls-conflicts", "immediateClose", "keyFile", "keyFilePassword", "links", "middleBoxEnabled", "profileId", "resolve-tls-conflicts", "sendCloseNotify", "sessionReuseCount", "sessionReuseMethod", "sessionReuseMethod12", "sessionReuseMethod13", "sniCertConfigs", "sniEnabled", "supportedGroups13", "tls12Enabled", "tls13Enabled", "useTlsProfile", "version"] + __properties: ClassVar[List[str]] = ["certificateFile", "cipher", "cipher12", "cipher13", "ciphers12", "ciphers13", "dhFile", "get-tls-conflicts", "groups13", "immediateClose", "keyFile", "keyFilePassword", "links", "middleBoxEnabled", "profileId", "resolve-tls-conflicts", "sendCloseNotify", "sessionReuseCount", "sessionReuseMethod", "sessionReuseMethod12", "sessionReuseMethod13", "sniCertConfigs", "sniEnabled", "supportedGroups13", "tls12Enabled", "tls13Enabled", "useTlsProfile", "version"] @field_validator('version') def version_validate_enum(cls, value): @@ -120,6 +122,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of dh_file if self.dh_file: _dict['dhFile'] = self.dh_file.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in groups13 (list) + _items = [] + if self.groups13: + for _item in self.groups13: + if _item: + _items.append(_item.to_dict()) + _dict['groups13'] = _items # override the default output from pydantic by calling `to_dict()` of key_file if self.key_file: _dict['keyFile'] = self.key_file.to_dict() @@ -166,6 +175,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ciphers13": obj.get("ciphers13"), "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, "get-tls-conflicts": obj.get("get-tls-conflicts") if obj.get("get-tls-conflicts") is not None else [], + "groups13": [GroupTLS13.from_dict(_item) for _item in obj["groups13"]] if obj.get("groups13") is not None else None, "immediateClose": obj.get("immediateClose"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), diff --git a/cyperf/models/tunnel_range.py b/cyperf/models/tunnel_range.py index 26360c1..db62bee 100644 --- a/cyperf/models/tunnel_range.py +++ b/cyperf/models/tunnel_range.py @@ -50,8 +50,8 @@ class TunnelRange(BaseModel): @field_validator('vendor_type') def vendor_type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5']): - raise ValueError("must be one of enum values ('CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5')") + if value not in set(['CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5', 'PAN_PAA']): + raise ValueError("must be one of enum values ('CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5', 'PAN_PAA')") return value model_config = ConfigDict( diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index 4fb119c..35bdfd2 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -758,7 +758,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_controllers** -> GetControllers200Response get_controllers(take=take, skip=skip) +> GetControllers200Response get_controllers(take=take, skip=skip, include=include) @@ -796,9 +796,10 @@ with cyperf.ApiClient(configuration) as api_client: api_instance = cyperf.AgentsApi(api_client) take = 56 # int | The number of search results to return (optional) skip = 56 # int | The number of search results to skip (optional) + include = 'include_example' # str | Specifies if the sub-fields that are objects should be included. (optional) try: - api_response = api_instance.get_controllers(take=take, skip=skip) + api_response = api_instance.get_controllers(take=take, skip=skip, include=include) print("The response of AgentsApi->get_controllers:\n") pprint(api_response) except Exception as e: @@ -814,6 +815,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **take** | **int**| The number of search results to return | [optional] **skip** | **int**| The number of search results to skip | [optional] + **include** | **str**| Specifies if the sub-fields that are objects should be included. | [optional] ### Return type diff --git a/docs/AuthMethodType.md b/docs/AuthMethodType.md index 64b49f2..847bec4 100644 --- a/docs/AuthMethodType.md +++ b/docs/AuthMethodType.md @@ -10,6 +10,8 @@ The authentication method for TLS VPN tunnels. * `CERTIFICATE` (value: `'CERTIFICATE'`) +* `SAML` (value: `'SAML'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AuthSettings.md b/docs/AuthSettings.md index 0400128..0427965 100644 --- a/docs/AuthSettings.md +++ b/docs/AuthSettings.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **key_file_password** | **str** | The key file password of the TLS VPN authentication. | [optional] **passwords** | **List[str]** | | [optional] **passwords_param** | [**Params**](Params.md) | | [optional] +**simulated_id_p** | [**SimulatedIdP**](SimulatedIdP.md) | | [optional] **usernames** | **List[str]** | | [optional] **usernames_param** | [**Params**](Params.md) | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/CustomStat.md b/docs/CustomStat.md index 198b1ba..f573954 100644 --- a/docs/CustomStat.md +++ b/docs/CustomStat.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function** | **str** | The function of the custom statistic | [optional] +**is_rate** | **bool** | Indicates whether this statistic supports rate computation | [optional] **path** | **str** | The path of the custom statistic | [optional] ## Example diff --git a/docs/GroupTLS13.md b/docs/GroupTLS13.md new file mode 100644 index 0000000..e4c37ad --- /dev/null +++ b/docs/GroupTLS13.md @@ -0,0 +1,31 @@ +# GroupTLS13 + +A TLSv1.3 group with deprecation status. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_deprecated** | **bool** | | +**name** | [**SupportedGroupTLS13**](SupportedGroupTLS13.md) | | + +## Example + +```python +from cyperf.models.group_tls13 import GroupTLS13 + +# TODO update the JSON string below +json = "{}" +# create an instance of GroupTLS13 from a JSON string +group_tls13_instance = GroupTLS13.from_json(json) +# print the JSON string representation of the object +print(GroupTLS13.to_json()) + +# convert the object into a dict +group_tls13_dict = group_tls13_instance.to_dict() +# create an instance of GroupTLS13 from a dict +group_tls13_from_dict = GroupTLS13.from_dict(group_tls13_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ParameterMetadata.md b/docs/ParameterMetadata.md index 361506e..9a2c157 100644 --- a/docs/ParameterMetadata.md +++ b/docs/ParameterMetadata.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **legacy_names** | **List[str]** | The names of the equivalent parameters | [optional] **mandatory** | **bool** | The mandatory status of the parameter | [optional] **payload** | [**PayloadMetadata**](PayloadMetadata.md) | | [optional] +**playlist** | [**PlaylistMetadata**](PlaylistMetadata.md) | | [optional] **readonly** | **bool** | The read-only status of the parameter | [optional] **shared** | **bool** | The shared status of the parameter | [optional] **type** | **str** | The type of the parameter | [optional] diff --git a/docs/PlaylistMetadata.md b/docs/PlaylistMetadata.md new file mode 100644 index 0000000..140157c --- /dev/null +++ b/docs/PlaylistMetadata.md @@ -0,0 +1,30 @@ +# PlaylistMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**column** | **str** | The selected column | [optional] +**file_name** | **str** | The path of the file | [optional] + +## Example + +```python +from cyperf.models.playlist_metadata import PlaylistMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of PlaylistMetadata from a JSON string +playlist_metadata_instance = PlaylistMetadata.from_json(json) +# print the JSON string representation of the object +print(PlaylistMetadata.to_json()) + +# convert the object into a dict +playlist_metadata_dict = playlist_metadata_instance.to_dict() +# create an instance of PlaylistMetadata from a dict +playlist_metadata_from_dict = PlaylistMetadata.from_dict(playlist_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultMetadata.md b/docs/ResultMetadata.md index 6a2300b..cf57077 100644 --- a/docs/ResultMetadata.md +++ b/docs/ResultMetadata.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **owner_id** | **str** | The unique identifier of the user who owns the result | [optional] [readonly] **pdf_url** | **str** | The URL of the cached pdf report | [optional] **pinned** | **bool** | A flag that indicates if the result's configuration is pinned | [optional] +**report_types** | **List[str]** | The report types supported for the result | [optional] [readonly] **reporting_links** | [**List[APILink]**](APILink.md) | A list of links to result reporting resources | [optional] **result_url** | **str** | The URL of the result | [optional] [readonly] **start_time** | **int** | A Unix timestamp that indicates when the test was started | [optional] [readonly] diff --git a/docs/SupportedGroupTLS13.md b/docs/SupportedGroupTLS13.md index 9f5da16..2bbaca1 100644 --- a/docs/SupportedGroupTLS13.md +++ b/docs/SupportedGroupTLS13.md @@ -10,42 +10,30 @@ The TLSv1.3 supported groups (default: P-256). * `P_MINUS_521` (value: `'P-521'`) -* `X25519_KYBER768` (value: `'X25519_KYBER768'`) - -* `X25519_KYBER512` (value: `'X25519_KYBER512'`) - * `X25519_MLKEM512` (value: `'X25519_MLKEM512'`) * `X25519_MLKEM768` (value: `'X25519_MLKEM768'`) -* `KYBER768` (value: `'KYBER768'`) - * `MLKEM768` (value: `'MLKEM768'`) -* `KYBER512` (value: `'KYBER512'`) - * `MLKEM512` (value: `'MLKEM512'`) -* `KYBER1024` (value: `'KYBER1024'`) - * `MLKEM1024` (value: `'MLKEM1024'`) -* `P384_KYBER768` (value: `'P384_KYBER768'`) - -* `P256_KYBER512` (value: `'P256_KYBER512'`) - -* `P384_MLKEM1024` (value: `'P384_MLKEM1024'`) +* `SECP384R1MLKEM1024` (value: `'SecP384r1MLKEM1024'`) * `X448_MLKEM768` (value: `'X448_MLKEM768'`) * `P384_MLKEM768` (value: `'P384_MLKEM768'`) -* `P256_MLKEM768` (value: `'P256_MLKEM768'`) +* `SECP256R1MLKEM768` (value: `'SecP256r1MLKEM768'`) * `P256_MLKEM512` (value: `'P256_MLKEM512'`) * `X25519` (value: `'X25519'`) +* `P521_MLKEM1024` (value: `'P521_MLKEM1024'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TLSProfile.md b/docs/TLSProfile.md index 4299987..10f7701 100644 --- a/docs/TLSProfile.md +++ b/docs/TLSProfile.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **ciphers13** | [**List[CipherTLS13]**](CipherTLS13.md) | | [optional] **dh_file** | [**Params**](Params.md) | | [optional] **get_tls_conflicts** | **List[bytearray]** | | [optional] +**groups13** | [**List[GroupTLS13]**](GroupTLS13.md) | | [optional] **immediate_close** | **bool** | The immediate FIN after close notify | [optional] **key_file** | [**Params**](Params.md) | The key file of the TLS profile. | [optional] **key_file_password** | **str** | The key file password of the TLS profile. | [optional] diff --git a/test/test_application.py b/test/test_application.py index 7e32b8c..8e870d8 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -486,6 +486,11 @@ def make_instance(self, include_optional) -> Application: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -574,6 +579,11 @@ def make_instance(self, include_optional) -> Application: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_application_type.py b/test/test_application_type.py index 96ee8b2..e1ddf7f 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -158,6 +158,7 @@ def make_instance(self, include_optional) -> ApplicationType: custom_stats = [ cyperf.models.custom_stat.CustomStat( function = '', + is_rate = True, path = '', ) ], data_types = [ @@ -264,6 +265,9 @@ def make_instance(self, include_optional) -> ApplicationType: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_attack.py b/test/test_attack.py index 4123d93..45c26c3 100644 --- a/test/test_attack.py +++ b/test/test_attack.py @@ -486,6 +486,11 @@ def make_instance(self, include_optional) -> Attack: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -561,6 +566,11 @@ def make_instance(self, include_optional) -> Attack: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py index 1db12f8..8fbb296 100644 --- a/test/test_auth_profile.py +++ b/test/test_auth_profile.py @@ -147,6 +147,9 @@ def make_instance(self, include_optional) -> AuthProfile: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_auth_settings.py b/test/test_auth_settings.py index 30392d8..3f098c6 100644 --- a/test/test_auth_settings.py +++ b/test/test_auth_settings.py @@ -413,6 +413,27 @@ def make_instance(self, include_optional) -> AuthSettings: ], supports_dynamic_payload = True, upload_url = '', ), + simulated_id_p = cyperf.models.simulated_id_p.SimulatedIdP( + assertion_signature = True, + audience_uri = '', + cert_config = null, + name_id_format = null, + response_signature = True, + signature_algorithm = null, + single_sign_on_url = '', + xml_metadata = [ + 'YQ==' + ], + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), usernames = [ '' ], diff --git a/test/test_cisco_any_connect_settings.py b/test/test_cisco_any_connect_settings.py index 465bd02..d928a81 100644 --- a/test/test_cisco_any_connect_settings.py +++ b/test/test_cisco_any_connect_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> CiscoAnyConnectSettings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], @@ -125,6 +126,11 @@ def make_instance(self, include_optional) -> CiscoAnyConnectSettings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_command.py b/test/test_command.py index 485799f..82a2036 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -118,6 +118,9 @@ def make_instance(self, include_optional) -> Command: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_custom_stat.py b/test/test_custom_stat.py index 2fd89b9..c072a09 100644 --- a/test/test_custom_stat.py +++ b/test/test_custom_stat.py @@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> CustomStat: if include_optional: return CustomStat( function = '', + is_rate = True, path = '' ) else: diff --git a/test/test_dtls_settings.py b/test/test_dtls_settings.py index 235f214..5a7d9d9 100644 --- a/test/test_dtls_settings.py +++ b/test/test_dtls_settings.py @@ -51,6 +51,11 @@ def make_instance(self, include_optional) -> DTLSSettings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_f5_settings.py b/test/test_f5_settings.py index d82e209..b51b8fa 100644 --- a/test/test_f5_settings.py +++ b/test/test_f5_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> F5Settings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], @@ -120,6 +121,11 @@ def make_instance(self, include_optional) -> F5Settings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_fortinet_settings.py b/test/test_fortinet_settings.py index 686bd84..ce0b7bb 100644 --- a/test/test_fortinet_settings.py +++ b/test/test_fortinet_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> FortinetSettings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], @@ -120,6 +121,11 @@ def make_instance(self, include_optional) -> FortinetSettings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index aa5c159..d61eabc 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -151,6 +151,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp custom_stats = [ cyperf.models.custom_stat.CustomStat( function = '', + is_rate = True, path = '', ) ], data_types = [ diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index 806f1a5..4942311 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -151,6 +151,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp custom_stats = [ cyperf.models.custom_stat.CustomStat( function = '', + is_rate = True, path = '', ) ], data_types = [ diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py index 97be044..37b462c 100644 --- a/test/test_get_result_stats200_response.py +++ b/test/test_get_result_stats200_response.py @@ -74,6 +74,9 @@ def make_instance(self, include_optional) -> GetResultStats200Response: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py index 7dbc345..e55fcdd 100644 --- a/test/test_get_result_stats200_response_one_of.py +++ b/test/test_get_result_stats200_response_one_of.py @@ -74,6 +74,9 @@ def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_get_results200_response.py b/test/test_get_results200_response.py index 279668e..ba5dbda 100644 --- a/test/test_get_results200_response.py +++ b/test/test_get_results200_response.py @@ -73,6 +73,9 @@ def make_instance(self, include_optional) -> GetResults200Response: owner_id = '', pdf_url = '', pinned = True, + report_types = [ + '' + ], reporting_links = [ cyperf.models.api_link.APILink( content_type = '', diff --git a/test/test_get_results200_response_one_of.py b/test/test_get_results200_response_one_of.py index 95acfd6..fe1e224 100644 --- a/test/test_get_results200_response_one_of.py +++ b/test/test_get_results200_response_one_of.py @@ -73,6 +73,9 @@ def make_instance(self, include_optional) -> GetResults200ResponseOneOf: owner_id = '', pdf_url = '', pinned = True, + report_types = [ + '' + ], reporting_links = [ cyperf.models.api_link.APILink( content_type = '', diff --git a/test/test_group_tls13.py b/test/test_group_tls13.py new file mode 100644 index 0000000..0b12753 --- /dev/null +++ b/test/test_group_tls13.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.group_tls13 import GroupTLS13 + +class TestGroupTLS13(unittest.TestCase): + """GroupTLS13 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GroupTLS13: + """Test GroupTLS13 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GroupTLS13` + """ + model = GroupTLS13() + if include_optional: + return GroupTLS13( + is_deprecated = True, + name = 'P-256' + ) + else: + return GroupTLS13( + is_deprecated = True, + name = 'P-256', + ) + """ + + def testGroupTLS13(self): + """Test GroupTLS13""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pangp_settings.py b/test/test_pangp_settings.py index b89e576..de1f305 100644 --- a/test/test_pangp_settings.py +++ b/test/test_pangp_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> PANGPSettings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], @@ -109,6 +110,11 @@ def make_instance(self, include_optional) -> PANGPSettings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_parameter.py b/test/test_parameter.py index 5e4425c..e1359db 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -70,6 +70,9 @@ def make_instance(self, include_optional) -> Parameter: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_parameter_metadata.py b/test/test_parameter_metadata.py index 64e15c4..563d577 100644 --- a/test/test_parameter_metadata.py +++ b/test/test_parameter_metadata.py @@ -61,6 +61,9 @@ def make_instance(self, include_optional) -> ParameterMetadata: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_playlist_metadata.py b/test/test_playlist_metadata.py new file mode 100644 index 0000000..f5c3ca0 --- /dev/null +++ b/test/test_playlist_metadata.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.playlist_metadata import PlaylistMetadata + +class TestPlaylistMetadata(unittest.TestCase): + """PlaylistMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlaylistMetadata: + """Test PlaylistMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PlaylistMetadata` + """ + model = PlaylistMetadata() + if include_optional: + return PlaylistMetadata( + column = '', + file_name = '' + ) + else: + return PlaylistMetadata( + ) + """ + + def testPlaylistMetadata(self): + """Test PlaylistMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_quic_profile.py b/test/test_quic_profile.py index 24a5c88..904dfe4 100644 --- a/test/test_quic_profile.py +++ b/test/test_quic_profile.py @@ -51,6 +51,11 @@ def make_instance(self, include_optional) -> QUICProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -129,6 +134,11 @@ def make_instance(self, include_optional) -> QUICProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_result_metadata.py b/test/test_result_metadata.py index 58163aa..f11cd7e 100644 --- a/test/test_result_metadata.py +++ b/test/test_result_metadata.py @@ -71,6 +71,9 @@ def make_instance(self, include_optional) -> ResultMetadata: owner_id = '', pdf_url = '', pinned = True, + report_types = [ + '' + ], reporting_links = [ cyperf.models.api_link.APILink( content_type = '', diff --git a/test/test_stats_result.py b/test/test_stats_result.py index 0f8c171..e1e4aa4 100644 --- a/test/test_stats_result.py +++ b/test/test_stats_result.py @@ -72,6 +72,9 @@ def make_instance(self, include_optional) -> StatsResult: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_tls_profile.py b/test/test_tls_profile.py index e9b4c48..8d807fc 100644 --- a/test/test_tls_profile.py +++ b/test/test_tls_profile.py @@ -234,6 +234,11 @@ def make_instance(self, include_optional) -> TLSProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = cyperf.models.params.Params( array_element_type = '', diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py index fe38473..fc02383 100644 --- a/test/test_transport_profile.py +++ b/test/test_transport_profile.py @@ -175,6 +175,11 @@ def make_instance(self, include_optional) -> TransportProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -398,6 +403,11 @@ def make_instance(self, include_optional) -> TransportProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py index c98e998..a4ac4ef 100644 --- a/test/test_transport_profile_base.py +++ b/test/test_transport_profile_base.py @@ -175,6 +175,11 @@ def make_instance(self, include_optional) -> TransportProfileBase: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -398,6 +403,11 @@ def make_instance(self, include_optional) -> TransportProfileBase: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_tunnel_settings.py b/test/test_tunnel_settings.py index 587d9b4..0bb97f3 100644 --- a/test/test_tunnel_settings.py +++ b/test/test_tunnel_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> TunnelSettings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], From ab6f6def43f4c012296477ce04ca5e35988a6bf4 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 22 Jan 2026 03:26:06 -0700 Subject: [PATCH 13/20] Pull request #53: ISGAPPSEC2-36315 assign-by-id-or-by-port-do-not-work Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-36315-assign-by-id-or-by-port-do-not-work-they-complain-about-tag to main Squashed commit of the following: commit 4401c75675463cadb452a22579928732a75622fb Author: iustmitu Date: Wed Jan 21 16:44:57 2026 +0200 regenerated wrapper --- cyperf/models/agent_assignments.py | 2 +- docs/AgentAssignments.md | 2 +- test/test_agent_assignments.py | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index 230987a..4ab7d43 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -33,7 +33,7 @@ class AgentAssignments(BaseModel): """ # noqa: E501 by_id: Optional[List[AgentAssignmentDetails]] = Field(default=None, description="The agents statically assigned to the current test configuration.", alias="ByID") by_port: Optional[List[AgentAssignmentByPort]] = Field(default=None, description="The ports assigned to the current test configuration.", alias="ByPort") - by_tag: List[StrictStr] = Field(description="The tags according to which the agents are dynamically assigned.", alias="ByTag") + by_tag: Optional[List[StrictStr]] = Field(default=None, description="The tags according to which the agents are dynamically assigned.", alias="ByTag") links: Optional[List[APILink]] = None __properties: ClassVar[List[str]] = ["ByID", "ByPort", "ByTag", "links"] diff --git a/docs/AgentAssignments.md b/docs/AgentAssignments.md index 8984062..2b0cca7 100644 --- a/docs/AgentAssignments.md +++ b/docs/AgentAssignments.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **by_id** | [**List[AgentAssignmentDetails]**](AgentAssignmentDetails.md) | The agents statically assigned to the current test configuration. | [optional] **by_port** | [**List[AgentAssignmentByPort]**](AgentAssignmentByPort.md) | The ports assigned to the current test configuration. | [optional] -**by_tag** | **List[str]** | The tags according to which the agents are dynamically assigned. | +**by_tag** | **List[str]** | The tags according to which the agents are dynamically assigned. | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] ## Example diff --git a/test/test_agent_assignments.py b/test/test_agent_assignments.py index 14c3c92..31cb9e9 100644 --- a/test/test_agent_assignments.py +++ b/test/test_agent_assignments.py @@ -58,9 +58,6 @@ def make_instance(self, include_optional) -> AgentAssignments: ) else: return AgentAssignments( - by_tag = [ - '' - ], ) """ From 9ec33e92d2e7fb11d6ea7cbf8d89d7d8126fcd2f Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Tue, 27 Jan 2026 07:05:27 -0700 Subject: [PATCH 14/20] Pull request #54: compatible wrapper with python 3.8 Merge in ISGAPPSEC/cyperf-api-wrapper from compatible-wrapper-with-python-3.8 to main Squashed commit of the following: commit 79b2e7cec15f12bc207a1408e2bd580ca038f06a Author: iustmitu Date: Tue Jan 27 14:45:49 2026 +0200 fixed sample scripts commit 9ae193e70db6468f8f6db9982bf70c79870c37c9 Author: iustmitu Date: Mon Jan 26 16:56:31 2026 +0200 regenerate wrapper after conflicts commit d29e51b29707bb071f30f76879eb6d1752c57248 Merge: 8694c3f 7b39904 Author: iustmitu Date: Mon Jan 26 16:49:29 2026 +0200 Merge branch 'main' of https://bitbucket.it.keysight.com/scm/isgappsec/cyperf-api-wrapper into compatible-wrapper-with-python-3.8 commit 8694c3fd04b5da8fef7912396cf53e786cc9583b Author: iustmitu Date: Mon Jan 26 16:37:23 2026 +0200 remove endlines commit 313627a6fc726b9c772e6fed92be2dff38e402b3 Author: iustmitu Date: Mon Jan 26 15:49:13 2026 +0200 regenerated wrapper commit 8827e5c9cd44a07ca3a826077eb96e5c6228ced9 Author: iustmitu Date: Thu Dec 4 13:12:01 2025 +0200 compatible wrapper with python 3.8 --- cyperf/api_client.py | 31 +++++++++++++++---- cyperf/models/action.py | 8 ++--- cyperf/models/action_base.py | 8 ++--- cyperf/models/action_input.py | 6 ++-- cyperf/models/action_input_find_param.py | 4 +-- cyperf/models/action_metadata.py | 6 ++-- cyperf/models/activation_code_info.py | 2 +- cyperf/models/activation_code_list_request.py | 2 +- cyperf/models/activation_code_request.py | 2 +- cyperf/models/add_action_info.py | 2 +- cyperf/models/add_input.py | 6 ++-- cyperf/models/advanced_settings.py | 2 +- cyperf/models/agent.py | 8 ++--- cyperf/models/agent_assignment_by_port.py | 4 +-- cyperf/models/agent_assignment_details.py | 4 +-- cyperf/models/agent_assignments.py | 8 ++--- cyperf/models/agent_cpu_info.py | 2 +- cyperf/models/agent_features.py | 2 +- cyperf/models/agent_release.py | 2 +- cyperf/models/agent_reservation.py | 2 +- cyperf/models/agent_to_be_rebooted.py | 2 +- cyperf/models/agents_group.py | 2 +- cyperf/models/api_link.py | 2 +- cyperf/models/app_exchange.py | 2 +- cyperf/models/app_flow.py | 6 ++-- cyperf/models/app_flow_desc.py | 2 +- cyperf/models/app_flow_input.py | 2 +- cyperf/models/app_flow_input_find_param.py | 2 +- cyperf/models/app_id.py | 2 +- cyperf/models/app_mode.py | 2 +- cyperf/models/application.py | 18 +++++------ cyperf/models/application_profile.py | 12 +++---- cyperf/models/application_type.py | 18 +++++------ cyperf/models/appsec_app.py | 4 +-- cyperf/models/appsec_app_metadata.py | 8 ++--- cyperf/models/appsec_attack.py | 4 +-- cyperf/models/appsec_config.py | 4 +-- cyperf/models/archive_info.py | 2 +- cyperf/models/array_v2_element_metadata.py | 2 +- cyperf/models/async_context.py | 2 +- cyperf/models/attack.py | 18 +++++------ cyperf/models/attack_action.py | 8 ++--- cyperf/models/attack_metadata.py | 6 ++-- .../models/attack_objectives_and_timeline.py | 6 ++-- cyperf/models/attack_profile.py | 12 +++---- cyperf/models/attack_timeline_segment.py | 2 +- cyperf/models/attack_track.py | 8 ++--- cyperf/models/auth_profile.py | 12 +++---- cyperf/models/auth_profile_metadata.py | 2 +- cyperf/models/auth_settings.py | 4 +-- cyperf/models/authenticate200_response.py | 2 +- cyperf/models/authentication_settings.py | 4 +-- cyperf/models/broker.py | 2 +- cyperf/models/capture_input.py | 4 +-- cyperf/models/capture_input_find_param.py | 4 +-- cyperf/models/capture_settings.py | 2 +- cyperf/models/category.py | 4 +-- cyperf/models/category_filter.py | 2 +- cyperf/models/category_value.py | 2 +- cyperf/models/cert_config.py | 6 ++-- cyperf/models/certificate.py | 2 +- cyperf/models/chassis_info.py | 2 +- cyperf/models/choice.py | 2 +- cyperf/models/cisco_any_connect_settings.py | 4 +-- cyperf/models/cisco_encapsulation.py | 4 +-- .../models/clear_ports_ownership_operation.py | 4 +-- cyperf/models/command.py | 8 ++--- cyperf/models/command_metadata.py | 6 ++-- cyperf/models/compute_node.py | 8 ++--- cyperf/models/config.py | 12 +++---- cyperf/models/config_category.py | 6 ++-- cyperf/models/config_id.py | 2 +- cyperf/models/config_metadata.py | 6 ++-- cyperf/models/config_sub_category.py | 2 +- cyperf/models/config_validation.py | 6 ++-- cyperf/models/conflict.py | 2 +- cyperf/models/connection.py | 4 +-- cyperf/models/consumer.py | 2 +- cyperf/models/controller.py | 8 ++--- cyperf/models/counted_feature_consumer.py | 2 +- cyperf/models/counted_feature_stats.py | 4 +-- cyperf/models/create_app_operation.py | 6 ++-- .../create_app_or_attack_operation_input.py | 4 +-- cyperf/models/custom_dashboards.py | 6 ++-- cyperf/models/custom_import_handler.py | 2 +- cyperf/models/custom_stat.py | 2 +- cyperf/models/dashboard.py | 2 +- cyperf/models/data_type.py | 4 +-- cyperf/models/data_type_values_inner.py | 2 +- cyperf/models/definition.py | 2 +- cyperf/models/delete_input.py | 2 +- cyperf/models/diagnostic_component.py | 6 ++-- cyperf/models/diagnostic_component_context.py | 6 ++-- cyperf/models/diagnostic_options.py | 2 +- cyperf/models/disk_usage.py | 6 ++-- cyperf/models/dns_resolver.py | 6 ++-- cyperf/models/dns_server.py | 2 +- cyperf/models/dtls_settings.py | 4 +-- cyperf/models/dut_network.py | 4 +-- cyperf/models/edit_action_input.py | 4 +-- cyperf/models/edit_app_operation.py | 16 +++++----- cyperf/models/effective_ports.py | 2 +- cyperf/models/emulated_router.py | 6 ++-- cyperf/models/emulated_router_range.py | 4 +-- cyperf/models/emulated_subnet_config.py | 2 +- cyperf/models/endpoint.py | 4 +-- cyperf/models/entitlement_code_info.py | 4 +-- cyperf/models/entitlement_code_request.py | 2 +- cyperf/models/enum.py | 4 +-- cyperf/models/error_description.py | 2 +- cyperf/models/error_response.py | 2 +- cyperf/models/esp_over_udp_settings.py | 4 +-- cyperf/models/eth_range.py | 6 ++-- cyperf/models/eula_details.py | 2 +- cyperf/models/eula_summary.py | 2 +- cyperf/models/exchange.py | 2 +- cyperf/models/exchange_order.py | 2 +- cyperf/models/exchange_payload.py | 2 +- cyperf/models/expected_disk_space.py | 2 +- cyperf/models/expected_disk_space_message.py | 2 +- .../models/expected_disk_space_pretty_size.py | 2 +- cyperf/models/expected_disk_space_size.py | 2 +- cyperf/models/export_all_operation.py | 4 +-- cyperf/models/export_apps_operation_input.py | 4 +-- cyperf/models/export_files_operation_input.py | 15 ++++----- cyperf/models/export_files_request.py | 2 +- cyperf/models/export_package_operation.py | 2 +- cyperf/models/external_resource_info.py | 2 +- cyperf/models/f5_encapsulation.py | 4 +-- cyperf/models/f5_settings.py | 4 +-- cyperf/models/feature.py | 2 +- cyperf/models/feature_reservation.py | 2 +- cyperf/models/feature_reservation_reserve.py | 2 +- cyperf/models/file_metadata.py | 2 +- cyperf/models/file_value.py | 2 +- cyperf/models/filter.py | 2 +- cyperf/models/filtered_stat.py | 4 +-- cyperf/models/find_param_matches_operation.py | 4 +-- cyperf/models/fortinet_encapsulation.py | 4 +-- cyperf/models/fortinet_settings.py | 4 +-- cyperf/models/fulfillment_request.py | 2 +- cyperf/models/generate_all_operation.py | 2 +- .../models/generate_csv_reports_operation.py | 4 +-- .../models/generate_pdf_report_operation.py | 2 +- cyperf/models/generic_file.py | 4 +-- cyperf/models/get_agents200_response.py | 4 +++ .../models/get_agents200_response_one_of.py | 4 +-- cyperf/models/get_agents_tags200_response.py | 4 +++ .../get_agents_tags200_response_one_of.py | 4 +-- cyperf/models/get_apps_operation.py | 6 ++-- .../get_async_operation_result200_response.py | 12 +++++++ cyperf/models/get_attacks_operation.py | 6 ++-- cyperf/models/get_brokers200_response.py | 4 +++ .../models/get_brokers200_response_one_of.py | 4 +-- cyperf/models/get_categories_operation.py | 4 +-- ...fig_categorie_subcategories200_response.py | 4 +++ ...egorie_subcategories200_response_one_of.py | 4 +-- .../get_config_categories200_response.py | 4 +++ ...et_config_categories200_response_one_of.py | 4 +-- cyperf/models/get_configs200_response.py | 4 +++ .../models/get_configs200_response_one_of.py | 4 +-- cyperf/models/get_controllers200_response.py | 4 +++ .../get_controllers200_response_one_of.py | 4 +-- .../get_disk_usage_consumers200_response.py | 4 +++ ...disk_usage_consumers200_response_one_of.py | 4 +-- ...ense_async_operation_result200_response.py | 4 +++ .../models/get_license_servers200_response.py | 4 +++ .../get_license_servers200_response_one_of.py | 4 +-- .../models/get_notifications200_response.py | 4 +++ .../get_notifications200_response_one_of.py | 4 +-- ...resources_application_types200_response.py | 4 +++ ...es_application_types200_response_one_of.py | 4 +-- .../models/get_resources_apps200_response.py | 4 +++ .../get_resources_apps200_response_one_of.py | 4 +-- .../get_resources_attacks200_response.py | 4 +++ ...et_resources_attacks200_response_one_of.py | 4 +-- ...get_resources_auth_profiles200_response.py | 4 +++ ...ources_auth_profiles200_response_one_of.py | 4 +-- .../get_resources_certificates200_response.py | 4 +++ ...sources_certificates200_response_one_of.py | 4 +-- ...es_custom_import_operations200_response.py | 4 +++ ...om_import_operations200_response_one_of.py | 4 +-- ...get_resources_http_profiles200_response.py | 4 +++ ...ources_http_profiles200_response_one_of.py | 4 +-- cyperf/models/get_result_files200_response.py | 4 +++ .../get_result_files200_response_one_of.py | 4 +-- cyperf/models/get_result_stats200_response.py | 4 +++ .../get_result_stats200_response_one_of.py | 4 +-- cyperf/models/get_results200_response.py | 4 +++ .../models/get_results200_response_one_of.py | 4 +-- cyperf/models/get_results_tags200_response.py | 4 +++ .../get_results_tags200_response_one_of.py | 4 +-- cyperf/models/get_session_meta200_response.py | 4 +++ .../get_session_meta200_response_one_of.py | 4 +-- cyperf/models/get_sessions200_response.py | 4 +++ .../models/get_sessions200_response_one_of.py | 4 +-- .../models/get_stats_plugins200_response.py | 4 +++ .../get_stats_plugins200_response_one_of.py | 4 +-- cyperf/models/get_strikes_operation.py | 6 ++-- cyperf/models/group_tls13.py | 2 +- cyperf/models/health_check_config.py | 6 ++-- cyperf/models/health_issue.py | 2 +- cyperf/models/host_id.py | 2 +- cyperf/models/http_profile.py | 6 ++-- cyperf/models/http_req_meta.py | 2 +- cyperf/models/http_res_meta.py | 2 +- cyperf/models/import_all_operation.py | 4 +-- .../models/import_offline_license_result.py | 2 +- cyperf/models/ingest_operation.py | 2 +- cyperf/models/inner_ip_range.py | 2 +- cyperf/models/interface.py | 4 +-- cyperf/models/ip_mask.py | 2 +- cyperf/models/ip_network.py | 15 +++++---- cyperf/models/ip_range.py | 4 +-- cyperf/models/ip_sec_range.py | 4 +-- cyperf/models/ip_sec_stack.py | 4 +-- cyperf/models/license.py | 6 ++-- cyperf/models/license_receipt.py | 4 +-- cyperf/models/license_server_metadata.py | 2 +- cyperf/models/link.py | 2 +- cyperf/models/load_config_operation.py | 2 +- cyperf/models/local_subnet_config.py | 2 +- cyperf/models/log_config.py | 2 +- cyperf/models/mac_dtls_stack.py | 4 +-- cyperf/models/marked_as_deleted.py | 2 +- cyperf/models/md2_tlv.py | 2 +- cyperf/models/media_file.py | 6 ++-- cyperf/models/media_track.py | 2 +- cyperf/models/metadata.py | 6 ++-- cyperf/models/name_server.py | 2 +- cyperf/models/network_mapping.py | 2 +- cyperf/models/network_meshing.py | 2 +- cyperf/models/network_profile.py | 8 ++--- cyperf/models/network_segment_base.py | 2 +- cyperf/models/nodes_by_controller.py | 2 +- cyperf/models/nodes_power_cycle_operation.py | 4 +-- cyperf/models/notification.py | 2 +- cyperf/models/notification_counts.py | 2 +- cyperf/models/ntp_info.py | 2 +- cyperf/models/objective_value_entry.py | 2 +- cyperf/models/objectives_and_timeline.py | 8 ++--- cyperf/models/open_api_definitions.py | 4 +-- cyperf/models/p1_config.py | 2 +- cyperf/models/p2_config.py | 2 +- cyperf/models/pair.py | 2 +- cyperf/models/pangp_encapsulation.py | 4 +-- cyperf/models/pangp_settings.py | 4 +-- cyperf/models/param_metadata.py | 2 +- cyperf/models/param_metadata_type_info.py | 2 +- .../param_metadata_type_info_array_v2.py | 4 +-- ...adata_type_info_array_v2_elements_inner.py | 2 +- cyperf/models/param_metadata_type_info_int.py | 2 +- .../models/param_metadata_type_info_media.py | 2 +- .../models/param_metadata_type_info_string.py | 2 +- cyperf/models/parameter.py | 4 +-- cyperf/models/parameter_match.py | 2 +- cyperf/models/parameter_meta.py | 4 +-- cyperf/models/parameter_metadata.py | 4 +-- cyperf/models/params.py | 6 ++-- cyperf/models/params_enum.py | 4 +-- cyperf/models/payload_meta.py | 2 +- cyperf/models/payload_metadata.py | 2 +- cyperf/models/pep_dut.py | 6 ++-- cyperf/models/playlist_metadata.py | 2 +- cyperf/models/plugin.py | 2 +- cyperf/models/plugin_stats.py | 4 +-- cyperf/models/port.py | 2 +- cyperf/models/port_settings.py | 4 +-- cyperf/models/ports_by_controller.py | 4 +-- cyperf/models/ports_by_node.py | 2 +- cyperf/models/prepare_test_operation.py | 2 +- cyperf/models/prepared_test_options.py | 2 +- cyperf/models/protected_subnet_config.py | 2 +- cyperf/models/quic_profile.py | 4 +-- cyperf/models/reboot_operation_input.py | 4 +-- cyperf/models/reboot_ports_operation.py | 4 +-- cyperf/models/reference.py | 2 +- cyperf/models/regex_match.py | 2 +- cyperf/models/release_operation_input.py | 4 +-- cyperf/models/remote_access.py | 2 +- cyperf/models/remote_subnet_config.py | 2 +- cyperf/models/rename_input.py | 2 +- cyperf/models/reorder_action_input.py | 2 +- cyperf/models/reorder_exchanges_input.py | 4 +-- cyperf/models/replay_capture.py | 6 ++-- cyperf/models/required_file_types.py | 2 +- cyperf/models/reserve_operation_input.py | 6 ++-- cyperf/models/result_file_metadata.py | 2 +- cyperf/models/result_metadata.py | 8 ++--- cyperf/models/results_group.py | 2 +- cyperf/models/rtp_profile.py | 2 +- cyperf/models/rtp_profile_meta.py | 2 +- cyperf/models/save_config_operation.py | 2 +- cyperf/models/scenario.py | 10 +++--- cyperf/models/secondary_objective.py | 2 +- cyperf/models/selected_env.py | 4 +-- cyperf/models/session.py | 6 ++-- .../models/set_aggregation_mode_operation.py | 4 +-- cyperf/models/set_app_operation.py | 2 +- .../models/set_dpdk_mode_operation_input.py | 2 +- cyperf/models/set_link_state_operation.py | 4 +-- cyperf/models/set_ntp_operation_input.py | 2 +- cyperf/models/simulated_id_p.py | 4 +-- cyperf/models/snapshot.py | 8 +++-- cyperf/models/sort_body_field.py | 2 +- cyperf/models/specific_objective.py | 6 ++-- ...start_agents_batch_delete_request_inner.py | 2 +- cyperf/models/stateless_stream.py | 4 +-- cyperf/models/static_arp_entry.py | 2 +- cyperf/models/stats_result.py | 6 ++-- cyperf/models/steady_segment.py | 2 +- cyperf/models/step_segment.py | 2 +- cyperf/models/stream_profile.py | 2 +- cyperf/models/system_info.py | 4 +-- cyperf/models/tcp_profile.py | 2 +- cyperf/models/test_info.py | 4 +-- cyperf/models/test_state_changed_operation.py | 2 +- cyperf/models/time_value.py | 2 +- cyperf/models/timeline_segment.py | 6 ++-- cyperf/models/timeline_segment_base.py | 2 +- cyperf/models/timeline_segment_union.py | 2 +- cyperf/models/timers.py | 2 +- cyperf/models/tls_profile.py | 10 +++--- cyperf/models/track.py | 8 ++--- cyperf/models/traffic_agent_info.py | 2 +- cyperf/models/traffic_profile_base.py | 4 +-- cyperf/models/traffic_settings.py | 4 +-- cyperf/models/transport_profile.py | 4 +-- cyperf/models/transport_profile_base.py | 4 +-- cyperf/models/tunnel_range.py | 4 +-- cyperf/models/tunnel_settings.py | 4 +-- cyperf/models/tunnel_stack.py | 4 +-- cyperf/models/type_array_v2_metadata.py | 4 +-- cyperf/models/type_info_metadata.py | 2 +- cyperf/models/type_int_metadata.py | 2 +- cyperf/models/type_media_metadata.py | 2 +- cyperf/models/type_string_metadata.py | 2 +- cyperf/models/udp_profile.py | 2 +- cyperf/models/update_network_mapping.py | 2 +- cyperf/models/update_port_tags_operation.py | 4 +-- cyperf/models/validation_message.py | 2 +- cyperf/models/version.py | 2 +- cyperf/models/vlan_range.py | 6 ++-- cyperf/models/vx_lan_range.py | 8 ++--- cyperf/models/vx_lan_stack.py | 4 +-- cyperf/models/vx_lanid.py | 2 +- samples/sample_attack_based_script.py | 9 +++--- .../sample_create_save_and_export_config.py | 9 +++--- .../sample_load_and_run_precanned_config.py | 9 +++--- 349 files changed, 763 insertions(+), 633 deletions(-) diff --git a/cyperf/api_client.py b/cyperf/api_client.py index 2434de8..2df7bff 100644 --- a/cyperf/api_client.py +++ b/cyperf/api_client.py @@ -543,21 +543,40 @@ def __deserialize(self, data, klass): m = re.match(r'List\[(.*)]', klass) assert m is not None, "Malformed List type definition" sub_kls = m.group(1) - return [self.__deserialize(sub_data, sub_kls) + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] elif klass.startswith('Dict['): m = re.match(r'Dict\[([^,]*), (.*)]', klass) assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) - return {k: self.__deserialize(v, sub_kls) + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} - elif klass.startswith('typing.Optional['): - m = re.match(r'typing.Optional\[([a-zA-Z0-9_]+\.)*(.*)]', klass) - assert m is not None, "Malformed Optional type definition" + elif klass.startswith('typing.List['): + m = re.match(r'typing\.List\[(.*)]', klass) + assert m is not None, "Malformed typing.List type definition" + sub_kls = m.group(1) + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] + + elif klass.startswith('typing.Dict['): + m = re.match(r'typing\.Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed typing.Dict type definition" sub_kls = m.group(2) - klass = sub_kls + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} + + elif klass.startswith('typing.Optional[') or klass.startswith('Optional['): + m = re.match(r'(?:typing\.)?Optional\[(.*)]', klass) + assert m is not None, "Malformed Optional type definition" + klass = m.group(1) + continue + + elif klass.startswith('typing.Union[') or klass.startswith('Union['): + m = re.match(r'(?:typing\.)?Union\[(.*),\s*NoneType]', klass) + assert m is not None, "Malformed Union type definition" + klass = m.group(1) + continue + else: break diff --git a/cyperf/models/action.py b/cyperf/models/action.py index ea3a2c8..8626b2c 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index 8b4808b..4a86892 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_input.py b/cyperf/models/action_input.py index 176e258..20d1342 100644 --- a/cyperf/models/action_input.py +++ b/cyperf/models/action_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,9 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInput.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "Name": obj.get("Name"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_input_find_param.py b/cyperf/models/action_input_find_param.py index 60a9993..b62a8c1 100644 --- a/cyperf/models/action_input_find_param.py +++ b/cyperf/models/action_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input_find_param import CaptureInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Captures": [CaptureInputFindParam.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInputFindParam.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "Name": obj.get("Name") , "links": obj.get("links") diff --git a/cyperf/models/action_metadata.py b/cyperf/models/action_metadata.py index 78dab27..a1bcfe1 100644 --- a/cyperf/models/action_metadata.py +++ b/cyperf/models/action_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow import AppFlow from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -105,10 +105,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "FlowIndex": obj.get("FlowIndex"), - "Flows": [AppFlow.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None, + "Flows": ( [AppFlow.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None), "Index": obj.get("Index"), "Name": obj.get("Name"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/activation_code_info.py b/cyperf/models/activation_code_info.py index e53937e..9cc170b 100644 --- a/cyperf/models/activation_code_info.py +++ b/cyperf/models/activation_code_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/activation_code_list_request.py b/cyperf/models/activation_code_list_request.py index 34d645f..ee7c0f7 100644 --- a/cyperf/models/activation_code_list_request.py +++ b/cyperf/models/activation_code_list_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/activation_code_request.py b/cyperf/models/activation_code_request.py index 2d51be6..b0cc4da 100644 --- a/cyperf/models/activation_code_request.py +++ b/cyperf/models/activation_code_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/add_action_info.py b/cyperf/models/add_action_info.py index 4b14aed..a3b41d1 100644 --- a/cyperf/models/add_action_info.py +++ b/cyperf/models/add_action_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/add_input.py b/cyperf/models/add_input.py index 63473ba..32916fa 100644 --- a/cyperf/models/add_input.py +++ b/cyperf/models/add_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,10 +108,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionIndex": obj.get("ActionIndex"), "ActionName": obj.get("ActionName"), - "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInput.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "ExchangeIndexInsertAt": obj.get("ExchangeIndexInsertAt"), "FlowIndexInsertAt": obj.get("FlowIndexInsertAt"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "Type": obj.get("Type") , "links": obj.get("links") diff --git a/cyperf/models/advanced_settings.py b/cyperf/models/advanced_settings.py index accfae2..2e4b124 100644 --- a/cyperf/models/advanced_settings.py +++ b/cyperf/models/advanced_settings.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_optimization_mode import AgentOptimizationMode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 5cec980..17b44d4 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -27,7 +27,7 @@ from cyperf.models.ntp_info import NtpInfo from cyperf.models.selected_env import SelectedEnv from cyperf.models.system_info import SystemInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -183,7 +183,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AgentTags": obj.get("AgentTags") if obj.get("AgentTags") is not None else [], "IP": obj.get("IP"), - "Interfaces": [Interface.from_dict(_item) for _item in obj["Interfaces"]] if obj.get("Interfaces") is not None else None, + "Interfaces": ( [Interface.from_dict(_item) for _item in obj.get("Interfaces", [])] if obj.get("Interfaces") is not None else None), "LastUpdate": obj.get("LastUpdate"), "ReservationID": obj.get("ReservationID"), "SelectedEnv": SelectedEnv.from_dict(obj["SelectedEnv"]) if obj.get("SelectedEnv") is not None else None, @@ -191,7 +191,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SessionName": obj.get("SessionName"), "Status": obj.get("Status"), "configuredProxy": obj.get("configuredProxy"), - "cpuInfo": [AgentCPUInfo.from_dict(_item) for _item in obj["cpuInfo"]] if obj.get("cpuInfo") is not None else None, + "cpuInfo": ( [AgentCPUInfo.from_dict(_item) for _item in obj.get("cpuInfo", [])] if obj.get("cpuInfo") is not None else None), "dpdkEnabled": obj.get("dpdkEnabled"), "features": AgentFeatures.from_dict(obj["features"]) if obj.get("features") is not None else None, "hostname": obj.get("hostname"), @@ -205,7 +205,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "packageVersionStatus": obj.get("packageVersionStatus"), "requiresUpdating": obj.get("requiresUpdating"), "systemInfo": SystemInfo.from_dict(obj["systemInfo"]) if obj.get("systemInfo") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_assignment_by_port.py b/cyperf/models/agent_assignment_by_port.py index 073676d..3142e3b 100644 --- a/cyperf/models/agent_assignment_by_port.py +++ b/cyperf/models/agent_assignment_by_port.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.capture_settings import CaptureSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "portId": obj.get("portId") , "links": obj.get("links") diff --git a/cyperf/models/agent_assignment_details.py b/cyperf/models/agent_assignment_details.py index e6afd16..fd2fccc 100644 --- a/cyperf/models/agent_assignment_details.py +++ b/cyperf/models/agent_assignment_details.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.capture_settings import CaptureSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, "id": obj.get("id"), "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index 4ab7d43..d2400e2 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -23,7 +23,7 @@ from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort from cyperf.models.agent_assignment_details import AgentAssignmentDetails from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,10 +111,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ByID": [AgentAssignmentDetails.from_dict(_item) for _item in obj["ByID"]] if obj.get("ByID") is not None else None, - "ByPort": [AgentAssignmentByPort.from_dict(_item) for _item in obj["ByPort"]] if obj.get("ByPort") is not None else None, + "ByID": ( [AgentAssignmentDetails.from_dict(_item) for _item in obj.get("ByID", [])] if obj.get("ByID") is not None else None), + "ByPort": ( [AgentAssignmentByPort.from_dict(_item) for _item in obj.get("ByPort", [])] if obj.get("ByPort") is not None else None), "ByTag": obj.get("ByTag") if obj.get("ByTag") is not None else [], - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_cpu_info.py b/cyperf/models/agent_cpu_info.py index c7ead39..ff56423 100644 --- a/cyperf/models/agent_cpu_info.py +++ b/cyperf/models/agent_cpu_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_features.py b/cyperf/models/agent_features.py index f553129..4631d9d 100644 --- a/cyperf/models/agent_features.py +++ b/cyperf/models/agent_features.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_release.py b/cyperf/models/agent_release.py index e845e16..02852a3 100644 --- a/cyperf/models/agent_release.py +++ b/cyperf/models/agent_release.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_reservation.py b/cyperf/models/agent_reservation.py index 9c0bf21..cfe014e 100644 --- a/cyperf/models/agent_reservation.py +++ b/cyperf/models/agent_reservation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_to_be_rebooted.py b/cyperf/models/agent_to_be_rebooted.py index 04a8bdb..8d8fcf5 100644 --- a/cyperf/models/agent_to_be_rebooted.py +++ b/cyperf/models/agent_to_be_rebooted.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agents_group.py b/cyperf/models/agents_group.py index 85214c9..cce0959 100644 --- a/cyperf/models/agents_group.py +++ b/cyperf/models/agents_group.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/api_link.py b/cyperf/models/api_link.py index 21e0956..ddf20df 100644 --- a/cyperf/models/api_link.py +++ b/cyperf/models/api_link.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_exchange.py b/cyperf/models/app_exchange.py index 9b876fb..79fb1fc 100644 --- a/cyperf/models/app_exchange.py +++ b/cyperf/models/app_exchange.py @@ -24,7 +24,7 @@ from cyperf.models.generic_file import GenericFile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_flow.py b/cyperf/models/app_flow.py index 8f33d2c..e0346b7 100644 --- a/cyperf/models/app_flow.py +++ b/cyperf/models/app_flow.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.api_link import APILink from cyperf.models.app_exchange import AppExchange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -116,10 +116,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "displayId": obj.get("displayId"), "dstAddress": obj.get("dstAddress"), "dstPort": obj.get("dstPort"), - "exchanges": [AppExchange.from_dict(_item) for _item in obj["exchanges"]] if obj.get("exchanges") is not None else None, + "exchanges": ( [AppExchange.from_dict(_item) for _item in obj.get("exchanges", [])] if obj.get("exchanges") is not None else None), "httpHost": obj.get("httpHost"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "srcAddress": obj.get("srcAddress"), "srcPort": obj.get("srcPort"), "transportType": obj.get("transportType") diff --git a/cyperf/models/app_flow_desc.py b/cyperf/models/app_flow_desc.py index 314b556..42cf3cd 100644 --- a/cyperf/models/app_flow_desc.py +++ b/cyperf/models/app_flow_desc.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_flow_input.py b/cyperf/models/app_flow_input.py index 5cfe64d..01af86c 100644 --- a/cyperf/models/app_flow_input.py +++ b/cyperf/models/app_flow_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_flow_input_find_param.py b/cyperf/models/app_flow_input_find_param.py index b2ce642..13bd6f2 100644 --- a/cyperf/models/app_flow_input_find_param.py +++ b/cyperf/models/app_flow_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_desc import AppFlowDesc -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_id.py b/cyperf/models/app_id.py index 42cc397..b40ddf7 100644 --- a/cyperf/models/app_id.py +++ b/cyperf/models/app_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_mode.py b/cyperf/models/app_mode.py index 8939e0e..4dca4fc 100644 --- a/cyperf/models/app_mode.py +++ b/cyperf/models/app_mode.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 0ed0760..e656008 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -34,7 +34,7 @@ from cyperf.models.tls_profile import TLSProfile from cyperf.models.track import Track from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -243,13 +243,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), @@ -260,7 +260,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), @@ -270,9 +270,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), "InheritTLS": obj.get("InheritTLS"), "IsStatelessStream": obj.get("IsStatelessStream"), "IsStreaming": obj.get("IsStreaming"), @@ -286,9 +286,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsMultiFlow": obj.get("SupportsMultiFlow"), "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), - "Tracks": [Track.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None + "Tracks": ( [Track.from_dict(_item) for _item in obj.get("Tracks", [])] if obj.get("Tracks") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index e479cd1..8559031 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -27,7 +27,7 @@ from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -155,14 +155,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "Applications": [Application.from_dict(_item) for _item in obj["Applications"]] if obj.get("Applications") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "Applications": ( [Application.from_dict(_item) for _item in obj.get("Applications", [])] if obj.get("Applications") is not None else None), "DefaultNetworkMapping": NetworkMapping.from_dict(obj["DefaultNetworkMapping"]) if obj.get("DefaultNetworkMapping") is not None else None, "Name": obj.get("Name"), "ObjectivesAndTimeline": ObjectivesAndTimeline.from_dict(obj["ObjectivesAndTimeline"]) if obj.get("ObjectivesAndTimeline") is not None else None, - "add-applications": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-applications"]] if obj.get("add-applications") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, + "add-applications": ( [ExternalResourceInfo.from_dict(_item) for _item in obj.get("add-applications", [])] if obj.get("add-applications") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None), "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/application_type.py b/cyperf/models/application_type.py index 553ebf3..b05b4e4 100644 --- a/cyperf/models/application_type.py +++ b/cyperf/models/application_type.py @@ -29,7 +29,7 @@ from cyperf.models.endpoint import Endpoint from cyperf.models.metadata import Metadata from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -186,22 +186,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Commands": [Command.from_dict(_item) for _item in obj["Commands"]] if obj.get("Commands") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, - "CustomStats": [CustomStat.from_dict(_item) for _item in obj["CustomStats"]] if obj.get("CustomStats") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, + "Commands": ( [Command.from_dict(_item) for _item in obj.get("Commands", [])] if obj.get("Commands") is not None else None), + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), + "CustomStats": ( [CustomStat.from_dict(_item) for _item in obj.get("CustomStats", [])] if obj.get("CustomStats") is not None else None), + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), "Definition": Definition.from_dict(obj["Definition"]) if obj.get("Definition") is not None else None, "Description": obj.get("Description"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "FileName": obj.get("FileName"), "HasBannerCommand": obj.get("HasBannerCommand"), "Md5Content": obj.get("Md5Content"), "Md5Metadata": obj.get("Md5Metadata"), "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "ProtocolFound": obj.get("ProtocolFound"), - "Strikes": [Command.from_dict(_item) for _item in obj["Strikes"]] if obj.get("Strikes") is not None else None, + "Strikes": ( [Command.from_dict(_item) for _item in obj.get("Strikes", [])] if obj.get("Strikes") is not None else None), "SupportsCalibration": obj.get("SupportsCalibration"), "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), @@ -209,7 +209,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/appsec_app.py b/cyperf/models/appsec_app.py index c123c4b..48fa646 100644 --- a/cyperf/models/appsec_app.py +++ b/cyperf/models/appsec_app.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.application import Application from cyperf.models.appsec_app_metadata import AppsecAppMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -128,7 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "appMetadata": AppsecAppMetadata.from_dict(obj["appMetadata"]) if obj.get("appMetadata") is not None else None, "id": obj.get("id"), "lastModified": obj.get("lastModified"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") , diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index 5f9ca53..907a4ae 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.action_metadata import ActionMetadata from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -110,9 +110,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ActionsMetadata": [ActionMetadata.from_dict(_item) for _item in obj["ActionsMetadata"]] if obj.get("ActionsMetadata") is not None else None, - "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, - "keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["keywords"]] if obj.get("keywords") is not None else None + "ActionsMetadata": ( [ActionMetadata.from_dict(_item) for _item in obj.get("ActionsMetadata", [])] if obj.get("ActionsMetadata") is not None else None), + "AppParameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("AppParameters", [])] if obj.get("AppParameters") is not None else None), + "keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("keywords", [])] if obj.get("keywords") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/appsec_attack.py b/cyperf/models/appsec_attack.py index 1ed4013..cbbd65a 100644 --- a/cyperf/models/appsec_attack.py +++ b/cyperf/models/appsec_attack.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.attack import Attack from cyperf.models.attack_metadata import AttackMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -118,7 +118,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Metadata": AttackMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") , diff --git a/cyperf/models/appsec_config.py b/cyperf/models/appsec_config.py index 131598d..f861a8a 100644 --- a/cyperf/models/appsec_config.py +++ b/cyperf/models/appsec_config.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.config import Config -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -117,7 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "configTypeName": obj.get("configTypeName"), "dataModelVersion": obj.get("dataModelVersion"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name") , "links": obj.get("links") diff --git a/cyperf/models/archive_info.py b/cyperf/models/archive_info.py index 002b559..a8ebe18 100644 --- a/cyperf/models/archive_info.py +++ b/cyperf/models/archive_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/array_v2_element_metadata.py b/cyperf/models/array_v2_element_metadata.py index a34f226..b10aac2 100644 --- a/cyperf/models/array_v2_element_metadata.py +++ b/cyperf/models/array_v2_element_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/async_context.py b/cyperf/models/async_context.py index 8f5d63a..bd6749b 100644 --- a/cyperf/models/async_context.py +++ b/cyperf/models/async_context.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/attack.py b/cyperf/models/attack.py index c985108..faf4758 100644 --- a/cyperf/models/attack.py +++ b/cyperf/models/attack.py @@ -33,7 +33,7 @@ from cyperf.models.quic_profile import QUICProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -230,13 +230,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), @@ -247,7 +247,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), @@ -257,15 +257,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "InheritTLS": obj.get("InheritTLS"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "SupportsTLS": obj.get("SupportsTLS"), - "Tracks": [AttackTrack.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, - "create": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["create"]] if obj.get("create") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None + "Tracks": ( [AttackTrack.from_dict(_item) for _item in obj.get("Tracks", [])] if obj.get("Tracks") is not None else None), + "create": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("create", [])] if obj.get("create") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 425cdb7..589854a 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py index fdf6e81..d0306f8 100644 --- a/cyperf/models/attack_metadata.py +++ b/cyperf/models/attack_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,9 +108,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CveCount": obj.get("CveCount"), "Direction": obj.get("Direction"), - "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], - "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), "Severity": obj.get("Severity"), "StrikesCount": obj.get("StrikesCount") , diff --git a/cyperf/models/attack_objectives_and_timeline.py b/cyperf/models/attack_objectives_and_timeline.py index d273ff4..21bd090 100644 --- a/cyperf/models/attack_objectives_and_timeline.py +++ b/cyperf/models/attack_objectives_and_timeline.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.attack_timeline_segment import AttackTimelineSegment -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,8 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "TimelineSegments": [AttackTimelineSegment.from_dict(_item) for _item in obj["TimelineSegments"]] if obj.get("TimelineSegments") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "TimelineSegments": ( [AttackTimelineSegment.from_dict(_item) for _item in obj.get("TimelineSegments", [])] if obj.get("TimelineSegments") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index 53e6fbe..643e4f6 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -27,7 +27,7 @@ from cyperf.models.network_mapping import NetworkMapping from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -155,14 +155,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "Attacks": [Attack.from_dict(_item) for _item in obj["Attacks"]] if obj.get("Attacks") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "Attacks": ( [Attack.from_dict(_item) for _item in obj.get("Attacks", [])] if obj.get("Attacks") is not None else None), "DefaultNetworkMapping": NetworkMapping.from_dict(obj["DefaultNetworkMapping"]) if obj.get("DefaultNetworkMapping") is not None else None, "Name": obj.get("Name"), "ObjectivesAndTimeline": AttackObjectivesAndTimeline.from_dict(obj["ObjectivesAndTimeline"]) if obj.get("ObjectivesAndTimeline") is not None else None, - "add-attacks": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-attacks"]] if obj.get("add-attacks") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, + "add-attacks": ( [ExternalResourceInfo.from_dict(_item) for _item in obj.get("add-attacks", [])] if obj.get("add-attacks") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None), "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/attack_timeline_segment.py b/cyperf/models/attack_timeline_segment.py index 5959878..1d83e28 100644 --- a/cyperf/models/attack_timeline_segment.py +++ b/cyperf/models/attack_timeline_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/attack_track.py b/cyperf/models/attack_track.py index f7aca53..8a266c3 100644 --- a/cyperf/models/attack_track.py +++ b/cyperf/models/attack_track.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.attack_action import AttackAction from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,10 +112,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [AttackAction.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, - "add-actions": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["add-actions"]] if obj.get("add-actions") is not None else None, + "Actions": ( [AttackAction.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), + "add-actions": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("add-actions", [])] if obj.get("add-actions") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/auth_profile.py b/cyperf/models/auth_profile.py index b7f1d20..51584a5 100644 --- a/cyperf/models/auth_profile.py +++ b/cyperf/models/auth_profile.py @@ -26,7 +26,7 @@ from cyperf.models.data_type import DataType from cyperf.models.endpoint import Endpoint from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -149,15 +149,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "FileName": obj.get("FileName"), "Metadata": AuthProfileMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "description": obj.get("description"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "type": obj.get("type") , "links": obj.get("links") diff --git a/cyperf/models/auth_profile_metadata.py b/cyperf/models/auth_profile_metadata.py index 11783cb..213454f 100644 --- a/cyperf/models/auth_profile_metadata.py +++ b/cyperf/models/auth_profile_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.enum import Enum -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index cb29ad2..ccab464 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -24,7 +24,7 @@ from cyperf.models.auth_method_type import AuthMethodType from cyperf.models.params import Params from cyperf.models.simulated_id_p import SimulatedIdP -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,7 +133,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None, "Usernames": obj.get("Usernames") if obj.get("Usernames") is not None else [], "UsernamesParam": Params.from_dict(obj["UsernamesParam"]) if obj.get("UsernamesParam") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/authenticate200_response.py b/cyperf/models/authenticate200_response.py index d400a3f..14d2a9a 100644 --- a/cyperf/models/authenticate200_response.py +++ b/cyperf/models/authenticate200_response.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/authentication_settings.py b/cyperf/models/authentication_settings.py index 239b404..e7db0d2 100644 --- a/cyperf/models/authentication_settings.py +++ b/cyperf/models/authentication_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -119,7 +119,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "KeyFile": Params.from_dict(obj["KeyFile"]) if obj.get("KeyFile") is not None else None, "KeyFilePassword": obj.get("KeyFilePassword"), "SharedKey": obj.get("SharedKey"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/broker.py b/cyperf/models/broker.py index c25ab71..ec2df0c 100644 --- a/cyperf/models/broker.py +++ b/cyperf/models/broker.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/capture_input.py b/cyperf/models/capture_input.py index 4bffce1..4c3fd3e 100644 --- a/cyperf/models/capture_input.py +++ b/cyperf/models/capture_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_input import AppFlowInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CaptureId": obj.get("CaptureId"), - "Flows": [AppFlowInput.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None + "Flows": ( [AppFlowInput.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/capture_input_find_param.py b/cyperf/models/capture_input_find_param.py index 3a17447..e57949b 100644 --- a/cyperf/models/capture_input_find_param.py +++ b/cyperf/models/capture_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_input_find_param import AppFlowInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CaptureId": obj.get("CaptureId"), - "Flows": [AppFlowInputFindParam.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None + "Flows": ( [AppFlowInputFindParam.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/capture_settings.py b/cyperf/models/capture_settings.py index abdc979..889a638 100644 --- a/cyperf/models/capture_settings.py +++ b/cyperf/models/capture_settings.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.log_level import LogLevel -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/category.py b/cyperf/models/category.py index 9d820fd..6c7c153 100644 --- a/cyperf/models/category.py +++ b/cyperf/models/category.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_value import CategoryValue -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "index": obj.get("index"), "name": obj.get("name"), - "values": [CategoryValue.from_dict(_item) for _item in obj["values"]] if obj.get("values") is not None else None + "values": ( [CategoryValue.from_dict(_item) for _item in obj.get("values", [])] if obj.get("values") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/category_filter.py b/cyperf/models/category_filter.py index 3bfd335..4a6025b 100644 --- a/cyperf/models/category_filter.py +++ b/cyperf/models/category_filter.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/category_value.py b/cyperf/models/category_value.py index 890be0f..ec9486b 100644 --- a/cyperf/models/category_value.py +++ b/cyperf/models/category_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/cert_config.py b/cyperf/models/cert_config.py index 591930e..b103db8 100644 --- a/cyperf/models/cert_config.py +++ b/cyperf/models/cert_config.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.conflict import Conflict from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -130,10 +130,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPlaylist": obj.get("isPlaylist"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "playlistColumnName": obj.get("playlistColumnName"), "playlistFilename": obj.get("playlistFilename"), - "resolve-sni-conflicts": [Conflict.from_dict(_item) for _item in obj["resolve-sni-conflicts"]] if obj.get("resolve-sni-conflicts") is not None else None, + "resolve-sni-conflicts": ( [Conflict.from_dict(_item) for _item in obj.get("resolve-sni-conflicts", [])] if obj.get("resolve-sni-conflicts") is not None else None), "sniHostname": obj.get("sniHostname") , "links": obj.get("links") diff --git a/cyperf/models/certificate.py b/cyperf/models/certificate.py index 77536cd..e8a6868 100644 --- a/cyperf/models/certificate.py +++ b/cyperf/models/certificate.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index 45702d2..da9b587 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/choice.py b/cyperf/models/choice.py index dfca643..83aa523 100644 --- a/cyperf/models/choice.py +++ b/cyperf/models/choice.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index 65720fb..5808990 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -26,7 +26,7 @@ from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "CiscoEncapsulation": CiscoEncapsulation.from_dict(obj["CiscoEncapsulation"]) if obj.get("CiscoEncapsulation") is not None else None, "ConnectionProfiles": obj.get("ConnectionProfiles") if obj.get("ConnectionProfiles") is not None else [], "ESPProbeRetryTimeout": obj.get("ESPProbeRetryTimeout"), diff --git a/cyperf/models/cisco_encapsulation.py b/cyperf/models/cisco_encapsulation.py index 79800b9..8917377 100644 --- a/cyperf/models/cisco_encapsulation.py +++ b/cyperf/models/cisco_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DTLSSettings": DTLSSettings.from_dict(obj["DTLSSettings"]) if obj.get("DTLSSettings") is not None else None, "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/clear_ports_ownership_operation.py b/cyperf/models/clear_ports_ownership_operation.py index 2feb535..4083b60 100644 --- a/cyperf/models/clear_ports_ownership_operation.py +++ b/cyperf/models/clear_ports_ownership_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/command.py b/cyperf/models/command.py index f22f09d..a79cd07 100644 --- a/cyperf/models/command.py +++ b/cyperf/models/command.py @@ -24,7 +24,7 @@ from cyperf.models.command_metadata import CommandMetadata from cyperf.models.exchange import Exchange from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -127,12 +127,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionID": obj.get("ActionID"), "Description": obj.get("Description"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "IsStrike": obj.get("IsStrike"), "Metadata": CommandMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index b9af2af..d033c3a 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from cyperf.models.rtp_profile_meta import RTPProfileMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -124,12 +124,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsBanner": obj.get("IsBanner"), "IsForAppTrafficOnly": obj.get("IsForAppTrafficOnly"), "IsStreaming": obj.get("IsStreaming"), - "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, - "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), "RequiresUniqueness": obj.get("RequiresUniqueness"), "Severity": obj.get("Severity"), "SkipAttackGeneration": obj.get("SkipAttackGeneration"), diff --git a/cyperf/models/compute_node.py b/cyperf/models/compute_node.py index 461be34..9327e8b 100644 --- a/cyperf/models/compute_node.py +++ b/cyperf/models/compute_node.py @@ -24,7 +24,7 @@ from cyperf.models.app_mode import AppMode from cyperf.models.health_issue import HealthIssue from cyperf.models.port import Port -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -125,12 +125,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "aggregatedMode": obj.get("aggregatedMode"), "appMode": AppMode.from_dict(obj["appMode"]) if obj.get("appMode") is not None else None, - "healthDetails": [HealthIssue.from_dict(_item) for _item in obj["healthDetails"]] if obj.get("healthDetails") is not None else None, + "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), - "ports": [Port.from_dict(_item) for _item in obj["ports"]] if obj.get("ports") is not None else None, + "ports": ( [Port.from_dict(_item) for _item in obj.get("ports", [])] if obj.get("ports") is not None else None), "serial": obj.get("serial"), "slotNumber": obj.get("slotNumber"), "status": obj.get("status"), diff --git a/cyperf/models/config.py b/cyperf/models/config.py index 2b9a122..e13d3e4 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -27,7 +27,7 @@ from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.expected_disk_space import ExpectedDiskSpace from cyperf.models.network_profile import NetworkProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -140,13 +140,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AttackProfiles": [AttackProfile.from_dict(_item) for _item in obj["AttackProfiles"]] if obj.get("AttackProfiles") is not None else None, + "AttackProfiles": ( [AttackProfile.from_dict(_item) for _item in obj.get("AttackProfiles", [])] if obj.get("AttackProfiles") is not None else None), "ConfigValidation": ConfigValidation.from_dict(obj["ConfigValidation"]) if obj.get("ConfigValidation") is not None else None, "CustomDashboards": CustomDashboards.from_dict(obj["CustomDashboards"]) if obj.get("CustomDashboards") is not None else None, - "ExpectedDiskSpace": [ExpectedDiskSpace.from_dict(_item) for _item in obj["ExpectedDiskSpace"]] if obj.get("ExpectedDiskSpace") is not None else None, - "NetworkProfiles": [NetworkProfile.from_dict(_item) for _item in obj["NetworkProfiles"]] if obj.get("NetworkProfiles") is not None else None, - "TrafficProfiles": [ApplicationProfile.from_dict(_item) for _item in obj["TrafficProfiles"]] if obj.get("TrafficProfiles") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "ExpectedDiskSpace": ( [ExpectedDiskSpace.from_dict(_item) for _item in obj.get("ExpectedDiskSpace", [])] if obj.get("ExpectedDiskSpace") is not None else None), + "NetworkProfiles": ( [NetworkProfile.from_dict(_item) for _item in obj.get("NetworkProfiles", [])] if obj.get("NetworkProfiles") is not None else None), + "TrafficProfiles": ( [ApplicationProfile.from_dict(_item) for _item in obj.get("TrafficProfiles", [])] if obj.get("TrafficProfiles") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "validate": obj.get("validate") if obj.get("validate") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/config_category.py b/cyperf/models/config_category.py index c13b550..f525067 100644 --- a/cyperf/models/config_category.py +++ b/cyperf/models/config_category.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.config_sub_category import ConfigSubCategory -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,8 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "displayName": obj.get("displayName"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "subcategories": [ConfigSubCategory.from_dict(_item) for _item in obj["subcategories"]] if obj.get("subcategories") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "subcategories": ( [ConfigSubCategory.from_dict(_item) for _item in obj.get("subcategories", [])] if obj.get("subcategories") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/config_id.py b/cyperf/models/config_id.py index c4c7d3d..e9143c0 100644 --- a/cyperf/models/config_id.py +++ b/cyperf/models/config_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/config_metadata.py b/cyperf/models/config_metadata.py index fda8b96..eda89e7 100644 --- a/cyperf/models/config_metadata.py +++ b/cyperf/models/config_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.version import Version -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -137,7 +137,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "application": obj.get("application"), "configData": dict( (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["configData"].items() + for _k, _v in (obj.get("configData") or {}).items() ) if obj.get("configData") is not None else None, @@ -149,7 +149,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "lastAccessed": obj.get("lastAccessed"), "lastModified": obj.get("lastModified"), - "linkedResources": [APILink.from_dict(_item) for _item in obj["linkedResources"]] if obj.get("linkedResources") is not None else None, + "linkedResources": ( [APILink.from_dict(_item) for _item in obj.get("linkedResources", [])] if obj.get("linkedResources") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "readonly": obj.get("readonly"), diff --git a/cyperf/models/config_sub_category.py b/cyperf/models/config_sub_category.py index 30e510d..1609ea0 100644 --- a/cyperf/models/config_sub_category.py +++ b/cyperf/models/config_sub_category.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/config_validation.py b/cyperf/models/config_validation.py index 7f80b77..37015e7 100644 --- a/cyperf/models/config_validation.py +++ b/cyperf/models/config_validation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.validation_message import ValidationMessage -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,8 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "IsValidated": obj.get("IsValidated"), - "ValidationMessages": [ValidationMessage.from_dict(_item) for _item in obj["ValidationMessages"]] if obj.get("ValidationMessages") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "ValidationMessages": ( [ValidationMessage.from_dict(_item) for _item in obj.get("ValidationMessages", [])] if obj.get("ValidationMessages") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/conflict.py b/cyperf/models/conflict.py index d9b17ea..b63963d 100644 --- a/cyperf/models/conflict.py +++ b/cyperf/models/conflict.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/connection.py b/cyperf/models/connection.py index 1fe6b20..02a48b7 100644 --- a/cyperf/models/connection.py +++ b/cyperf/models/connection.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.params import Params from cyperf.models.port_settings import PortSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -158,7 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerPort": obj.get("ServerPort"), "Type": obj.get("Type"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/consumer.py b/cyperf/models/consumer.py index d25b871..2e621e6 100644 --- a/cyperf/models/consumer.py +++ b/cyperf/models/consumer.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/controller.py b/cyperf/models/controller.py index 5280471..3de31b8 100644 --- a/cyperf/models/controller.py +++ b/cyperf/models/controller.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.compute_node import ComputeNode from cyperf.models.health_issue import HealthIssue -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -115,11 +115,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": [ComputeNode.from_dict(_item) for _item in obj["computeNodes"]] if obj.get("computeNodes") is not None else None, - "healthDetails": [HealthIssue.from_dict(_item) for _item in obj["healthDetails"]] if obj.get("healthDetails") is not None else None, + "computeNodes": ( [ComputeNode.from_dict(_item) for _item in obj.get("computeNodes", [])] if obj.get("computeNodes") is not None else None), + "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), "serial": obj.get("serial"), "type": obj.get("type") diff --git a/cyperf/models/counted_feature_consumer.py b/cyperf/models/counted_feature_consumer.py index b838daa..9e406ba 100644 --- a/cyperf/models/counted_feature_consumer.py +++ b/cyperf/models/counted_feature_consumer.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/counted_feature_stats.py b/cyperf/models/counted_feature_stats.py index 21a6cf3..ac2906f 100644 --- a/cyperf/models/counted_feature_stats.py +++ b/cyperf/models/counted_feature_stats.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.counted_feature_consumer import CountedFeatureConsumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "availableCount": obj.get("availableCount"), - "consumers": [CountedFeatureConsumer.from_dict(_item) for _item in obj["consumers"]] if obj.get("consumers") is not None else None, + "consumers": ( [CountedFeatureConsumer.from_dict(_item) for _item in obj.get("consumers", [])] if obj.get("consumers") is not None else None), "featureName": obj.get("featureName"), "installedCount": obj.get("installedCount") , diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index 0336667..bb516ef 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_input import ActionInput from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,11 +104,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [ActionInput.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [ActionInput.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "AppName": obj.get("AppName"), "AppType": obj.get("AppType"), "Description": obj.get("Description"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/create_app_or_attack_operation_input.py b/cyperf/models/create_app_or_attack_operation_input.py index 68d03c4..6028d4d 100644 --- a/cyperf/models/create_app_or_attack_operation_input.py +++ b/cyperf/models/create_app_or_attack_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.add_action_info import AddActionInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [AddActionInfo.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [AddActionInfo.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "ResourceURL": obj.get("ResourceURL") , "links": obj.get("links") diff --git a/cyperf/models/custom_dashboards.py b/cyperf/models/custom_dashboards.py index 0946761..080b20c 100644 --- a/cyperf/models/custom_dashboards.py +++ b/cyperf/models/custom_dashboards.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), - "Links": [APILink.from_dict(_item) for _item in obj["Links"]] if obj.get("Links") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "Links": ( [APILink.from_dict(_item) for _item in obj.get("Links", [])] if obj.get("Links") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/custom_import_handler.py b/cyperf/models/custom_import_handler.py index 8f22ecc..8f35a0f 100644 --- a/cyperf/models/custom_import_handler.py +++ b/cyperf/models/custom_import_handler.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/custom_stat.py b/cyperf/models/custom_stat.py index 93dc1c5..eaa3bdf 100644 --- a/cyperf/models/custom_stat.py +++ b/cyperf/models/custom_stat.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/dashboard.py b/cyperf/models/dashboard.py index d201ef0..f62c7b9 100644 --- a/cyperf/models/dashboard.py +++ b/cyperf/models/dashboard.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/data_type.py b/cyperf/models/data_type.py index 7ad320a..ec5c84a 100644 --- a/cyperf/models/data_type.py +++ b/cyperf/models/data_type.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.data_type_values_inner import DataTypeValuesInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Values": [DataTypeValuesInner.from_dict(_item) for _item in obj["Values"]] if obj.get("Values") is not None else None, + "Values": ( [DataTypeValuesInner.from_dict(_item) for _item in obj.get("Values", [])] if obj.get("Values") is not None else None), "id": obj.get("id") , "links": obj.get("links") diff --git a/cyperf/models/data_type_values_inner.py b/cyperf/models/data_type_values_inner.py index 9621755..6e5a6da 100644 --- a/cyperf/models/data_type_values_inner.py +++ b/cyperf/models/data_type_values_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/definition.py b/cyperf/models/definition.py index 02d5c05..0629239 100644 --- a/cyperf/models/definition.py +++ b/cyperf/models/definition.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/delete_input.py b/cyperf/models/delete_input.py index 8aad0a8..490d940 100644 --- a/cyperf/models/delete_input.py +++ b/cyperf/models/delete_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/diagnostic_component.py b/cyperf/models/diagnostic_component.py index 1963d40..5630071 100644 --- a/cyperf/models/diagnostic_component.py +++ b/cyperf/models/diagnostic_component.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.diagnostic_options import DiagnosticOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "componentName": obj.get("componentName"), - "options": [DiagnosticOptions.from_dict(_item) for _item in obj["options"]] if obj.get("options") is not None else None, - "subComponents": [DiagnosticComponent.from_dict(_item) for _item in obj["subComponents"]] if obj.get("subComponents") is not None else None + "options": ( [DiagnosticOptions.from_dict(_item) for _item in obj.get("options", [])] if obj.get("options") is not None else None), + "subComponents": ( [DiagnosticComponent.from_dict(_item) for _item in obj.get("subComponents", [])] if obj.get("subComponents") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/diagnostic_component_context.py b/cyperf/models/diagnostic_component_context.py index 06406a3..0079a66 100644 --- a/cyperf/models/diagnostic_component_context.py +++ b/cyperf/models/diagnostic_component_context.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.diagnostic_component import DiagnosticComponent from cyperf.models.diagnostic_options import DiagnosticOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,8 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "componentList": [DiagnosticComponent.from_dict(_item) for _item in obj["componentList"]] if obj.get("componentList") is not None else None, - "context": [DiagnosticOptions.from_dict(_item) for _item in obj["context"]] if obj.get("context") is not None else None + "componentList": ( [DiagnosticComponent.from_dict(_item) for _item in obj.get("componentList", [])] if obj.get("componentList") is not None else None), + "context": ( [DiagnosticOptions.from_dict(_item) for _item in obj.get("context", [])] if obj.get("context") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/diagnostic_options.py b/cyperf/models/diagnostic_options.py index d32efef..739aa53 100644 --- a/cyperf/models/diagnostic_options.py +++ b/cyperf/models/diagnostic_options.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/disk_usage.py b/cyperf/models/disk_usage.py index 1c72b18..10b4637 100644 --- a/cyperf/models/disk_usage.py +++ b/cyperf/models/disk_usage.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.consumer import Consumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -129,10 +129,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "available": obj.get("available"), - "consumers": [Consumer.from_dict(_item) for _item in obj["consumers"]] if obj.get("consumers") is not None else None, + "consumers": ( [Consumer.from_dict(_item) for _item in obj.get("consumers", [])] if obj.get("consumers") is not None else None), "criticalDiskSpace": obj.get("criticalDiskSpace"), "criticalThreshold": obj.get("criticalThreshold"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "lowDiskSpace": obj.get("lowDiskSpace"), "lowThreshold": obj.get("lowThreshold"), "message": obj.get("message"), diff --git a/cyperf/models/dns_resolver.py b/cyperf/models/dns_resolver.py index 3bd3840..c6969f9 100644 --- a/cyperf/models/dns_resolver.py +++ b/cyperf/models/dns_resolver.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.name_server import NameServer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -105,8 +105,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "cacheTimeout": obj.get("cacheTimeout"), "enablePerconnect": obj.get("enablePerconnect"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "nameServers": [NameServer.from_dict(_item) for _item in obj["nameServers"]] if obj.get("nameServers") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "nameServers": ( [NameServer.from_dict(_item) for _item in obj.get("nameServers", [])] if obj.get("nameServers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/dns_server.py b/cyperf/models/dns_server.py index aeaee64..dfb5eaf 100644 --- a/cyperf/models/dns_server.py +++ b/cyperf/models/dns_server.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/dtls_settings.py b/cyperf/models/dtls_settings.py index f60a139..4ea3888 100644 --- a/cyperf/models/dtls_settings.py +++ b/cyperf/models/dtls_settings.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "TLSClientProfile": TLSProfile.from_dict(obj["TLSClientProfile"]) if obj.get("TLSClientProfile") is not None else None, "UDPProfile": UdpProfile.from_dict(obj["UDPProfile"]) if obj.get("UDPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index 184d78b..b9d75e2 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -25,7 +25,7 @@ from cyperf.models.health_check_config import HealthCheckConfig from cyperf.models.params import Params from cyperf.models.pep_dut import PepDUT -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -234,7 +234,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "UseRealHost": obj.get("UseRealHost"), "active": obj.get("active"), "host": obj.get("host"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/edit_action_input.py b/cyperf/models/edit_action_input.py index ce06678..660ad15 100644 --- a/cyperf/models/edit_action_input.py +++ b/cyperf/models/edit_action_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionIndex": obj.get("ActionIndex"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 6609901..33e5063 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -27,7 +27,7 @@ from cyperf.models.rename_input import RenameInput from cyperf.models.reorder_action_input import ReorderActionInput from cyperf.models.reorder_exchanges_input import ReorderExchangesInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -149,16 +149,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AddInputs": [AddInput.from_dict(_item) for _item in obj["AddInputs"]] if obj.get("AddInputs") is not None else None, + "AddInputs": ( [AddInput.from_dict(_item) for _item in obj.get("AddInputs", [])] if obj.get("AddInputs") is not None else None), "AppDescription": obj.get("AppDescription"), "AppId": obj.get("AppId"), "AppName": obj.get("AppName"), - "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, - "DeleteInputs": [DeleteInput.from_dict(_item) for _item in obj["DeleteInputs"]] if obj.get("DeleteInputs") is not None else None, - "EditActionInputs": [EditActionInput.from_dict(_item) for _item in obj["EditActionInputs"]] if obj.get("EditActionInputs") is not None else None, - "RenameInputs": [RenameInput.from_dict(_item) for _item in obj["RenameInputs"]] if obj.get("RenameInputs") is not None else None, - "ReorderActionsInputs": [ReorderActionInput.from_dict(_item) for _item in obj["ReorderActionsInputs"]] if obj.get("ReorderActionsInputs") is not None else None, - "ReorderExchangesInputs": [ReorderExchangesInput.from_dict(_item) for _item in obj["ReorderExchangesInputs"]] if obj.get("ReorderExchangesInputs") is not None else None + "AppParameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("AppParameters", [])] if obj.get("AppParameters") is not None else None), + "DeleteInputs": ( [DeleteInput.from_dict(_item) for _item in obj.get("DeleteInputs", [])] if obj.get("DeleteInputs") is not None else None), + "EditActionInputs": ( [EditActionInput.from_dict(_item) for _item in obj.get("EditActionInputs", [])] if obj.get("EditActionInputs") is not None else None), + "RenameInputs": ( [RenameInput.from_dict(_item) for _item in obj.get("RenameInputs", [])] if obj.get("RenameInputs") is not None else None), + "ReorderActionsInputs": ( [ReorderActionInput.from_dict(_item) for _item in obj.get("ReorderActionsInputs", [])] if obj.get("ReorderActionsInputs") is not None else None), + "ReorderExchangesInputs": ( [ReorderExchangesInput.from_dict(_item) for _item in obj.get("ReorderExchangesInputs", [])] if obj.get("ReorderExchangesInputs") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/effective_ports.py b/cyperf/models/effective_ports.py index ff7da4f..3659bee 100644 --- a/cyperf/models/effective_ports.py +++ b/cyperf/models/effective_ports.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/emulated_router.py b/cyperf/models/emulated_router.py index f7ca59f..4d93cec 100644 --- a/cyperf/models/emulated_router.py +++ b/cyperf/models/emulated_router.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.emulated_router_range import EmulatedRouterRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,9 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "EmulatedRouterRanges": [EmulatedRouterRange.from_dict(_item) for _item in obj["EmulatedRouterRanges"]] if obj.get("EmulatedRouterRanges") is not None else None, + "EmulatedRouterRanges": ( [EmulatedRouterRange.from_dict(_item) for _item in obj.get("EmulatedRouterRanges", [])] if obj.get("EmulatedRouterRanges") is not None else None), "Enabled": obj.get("Enabled"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 6276f1d..5784f38 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -25,7 +25,7 @@ from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -172,7 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetMask": obj.get("NetMask"), "NetMaskAuto": obj.get("NetMaskAuto"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent"), "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , diff --git a/cyperf/models/emulated_subnet_config.py b/cyperf/models/emulated_subnet_config.py index 15cfe0e..cb47de6 100644 --- a/cyperf/models/emulated_subnet_config.py +++ b/cyperf/models/emulated_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/endpoint.py b/cyperf/models/endpoint.py index d308c8b..f067242 100644 --- a/cyperf/models/endpoint.py +++ b/cyperf/models/endpoint.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.network_mapping import NetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, "Type": obj.get("Type"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/entitlement_code_info.py b/cyperf/models/entitlement_code_info.py index c86bc1e..a56490d 100644 --- a/cyperf/models/entitlement_code_info.py +++ b/cyperf/models/entitlement_code_info.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.activation_code_info import ActivationCodeInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "activationCodes": [ActivationCodeInfo.from_dict(_item) for _item in obj["activationCodes"]] if obj.get("activationCodes") is not None else None, + "activationCodes": ( [ActivationCodeInfo.from_dict(_item) for _item in obj.get("activationCodes", [])] if obj.get("activationCodes") is not None else None), "entitlementCode": obj.get("entitlementCode") , "links": obj.get("links") diff --git a/cyperf/models/entitlement_code_request.py b/cyperf/models/entitlement_code_request.py index 385bd32..0c98cba 100644 --- a/cyperf/models/entitlement_code_request.py +++ b/cyperf/models/entitlement_code_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/enum.py b/cyperf/models/enum.py index c14401a..b5435d5 100644 --- a/cyperf/models/enum.py +++ b/cyperf/models/enum.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.choice import Choice -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Choices": [Choice.from_dict(_item) for _item in obj["Choices"]] if obj.get("Choices") is not None else None, + "Choices": ( [Choice.from_dict(_item) for _item in obj.get("Choices", [])] if obj.get("Choices") is not None else None), "Default": obj.get("Default") , "links": obj.get("links") diff --git a/cyperf/models/error_description.py b/cyperf/models/error_description.py index f6c936d..9cb79f2 100644 --- a/cyperf/models/error_description.py +++ b/cyperf/models/error_description.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/error_response.py b/cyperf/models/error_response.py index 65c4f2a..f18fe1b 100644 --- a/cyperf/models/error_response.py +++ b/cyperf/models/error_response.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/esp_over_udp_settings.py b/cyperf/models/esp_over_udp_settings.py index 171a14d..11ba156 100644 --- a/cyperf/models/esp_over_udp_settings.py +++ b/cyperf/models/esp_over_udp_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "UDPProfile": UdpProfile.from_dict(obj["UDPProfile"]) if obj.get("UDPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index ee02174..964ed14 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.static_arp_entry import StaticARPEntry -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,8 +133,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MacIncr": obj.get("MacIncr"), "MacStart": obj.get("MacStart"), "OneMacPerIP": obj.get("OneMacPerIP"), - "StaticARPTable": [StaticARPEntry.from_dict(_item) for _item in obj["StaticARPTable"]] if obj.get("StaticARPTable") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "StaticARPTable": ( [StaticARPEntry.from_dict(_item) for _item in obj.get("StaticARPTable", [])] if obj.get("StaticARPTable") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent") , "links": obj.get("links") diff --git a/cyperf/models/eula_details.py b/cyperf/models/eula_details.py index 93c4f29..6f3f952 100644 --- a/cyperf/models/eula_details.py +++ b/cyperf/models/eula_details.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/eula_summary.py b/cyperf/models/eula_summary.py index 61648f1..4342389 100644 --- a/cyperf/models/eula_summary.py +++ b/cyperf/models/eula_summary.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/exchange.py b/cyperf/models/exchange.py index f4d8666..c6914fd 100644 --- a/cyperf/models/exchange.py +++ b/cyperf/models/exchange.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/exchange_order.py b/cyperf/models/exchange_order.py index 9d10b96..6ee8c5e 100644 --- a/cyperf/models/exchange_order.py +++ b/cyperf/models/exchange_order.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/exchange_payload.py b/cyperf/models/exchange_payload.py index 3b9acaa..6d98999 100644 --- a/cyperf/models/exchange_payload.py +++ b/cyperf/models/exchange_payload.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space.py b/cyperf/models/expected_disk_space.py index 88075fa..10fe944 100644 --- a/cyperf/models/expected_disk_space.py +++ b/cyperf/models/expected_disk_space.py @@ -23,7 +23,7 @@ from cyperf.models.expected_disk_space_message import ExpectedDiskSpaceMessage from cyperf.models.expected_disk_space_pretty_size import ExpectedDiskSpacePrettySize from cyperf.models.expected_disk_space_size import ExpectedDiskSpaceSize -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_message.py b/cyperf/models/expected_disk_space_message.py index 69c90c3..c68c435 100644 --- a/cyperf/models/expected_disk_space_message.py +++ b/cyperf/models/expected_disk_space_message.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_pretty_size.py b/cyperf/models/expected_disk_space_pretty_size.py index 17c689a..f616efb 100644 --- a/cyperf/models/expected_disk_space_pretty_size.py +++ b/cyperf/models/expected_disk_space_pretty_size.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_size.py b/cyperf/models/expected_disk_space_size.py index c840dfd..4cbadb4 100644 --- a/cyperf/models/expected_disk_space_size.py +++ b/cyperf/models/expected_disk_space_size.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/export_all_operation.py b/cyperf/models/export_all_operation.py index 80d08f2..369929b 100644 --- a/cyperf/models/export_all_operation.py +++ b/cyperf/models/export_all_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_id import ConfigId -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "configIds": [ConfigId.from_dict(_item) for _item in obj["configIds"]] if obj.get("configIds") is not None else None + "configIds": ( [ConfigId.from_dict(_item) for _item in obj.get("configIds", [])] if obj.get("configIds") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/export_apps_operation_input.py b/cyperf/models/export_apps_operation_input.py index 1c58259..fd49745 100644 --- a/cyperf/models/export_apps_operation_input.py +++ b/cyperf/models/export_apps_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_id import AppId -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "appIds": [AppId.from_dict(_item) for _item in obj["appIds"]] if obj.get("appIds") is not None else None + "appIds": ( [AppId.from_dict(_item) for _item in obj.get("appIds", [])] if obj.get("appIds") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/export_files_operation_input.py b/cyperf/models/export_files_operation_input.py index 7f7de67..31aeba9 100644 --- a/cyperf/models/export_files_operation_input.py +++ b/cyperf/models/export_files_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.export_files_request import ExportFilesRequest -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,13 +95,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "exportFilesRequestsByAgent": dict( - (_k, + "exportFilesRequestsByAgent": ( + { + _k: ( [ExportFilesRequest.from_dict(_item) for _item in _v] - if _v is not None - else None - ) - for _k, _v in obj.get("exportFilesRequestsByAgent", {}).items() + if _v is not None else None + ) + for _k, _v in (obj.get("exportFilesRequestsByAgent") or {}).items() + } ), "timeout": obj.get("timeout") , diff --git a/cyperf/models/export_files_request.py b/cyperf/models/export_files_request.py index eec9792..03dacf9 100644 --- a/cyperf/models/export_files_request.py +++ b/cyperf/models/export_files_request.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.required_file_types import RequiredFileTypes -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/export_package_operation.py b/cyperf/models/export_package_operation.py index cd8660e..c3f2bd9 100644 --- a/cyperf/models/export_package_operation.py +++ b/cyperf/models/export_package_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/external_resource_info.py b/cyperf/models/external_resource_info.py index 1878fa6..3fdb497 100644 --- a/cyperf/models/external_resource_info.py +++ b/cyperf/models/external_resource_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/f5_encapsulation.py b/cyperf/models/f5_encapsulation.py index 7ed8f2c..ed73979 100644 --- a/cyperf/models/f5_encapsulation.py +++ b/cyperf/models/f5_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PPPOverDTLSEnabled": obj.get("PPPOverDTLSEnabled"), "PPPOverDTLSSettings": DTLSSettings.from_dict(obj["PPPOverDTLSSettings"]) if obj.get("PPPOverDTLSSettings") is not None else None, "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/f5_settings.py b/cyperf/models/f5_settings.py index 4d9d8f7..d437ade 100644 --- a/cyperf/models/f5_settings.py +++ b/cyperf/models/f5_settings.py @@ -26,7 +26,7 @@ from cyperf.models.f5_encapsulation import F5Encapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "F5Encapsulation": F5Encapsulation.from_dict(obj["F5Encapsulation"]) if obj.get("F5Encapsulation") is not None else None, "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, "VPNGateway": obj.get("VPNGateway") diff --git a/cyperf/models/feature.py b/cyperf/models/feature.py index 9af1a44..5698b78 100644 --- a/cyperf/models/feature.py +++ b/cyperf/models/feature.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from cyperf.models.feature_reservation import FeatureReservation -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/feature_reservation.py b/cyperf/models/feature_reservation.py index 7869617..916ae58 100644 --- a/cyperf/models/feature_reservation.py +++ b/cyperf/models/feature_reservation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/feature_reservation_reserve.py b/cyperf/models/feature_reservation_reserve.py index bd1699c..4c93cec 100644 --- a/cyperf/models/feature_reservation_reserve.py +++ b/cyperf/models/feature_reservation_reserve.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/file_metadata.py b/cyperf/models/file_metadata.py index e27a93d..d68e1bd 100644 --- a/cyperf/models/file_metadata.py +++ b/cyperf/models/file_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index 43e3f5f..8ce2752 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/filter.py b/cyperf/models/filter.py index 037e1db..8a40b69 100644 --- a/cyperf/models/filter.py +++ b/cyperf/models/filter.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/filtered_stat.py b/cyperf/models/filtered_stat.py index 74800d5..dfacd06 100644 --- a/cyperf/models/filtered_stat.py +++ b/cyperf/models/filtered_stat.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.filter import Filter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "filters": [Filter.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "filters": ( [Filter.from_dict(_item) for _item in obj.get("filters", [])] if obj.get("filters") is not None else None), "name": obj.get("name") , "links": obj.get("links") diff --git a/cyperf/models/find_param_matches_operation.py b/cyperf/models/find_param_matches_operation.py index 7a122e4..92eee16 100644 --- a/cyperf/models/find_param_matches_operation.py +++ b/cyperf/models/find_param_matches_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_input_find_param import ActionInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [ActionInputFindParam.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [ActionInputFindParam.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "AppId": obj.get("AppId"), "MatchLocation": obj.get("MatchLocation") if obj.get("MatchLocation") is not None else [], "Pattern": obj.get("Pattern") diff --git a/cyperf/models/fortinet_encapsulation.py b/cyperf/models/fortinet_encapsulation.py index e1526ba..860b9c5 100644 --- a/cyperf/models/fortinet_encapsulation.py +++ b/cyperf/models/fortinet_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PPPOverDTLSEnabled": obj.get("PPPOverDTLSEnabled"), "PPPOverDTLSSettings": DTLSSettings.from_dict(obj["PPPOverDTLSSettings"]) if obj.get("PPPOverDTLSSettings") is not None else None, "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/fortinet_settings.py b/cyperf/models/fortinet_settings.py index a772066..b5a6676 100644 --- a/cyperf/models/fortinet_settings.py +++ b/cyperf/models/fortinet_settings.py @@ -26,7 +26,7 @@ from cyperf.models.fortinet_encapsulation import FortinetEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "FortinetEncapsulation": FortinetEncapsulation.from_dict(obj["FortinetEncapsulation"]) if obj.get("FortinetEncapsulation") is not None else None, "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, "VPNGateway": obj.get("VPNGateway") diff --git a/cyperf/models/fulfillment_request.py b/cyperf/models/fulfillment_request.py index f4c7704..572bbe3 100644 --- a/cyperf/models/fulfillment_request.py +++ b/cyperf/models/fulfillment_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generate_all_operation.py b/cyperf/models/generate_all_operation.py index b29e15f..e358dfa 100644 --- a/cyperf/models/generate_all_operation.py +++ b/cyperf/models/generate_all_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generate_csv_reports_operation.py b/cyperf/models/generate_csv_reports_operation.py index 55de009..0b3a613 100644 --- a/cyperf/models/generate_csv_reports_operation.py +++ b/cyperf/models/generate_csv_reports_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.filtered_stat import FilteredStat -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -100,7 +100,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "forceGenerate": obj.get("forceGenerate"), "from": obj.get("from"), "interval": obj.get("interval"), - "stats": [FilteredStat.from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": ( [FilteredStat.from_dict(_item) for _item in obj.get("stats", [])] if obj.get("stats") is not None else None), "to": obj.get("to"), "useRelativeTime": obj.get("useRelativeTime") , diff --git a/cyperf/models/generate_pdf_report_operation.py b/cyperf/models/generate_pdf_report_operation.py index beaf775..24a453a 100644 --- a/cyperf/models/generate_pdf_report_operation.py +++ b/cyperf/models/generate_pdf_report_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generic_file.py b/cyperf/models/generic_file.py index 3a43762..dec088b 100644 --- a/cyperf/models/generic_file.py +++ b/cyperf/models/generic_file.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.file_metadata import FileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -123,7 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "options": dict( (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["options"].items() + for _k, _v in (obj.get("options") or {}).items() ) if obj.get("options") is not None else None, diff --git a/cyperf/models/get_agents200_response.py b/cyperf/models/get_agents200_response.py index 64017a2..9f2e109 100644 --- a/cyperf/models/get_agents200_response.py +++ b/cyperf/models/get_agents200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetAgents200ResponseOneOf + + + try: instance.actual_instance = GetAgents200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_agents200_response_one_of.py b/cyperf/models/get_agents200_response_one_of.py index a235b13..ac0fbb5 100644 --- a/cyperf/models/get_agents200_response_one_of.py +++ b/cyperf/models/get_agents200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent import Agent -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Agent.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Agent.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_agents_tags200_response.py b/cyperf/models/get_agents_tags200_response.py index db1913f..b75c755 100644 --- a/cyperf/models/get_agents_tags200_response.py +++ b/cyperf/models/get_agents_tags200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetAgentsTags200ResponseOneOf + + + try: instance.actual_instance = GetAgentsTags200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_agents_tags200_response_one_of.py b/cyperf/models/get_agents_tags200_response_one_of.py index e753852..52df7eb 100644 --- a/cyperf/models/get_agents_tags200_response_one_of.py +++ b/cyperf/models/get_agents_tags200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agents_group import AgentsGroup -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AgentsGroup.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AgentsGroup.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_apps_operation.py b/cyperf/models/get_apps_operation.py index 39d6b86..1da38fe 100644 --- a/cyperf/models/get_apps_operation.py +++ b/cyperf/models/get_apps_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -106,12 +106,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), "filterMode": obj.get("filterMode"), "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), - "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), "take": obj.get("take") , "links": obj.get("links") diff --git a/cyperf/models/get_async_operation_result200_response.py b/cyperf/models/get_async_operation_result200_response.py index 01dee7c..d4473b8 100644 --- a/cyperf/models/get_async_operation_result200_response.py +++ b/cyperf/models/get_async_operation_result200_response.py @@ -98,23 +98,35 @@ def from_json(cls, json_str: str) -> Self: match = 0 # deserialize data into EntitlementCodeInfo + + + try: instance.actual_instance = EntitlementCodeInfo.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into ActivationCodeInfo + + + try: instance.actual_instance = ActivationCodeInfo.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into CountedFeatureStats + + + try: instance.actual_instance = CountedFeatureStats.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_attacks_operation.py b/cyperf/models/get_attacks_operation.py index 07f9d35..02528b7 100644 --- a/cyperf/models/get_attacks_operation.py +++ b/cyperf/models/get_attacks_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -106,12 +106,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), "filterMode": obj.get("filterMode"), "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), - "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), "take": obj.get("take") , "links": obj.get("links") diff --git a/cyperf/models/get_brokers200_response.py b/cyperf/models/get_brokers200_response.py index 953b4b9..af1490a 100644 --- a/cyperf/models/get_brokers200_response.py +++ b/cyperf/models/get_brokers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetBrokers200ResponseOneOf + + + try: instance.actual_instance = GetBrokers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_brokers200_response_one_of.py b/cyperf/models/get_brokers200_response_one_of.py index 8af1ac1..109a749 100644 --- a/cyperf/models/get_brokers200_response_one_of.py +++ b/cyperf/models/get_brokers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.broker import Broker -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Broker.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Broker.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_categories_operation.py b/cyperf/models/get_categories_operation.py index ca4f360..14a6b40 100644 --- a/cyperf/models/get_categories_operation.py +++ b/cyperf/models/get_categories_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "filter": [CategoryFilter.from_dict(_item) for _item in obj["filter"]] if obj.get("filter") is not None else None + "filter": ( [CategoryFilter.from_dict(_item) for _item in obj.get("filter", [])] if obj.get("filter") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/get_config_categorie_subcategories200_response.py b/cyperf/models/get_config_categorie_subcategories200_response.py index 3dc6fde..09ccfda 100644 --- a/cyperf/models/get_config_categorie_subcategories200_response.py +++ b/cyperf/models/get_config_categorie_subcategories200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetConfigCategorieSubcategories200ResponseOneOf + + + try: instance.actual_instance = GetConfigCategorieSubcategories200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py index 81c5642..4538f05 100644 --- a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py +++ b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_sub_category import ConfigSubCategory -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ConfigSubCategory.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ConfigSubCategory.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_config_categories200_response.py b/cyperf/models/get_config_categories200_response.py index 40dc785..44e9a1b 100644 --- a/cyperf/models/get_config_categories200_response.py +++ b/cyperf/models/get_config_categories200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetConfigCategories200ResponseOneOf + + + try: instance.actual_instance = GetConfigCategories200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_config_categories200_response_one_of.py b/cyperf/models/get_config_categories200_response_one_of.py index dacddb4..9cc0398 100644 --- a/cyperf/models/get_config_categories200_response_one_of.py +++ b/cyperf/models/get_config_categories200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_category import ConfigCategory -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ConfigCategory.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ConfigCategory.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_configs200_response.py b/cyperf/models/get_configs200_response.py index c900452..45826c3 100644 --- a/cyperf/models/get_configs200_response.py +++ b/cyperf/models/get_configs200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetConfigs200ResponseOneOf + + + try: instance.actual_instance = GetConfigs200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_configs200_response_one_of.py b/cyperf/models/get_configs200_response_one_of.py index f755da5..9732c55 100644 --- a/cyperf/models/get_configs200_response_one_of.py +++ b/cyperf/models/get_configs200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_metadata import ConfigMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ConfigMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ConfigMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_controllers200_response.py b/cyperf/models/get_controllers200_response.py index 39dcad6..2e68d81 100644 --- a/cyperf/models/get_controllers200_response.py +++ b/cyperf/models/get_controllers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetControllers200ResponseOneOf + + + try: instance.actual_instance = GetControllers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_controllers200_response_one_of.py b/cyperf/models/get_controllers200_response_one_of.py index d879394..07aae2d 100644 --- a/cyperf/models/get_controllers200_response_one_of.py +++ b/cyperf/models/get_controllers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.controller import Controller -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Controller.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Controller.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_disk_usage_consumers200_response.py b/cyperf/models/get_disk_usage_consumers200_response.py index da65111..2a8ee57 100644 --- a/cyperf/models/get_disk_usage_consumers200_response.py +++ b/cyperf/models/get_disk_usage_consumers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetDiskUsageConsumers200ResponseOneOf + + + try: instance.actual_instance = GetDiskUsageConsumers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_disk_usage_consumers200_response_one_of.py b/cyperf/models/get_disk_usage_consumers200_response_one_of.py index ff92ced..b102098 100644 --- a/cyperf/models/get_disk_usage_consumers200_response_one_of.py +++ b/cyperf/models/get_disk_usage_consumers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.consumer import Consumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Consumer.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Consumer.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_license_async_operation_result200_response.py b/cyperf/models/get_license_async_operation_result200_response.py index 1d93222..1dc2334 100644 --- a/cyperf/models/get_license_async_operation_result200_response.py +++ b/cyperf/models/get_license_async_operation_result200_response.py @@ -82,11 +82,15 @@ def from_json(cls, json_str: str) -> Self: match = 0 # deserialize data into License + + + try: instance.actual_instance = License.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_license_servers200_response.py b/cyperf/models/get_license_servers200_response.py index fde5477..d1d2606 100644 --- a/cyperf/models/get_license_servers200_response.py +++ b/cyperf/models/get_license_servers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetLicenseServers200ResponseOneOf + + + try: instance.actual_instance = GetLicenseServers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_license_servers200_response_one_of.py b/cyperf/models/get_license_servers200_response_one_of.py index 99a5271..75dfe59 100644 --- a/cyperf/models/get_license_servers200_response_one_of.py +++ b/cyperf/models/get_license_servers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.license_server_metadata import LicenseServerMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [LicenseServerMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [LicenseServerMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_notifications200_response.py b/cyperf/models/get_notifications200_response.py index d6e5954..847fdac 100644 --- a/cyperf/models/get_notifications200_response.py +++ b/cyperf/models/get_notifications200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetNotifications200ResponseOneOf + + + try: instance.actual_instance = GetNotifications200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_notifications200_response_one_of.py b/cyperf/models/get_notifications200_response_one_of.py index 8b51284..6e61e3e 100644 --- a/cyperf/models/get_notifications200_response_one_of.py +++ b/cyperf/models/get_notifications200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.notification import Notification -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Notification.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Notification.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_application_types200_response.py b/cyperf/models/get_resources_application_types200_response.py index deac8bf..92d9d1a 100644 --- a/cyperf/models/get_resources_application_types200_response.py +++ b/cyperf/models/get_resources_application_types200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesApplicationTypes200ResponseOneOf + + + try: instance.actual_instance = GetResourcesApplicationTypes200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_application_types200_response_one_of.py b/cyperf/models/get_resources_application_types200_response_one_of.py index ed7388b..a4778c2 100644 --- a/cyperf/models/get_resources_application_types200_response_one_of.py +++ b/cyperf/models/get_resources_application_types200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.application_type import ApplicationType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ApplicationType.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ApplicationType.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_apps200_response.py b/cyperf/models/get_resources_apps200_response.py index bf83700..0b9557c 100644 --- a/cyperf/models/get_resources_apps200_response.py +++ b/cyperf/models/get_resources_apps200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesApps200ResponseOneOf + + + try: instance.actual_instance = GetResourcesApps200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_apps200_response_one_of.py b/cyperf/models/get_resources_apps200_response_one_of.py index 5894e72..e36deea 100644 --- a/cyperf/models/get_resources_apps200_response_one_of.py +++ b/cyperf/models/get_resources_apps200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app import AppsecApp -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AppsecApp.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AppsecApp.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_attacks200_response.py b/cyperf/models/get_resources_attacks200_response.py index 8d430d3..4227e3d 100644 --- a/cyperf/models/get_resources_attacks200_response.py +++ b/cyperf/models/get_resources_attacks200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesAttacks200ResponseOneOf + + + try: instance.actual_instance = GetResourcesAttacks200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_attacks200_response_one_of.py b/cyperf/models/get_resources_attacks200_response_one_of.py index 25dcb6e..520f321 100644 --- a/cyperf/models/get_resources_attacks200_response_one_of.py +++ b/cyperf/models/get_resources_attacks200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_attack import AppsecAttack -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AppsecAttack.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AppsecAttack.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_auth_profiles200_response.py b/cyperf/models/get_resources_auth_profiles200_response.py index 684ac08..e14d010 100644 --- a/cyperf/models/get_resources_auth_profiles200_response.py +++ b/cyperf/models/get_resources_auth_profiles200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesAuthProfiles200ResponseOneOf + + + try: instance.actual_instance = GetResourcesAuthProfiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_auth_profiles200_response_one_of.py b/cyperf/models/get_resources_auth_profiles200_response_one_of.py index d872515..a9d5db7 100644 --- a/cyperf/models/get_resources_auth_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_auth_profiles200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.auth_profile import AuthProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AuthProfile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AuthProfile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_certificates200_response.py b/cyperf/models/get_resources_certificates200_response.py index 18e5e6d..3847182 100644 --- a/cyperf/models/get_resources_certificates200_response.py +++ b/cyperf/models/get_resources_certificates200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesCertificates200ResponseOneOf + + + try: instance.actual_instance = GetResourcesCertificates200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_certificates200_response_one_of.py b/cyperf/models/get_resources_certificates200_response_one_of.py index f92e9ec..e89b61a 100644 --- a/cyperf/models/get_resources_certificates200_response_one_of.py +++ b/cyperf/models/get_resources_certificates200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.generic_file import GenericFile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [GenericFile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [GenericFile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_custom_import_operations200_response.py b/cyperf/models/get_resources_custom_import_operations200_response.py index 35f9ede..2cc4b11 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response.py +++ b/cyperf/models/get_resources_custom_import_operations200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesCustomImportOperations200ResponseOneOf + + + try: instance.actual_instance = GetResourcesCustomImportOperations200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py index 08c1f03..5c4ad31 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py +++ b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.custom_import_handler import CustomImportHandler -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [CustomImportHandler.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [CustomImportHandler.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_http_profiles200_response.py b/cyperf/models/get_resources_http_profiles200_response.py index 7d1dd09..a5ca4c2 100644 --- a/cyperf/models/get_resources_http_profiles200_response.py +++ b/cyperf/models/get_resources_http_profiles200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesHttpProfiles200ResponseOneOf + + + try: instance.actual_instance = GetResourcesHttpProfiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_http_profiles200_response_one_of.py b/cyperf/models/get_resources_http_profiles200_response_one_of.py index c5f8ed4..85dda5f 100644 --- a/cyperf/models/get_resources_http_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_http_profiles200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.http_profile import HTTPProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [HTTPProfile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [HTTPProfile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_result_files200_response.py b/cyperf/models/get_result_files200_response.py index 60e849a..8107fb7 100644 --- a/cyperf/models/get_result_files200_response.py +++ b/cyperf/models/get_result_files200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultFiles200ResponseOneOf + + + try: instance.actual_instance = GetResultFiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_result_files200_response_one_of.py b/cyperf/models/get_result_files200_response_one_of.py index 57d475a..4c8f718 100644 --- a/cyperf/models/get_result_files200_response_one_of.py +++ b/cyperf/models/get_result_files200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.result_file_metadata import ResultFileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultFileMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultFileMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_result_stats200_response.py b/cyperf/models/get_result_stats200_response.py index 6252440..e13e44f 100644 --- a/cyperf/models/get_result_stats200_response.py +++ b/cyperf/models/get_result_stats200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultStats200ResponseOneOf + + + try: instance.actual_instance = GetResultStats200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_result_stats200_response_one_of.py b/cyperf/models/get_result_stats200_response_one_of.py index 901f7ec..fadc58e 100644 --- a/cyperf/models/get_result_stats200_response_one_of.py +++ b/cyperf/models/get_result_stats200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stats_result import StatsResult -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [StatsResult.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [StatsResult.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_results200_response.py b/cyperf/models/get_results200_response.py index 36c09a2..f30f6a4 100644 --- a/cyperf/models/get_results200_response.py +++ b/cyperf/models/get_results200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResults200ResponseOneOf + + + try: instance.actual_instance = GetResults200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_results200_response_one_of.py b/cyperf/models/get_results200_response_one_of.py index ab6a681..660a86f 100644 --- a/cyperf/models/get_results200_response_one_of.py +++ b/cyperf/models/get_results200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.result_metadata import ResultMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_results_tags200_response.py b/cyperf/models/get_results_tags200_response.py index a046c9b..d07c8f6 100644 --- a/cyperf/models/get_results_tags200_response.py +++ b/cyperf/models/get_results_tags200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultsTags200ResponseOneOf + + + try: instance.actual_instance = GetResultsTags200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_results_tags200_response_one_of.py b/cyperf/models/get_results_tags200_response_one_of.py index 0d4b261..6770a33 100644 --- a/cyperf/models/get_results_tags200_response_one_of.py +++ b/cyperf/models/get_results_tags200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.results_group import ResultsGroup -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultsGroup.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultsGroup.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_session_meta200_response.py b/cyperf/models/get_session_meta200_response.py index 45e5548..dcdb316 100644 --- a/cyperf/models/get_session_meta200_response.py +++ b/cyperf/models/get_session_meta200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetSessionMeta200ResponseOneOf + + + try: instance.actual_instance = GetSessionMeta200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_session_meta200_response_one_of.py b/cyperf/models/get_session_meta200_response_one_of.py index 1b600dd..c0f3aff 100644 --- a/cyperf/models/get_session_meta200_response_one_of.py +++ b/cyperf/models/get_session_meta200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.pair import Pair -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Pair.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Pair.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_sessions200_response.py b/cyperf/models/get_sessions200_response.py index 33b3307..092e45f 100644 --- a/cyperf/models/get_sessions200_response.py +++ b/cyperf/models/get_sessions200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetSessions200ResponseOneOf + + + try: instance.actual_instance = GetSessions200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_sessions200_response_one_of.py b/cyperf/models/get_sessions200_response_one_of.py index 63ea875..bb10f2e 100644 --- a/cyperf/models/get_sessions200_response_one_of.py +++ b/cyperf/models/get_sessions200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.session import Session -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Session.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Session.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_stats_plugins200_response.py b/cyperf/models/get_stats_plugins200_response.py index c82a250..a8058b3 100644 --- a/cyperf/models/get_stats_plugins200_response.py +++ b/cyperf/models/get_stats_plugins200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetStatsPlugins200ResponseOneOf + + + try: instance.actual_instance = GetStatsPlugins200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_stats_plugins200_response_one_of.py b/cyperf/models/get_stats_plugins200_response_one_of.py index 8debc22..657bce2 100644 --- a/cyperf/models/get_stats_plugins200_response_one_of.py +++ b/cyperf/models/get_stats_plugins200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.plugin import Plugin -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Plugin.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Plugin.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_strikes_operation.py b/cyperf/models/get_strikes_operation.py index 091662b..e390792 100644 --- a/cyperf/models/get_strikes_operation.py +++ b/cyperf/models/get_strikes_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -107,13 +107,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), "compatibleWith": obj.get("compatibleWith"), "filterMode": obj.get("filterMode"), "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), - "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), "take": obj.get("take") , "links": obj.get("links") diff --git a/cyperf/models/group_tls13.py b/cyperf/models/group_tls13.py index e9cfd41..b248820 100644 --- a/cyperf/models/group_tls13.py +++ b/cyperf/models/group_tls13.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/health_check_config.py b/cyperf/models/health_check_config.py index d05e835..7d4cfd9 100644 --- a/cyperf/models/health_check_config.py +++ b/cyperf/models/health_check_config.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,9 +104,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Enabled": obj.get("Enabled"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/health_issue.py b/cyperf/models/health_issue.py index c36096a..2f11b87 100644 --- a/cyperf/models/health_issue.py +++ b/cyperf/models/health_issue.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/host_id.py b/cyperf/models/host_id.py index 875af1f..0cecfab 100644 --- a/cyperf/models/host_id.py +++ b/cyperf/models/host_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/http_profile.py b/cyperf/models/http_profile.py index 0166330..5497708 100644 --- a/cyperf/models/http_profile.py +++ b/cyperf/models/http_profile.py @@ -24,7 +24,7 @@ from cyperf.models.connection_persistence import ConnectionPersistence from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -128,9 +128,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Headers": Params.from_dict(obj["Headers"]) if obj.get("Headers") is not None else None, "IsModified": obj.get("IsModified"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "UseApplicationServerHeaders": obj.get("UseApplicationServerHeaders"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/http_req_meta.py b/cyperf/models/http_req_meta.py index 11e78c2..4a3e5f6 100644 --- a/cyperf/models/http_req_meta.py +++ b/cyperf/models/http_req_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/http_res_meta.py b/cyperf/models/http_res_meta.py index 7f74507..8f5fa3f 100644 --- a/cyperf/models/http_res_meta.py +++ b/cyperf/models/http_res_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/import_all_operation.py b/cyperf/models/import_all_operation.py index 934b807..489b76b 100644 --- a/cyperf/models/import_all_operation.py +++ b/cyperf/models/import_all_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_metadata import ConfigMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "configs": [ConfigMetadata.from_dict(_item) for _item in obj["configs"]] if obj.get("configs") is not None else None + "configs": ( [ConfigMetadata.from_dict(_item) for _item in obj.get("configs", [])] if obj.get("configs") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/import_offline_license_result.py b/cyperf/models/import_offline_license_result.py index 9944c8f..3939594 100644 --- a/cyperf/models/import_offline_license_result.py +++ b/cyperf/models/import_offline_license_result.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.license_receipt import LicenseReceipt -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ingest_operation.py b/cyperf/models/ingest_operation.py index 217ee6b..34468b9 100644 --- a/cyperf/models/ingest_operation.py +++ b/cyperf/models/ingest_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.plugin_stats import PluginStats -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/inner_ip_range.py b/cyperf/models/inner_ip_range.py index e1f5603..ad7a6ec 100644 --- a/cyperf/models/inner_ip_range.py +++ b/cyperf/models/inner_ip_range.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/interface.py b/cyperf/models/interface.py index c3c8f96..5a354b6 100644 --- a/cyperf/models/interface.py +++ b/cyperf/models/interface.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ip_mask import IpMask -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -107,7 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Gateway": obj.get("Gateway"), - "IP": [IpMask.from_dict(_item) for _item in obj["IP"]] if obj.get("IP") is not None else None, + "IP": ( [IpMask.from_dict(_item) for _item in obj.get("IP", [])] if obj.get("IP") is not None else None), "MTU": obj.get("MTU"), "Mac": obj.get("Mac"), "Name": obj.get("Name") diff --git a/cyperf/models/ip_mask.py b/cyperf/models/ip_mask.py index dbe7219..4ec3078 100644 --- a/cyperf/models/ip_mask.py +++ b/cyperf/models/ip_mask.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 1791edb..221bdf1 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -32,7 +32,7 @@ from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.tunnel_stack import TunnelStack from cyperf.models.vx_lan_stack import VxLANStack -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -186,16 +186,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DUTConnections": obj.get("DUTConnections") if obj.get("DUTConnections") is not None else [], "EmulatedRouter": EmulatedRouter.from_dict(obj["EmulatedRouter"]) if obj.get("EmulatedRouter") is not None else None, "EthRange": EthRange.from_dict(obj["EthRange"]) if obj.get("EthRange") is not None else None, - "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, - "VxLANStacks": [VxLANStack.from_dict(_item) for _item in obj["VxLANStacks"]] if obj.get("VxLANStacks") is not None else None, + "IPRanges": ( [IPRange.from_dict(_item) for _item in obj.get("IPRanges", [])] if obj.get("IPRanges") is not None else None), + "IPSecStacks": ( [IPSecStack.from_dict(_item) for _item in obj.get("IPSecStacks", [])] if obj.get("IPSecStacks") is not None else None), + "MacDtlsStacks": ( [MacDtlsStack.from_dict(_item) for _item in obj.get("MacDtlsStacks", [])] if obj.get("MacDtlsStacks") is not None else None), + "TunnelStacks": ( [TunnelStack.from_dict(_item) for _item in obj.get("TunnelStacks", [])] if obj.get("TunnelStacks") is not None else None), + "VxLANStacks": ( [VxLANStack.from_dict(_item) for _item in obj.get("VxLANStacks", [])] if obj.get("VxLANStacks") is not None else None), "active": obj.get("active"), "agentAssignments": AgentAssignments.from_dict(obj["agentAssignments"]) if obj.get("agentAssignments") is not None else None, "inheritStreamingCPUAllocation": obj.get("inheritStreamingCPUAllocation"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "minAgents": obj.get("minAgents"), "streamingCPUAllocation": obj.get("streamingCPUAllocation") , diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index adb7003..f8288af 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -25,7 +25,7 @@ from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -172,7 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetMask": obj.get("NetMask"), "NetMaskAuto": obj.get("NetMaskAuto"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent"), "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , diff --git a/cyperf/models/ip_sec_range.py b/cyperf/models/ip_sec_range.py index a326b61..2691442 100644 --- a/cyperf/models/ip_sec_range.py +++ b/cyperf/models/ip_sec_range.py @@ -29,7 +29,7 @@ from cyperf.models.remote_access import RemoteAccess from cyperf.models.remote_subnet_config import RemoteSubnetConfig from cyperf.models.timers import Timers -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -177,7 +177,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Timers": Timers.from_dict(obj["Timers"]) if obj.get("Timers") is not None else None, "TunnelCountPerOuterIP": obj.get("TunnelCountPerOuterIP"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/ip_sec_stack.py b/cyperf/models/ip_sec_stack.py index 915e264..b1529b6 100644 --- a/cyperf/models/ip_sec_stack.py +++ b/cyperf/models/ip_sec_stack.py @@ -27,7 +27,7 @@ from cyperf.models.ip_sec_range import IPSecRange from cyperf.models.local_subnet_config import LocalSubnetConfig from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -165,7 +165,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SetupTimeout": obj.get("SetupTimeout"), "StackRole": obj.get("StackRole"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/license.py b/cyperf/models/license.py index c413e13..89d97cd 100644 --- a/cyperf/models/license.py +++ b/cyperf/models/license.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from cyperf.models.feature import Feature from cyperf.models.link import Link -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -113,9 +113,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "activationCode": obj.get("activationCode"), "daysLeftToExpire": obj.get("daysLeftToExpire"), "expiryDate": obj.get("expiryDate"), - "features": [Feature.from_dict(_item) for _item in obj["features"]] if obj.get("features") is not None else None, + "features": ( [Feature.from_dict(_item) for _item in obj.get("features", [])] if obj.get("features") is not None else None), "isExpired": obj.get("isExpired"), - "links": [Link.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [Link.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maintenanceDate": obj.get("maintenanceDate"), "partNumberDescription": obj.get("partNumberDescription"), "partNumberId": obj.get("partNumberId"), diff --git a/cyperf/models/license_receipt.py b/cyperf/models/license_receipt.py index 6e57004..578088c 100644 --- a/cyperf/models/license_receipt.py +++ b/cyperf/models/license_receipt.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from cyperf.models.license import License -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "changedLicenses": [License.from_dict(_item) for _item in obj["changedLicenses"]] if obj.get("changedLicenses") is not None else None, + "changedLicenses": ( [License.from_dict(_item) for _item in obj.get("changedLicenses", [])] if obj.get("changedLicenses") is not None else None), "isOnline": obj.get("isOnline"), "operationType": obj.get("operationType") , diff --git a/cyperf/models/license_server_metadata.py b/cyperf/models/license_server_metadata.py index b7a46ac..c3f0cb6 100644 --- a/cyperf/models/license_server_metadata.py +++ b/cyperf/models/license_server_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/link.py b/cyperf/models/link.py index 599cb8a..a49376f 100644 --- a/cyperf/models/link.py +++ b/cyperf/models/link.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/load_config_operation.py b/cyperf/models/load_config_operation.py index 68b7ae2..b98e5f9 100644 --- a/cyperf/models/load_config_operation.py +++ b/cyperf/models/load_config_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index d385dd9..2753476 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/log_config.py b/cyperf/models/log_config.py index 6793d2e..3a96bf6 100644 --- a/cyperf/models/log_config.py +++ b/cyperf/models/log_config.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/mac_dtls_stack.py b/cyperf/models/mac_dtls_stack.py index c8dee97..00b5cdf 100644 --- a/cyperf/models/mac_dtls_stack.py +++ b/cyperf/models/mac_dtls_stack.py @@ -25,7 +25,7 @@ from cyperf.models.ip_range import IPRange from cyperf.models.network_meshing import NetworkMeshing from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -220,7 +220,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelDestinationMacStart": obj.get("TunnelDestinationMacStart"), "VlanRange": VLANRange.from_dict(obj["VlanRange"]) if obj.get("VlanRange") is not None else None, "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/marked_as_deleted.py b/cyperf/models/marked_as_deleted.py index 2e3f99d..4578132 100644 --- a/cyperf/models/marked_as_deleted.py +++ b/cyperf/models/marked_as_deleted.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/md2_tlv.py b/cyperf/models/md2_tlv.py index af3e8f4..9b87749 100644 --- a/cyperf/models/md2_tlv.py +++ b/cyperf/models/md2_tlv.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/media_file.py b/cyperf/models/media_file.py index 3aaedfd..991c068 100644 --- a/cyperf/models/media_file.py +++ b/cyperf/models/media_file.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.file_value import FileValue from cyperf.models.media_track import MediaTrack -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,9 +108,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "FileValue": FileValue.from_dict(obj["FileValue"]) if obj.get("FileValue") is not None else None, - "MediaTracks": [MediaTrack.from_dict(_item) for _item in obj["MediaTracks"]] if obj.get("MediaTracks") is not None else None, + "MediaTracks": ( [MediaTrack.from_dict(_item) for _item in obj.get("MediaTracks", [])] if obj.get("MediaTracks") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/media_track.py b/cyperf/models/media_track.py index 4f57608..1173235 100644 --- a/cyperf/models/media_track.py +++ b/cyperf/models/media_track.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.track_type import TrackType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 8cf7c7e..7eb494d 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -23,7 +23,7 @@ from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from cyperf.models.rtp_profile_meta import RTPProfileMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -122,12 +122,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), "IsStreaming": obj.get("IsStreaming"), - "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, - "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), "RequiresUniqueness": obj.get("RequiresUniqueness"), "Severity": obj.get("Severity"), "SkipAttackGeneration": obj.get("SkipAttackGeneration"), diff --git a/cyperf/models/name_server.py b/cyperf/models/name_server.py index e10cd2e..a3c9a58 100644 --- a/cyperf/models/name_server.py +++ b/cyperf/models/name_server.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/network_mapping.py b/cyperf/models/network_mapping.py index d78232e..12c8201 100644 --- a/cyperf/models/network_mapping.py +++ b/cyperf/models/network_mapping.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/network_meshing.py b/cyperf/models/network_meshing.py index a16c2fd..e9ebd0a 100644 --- a/cyperf/models/network_meshing.py +++ b/cyperf/models/network_meshing.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.mapping_type import MappingType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/network_profile.py b/cyperf/models/network_profile.py index a0c5937..b47054f 100644 --- a/cyperf/models/network_profile.py +++ b/cyperf/models/network_profile.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.dut_network import DUTNetwork from cyperf.models.ip_network import IPNetwork -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,10 +111,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "DUTNetworkSegment": [DUTNetwork.from_dict(_item) for _item in obj["DUTNetworkSegment"]] if obj.get("DUTNetworkSegment") is not None else None, - "IPNetworkSegment": [IPNetwork.from_dict(_item) for _item in obj["IPNetworkSegment"]] if obj.get("IPNetworkSegment") is not None else None, + "DUTNetworkSegment": ( [DUTNetwork.from_dict(_item) for _item in obj.get("DUTNetworkSegment", [])] if obj.get("DUTNetworkSegment") is not None else None), + "IPNetworkSegment": ( [IPNetwork.from_dict(_item) for _item in obj.get("IPNetworkSegment", [])] if obj.get("IPNetworkSegment") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/network_segment_base.py b/cyperf/models/network_segment_base.py index 12c155c..5580ce5 100644 --- a/cyperf/models/network_segment_base.py +++ b/cyperf/models/network_segment_base.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/nodes_by_controller.py b/cyperf/models/nodes_by_controller.py index d535b2e..66b39f0 100644 --- a/cyperf/models/nodes_by_controller.py +++ b/cyperf/models/nodes_by_controller.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/nodes_power_cycle_operation.py b/cyperf/models/nodes_power_cycle_operation.py index 6e8c327..5c8903f 100644 --- a/cyperf/models/nodes_power_cycle_operation.py +++ b/cyperf/models/nodes_power_cycle_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.nodes_by_controller import NodesByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [NodesByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/notification.py b/cyperf/models/notification.py index 1593324..5ad191c 100644 --- a/cyperf/models/notification.py +++ b/cyperf/models/notification.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/notification_counts.py b/cyperf/models/notification_counts.py index 33e4e02..d08e265 100644 --- a/cyperf/models/notification_counts.py +++ b/cyperf/models/notification_counts.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ntp_info.py b/cyperf/models/ntp_info.py index 3dc6609..e105116 100644 --- a/cyperf/models/ntp_info.py +++ b/cyperf/models/ntp_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/objective_value_entry.py b/cyperf/models/objective_value_entry.py index 6e964a7..7fb847a 100644 --- a/cyperf/models/objective_value_entry.py +++ b/cyperf/models/objective_value_entry.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/objectives_and_timeline.py b/cyperf/models/objectives_and_timeline.py index 196a690..f5bd81b 100644 --- a/cyperf/models/objectives_and_timeline.py +++ b/cyperf/models/objectives_and_timeline.py @@ -25,7 +25,7 @@ from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.specific_objective import SpecificObjective from cyperf.models.timeline_segment import TimelineSegment -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -127,9 +127,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "AdvancedSettings": AdvancedSettings.from_dict(obj["AdvancedSettings"]) if obj.get("AdvancedSettings") is not None else None, "PrimaryObjective": SpecificObjective.from_dict(obj["PrimaryObjective"]) if obj.get("PrimaryObjective") is not None else None, "SecondaryObjective": SecondaryObjective.from_dict(obj["SecondaryObjective"]) if obj.get("SecondaryObjective") is not None else None, - "SecondaryObjectives": [SpecificObjective.from_dict(_item) for _item in obj["SecondaryObjectives"]] if obj.get("SecondaryObjectives") is not None else None, - "TimelineSegments": [TimelineSegment.from_dict(_item) for _item in obj["TimelineSegments"]] if obj.get("TimelineSegments") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "SecondaryObjectives": ( [SpecificObjective.from_dict(_item) for _item in obj.get("SecondaryObjectives", [])] if obj.get("SecondaryObjectives") is not None else None), + "TimelineSegments": ( [TimelineSegment.from_dict(_item) for _item in obj.get("TimelineSegments", [])] if obj.get("TimelineSegments") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/open_api_definitions.py b/cyperf/models/open_api_definitions.py index a00c6e0..4f9f5f9 100644 --- a/cyperf/models/open_api_definitions.py +++ b/cyperf/models/open_api_definitions.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "openApiDefinitions": dict( (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["openApiDefinitions"].items() + for _k, _v in (obj.get("openApiDefinitions") or {}).items() ) if obj.get("openApiDefinitions") is not None else None diff --git a/cyperf/models/p1_config.py b/cyperf/models/p1_config.py index 794c68e..40f905d 100644 --- a/cyperf/models/p1_config.py +++ b/cyperf/models/p1_config.py @@ -24,7 +24,7 @@ from cyperf.models.enc_p1_algorithm import EncP1Algorithm from cyperf.models.hash_p1_algorithm import HashP1Algorithm from cyperf.models.prf_p1_algorithm import PrfP1Algorithm -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/p2_config.py b/cyperf/models/p2_config.py index 992e8b1..8340f0b 100644 --- a/cyperf/models/p2_config.py +++ b/cyperf/models/p2_config.py @@ -23,7 +23,7 @@ from cyperf.models.enc_p2_algorithm import EncP2Algorithm from cyperf.models.hash_p2_algorithm import HashP2Algorithm from cyperf.models.pfs_p2_group import PfsP2Group -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pair.py b/cyperf/models/pair.py index fbe2857..c15ebc0 100644 --- a/cyperf/models/pair.py +++ b/cyperf/models/pair.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pangp_encapsulation.py b/cyperf/models/pangp_encapsulation.py index cb1b4cc..5b09a5a 100644 --- a/cyperf/models/pangp_encapsulation.py +++ b/cyperf/models/pangp_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ESPOverUDPSettings": ESPOverUDPSettings.from_dict(obj["ESPOverUDPSettings"]) if obj.get("ESPOverUDPSettings") is not None else None, "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/pangp_settings.py b/cyperf/models/pangp_settings.py index 0043bec..591a3ef 100644 --- a/cyperf/models/pangp_settings.py +++ b/cyperf/models/pangp_settings.py @@ -26,7 +26,7 @@ from cyperf.models.pangp_encapsulation import PANGPEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -129,7 +129,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ESPProbeRetryTimeout": obj.get("ESPProbeRetryTimeout"), "ESPProbeTimeout": obj.get("ESPProbeTimeout"), "GPClientVersion": obj.get("GPClientVersion"), diff --git a/cyperf/models/param_metadata.py b/cyperf/models/param_metadata.py index 8fbe62d..c40caf4 100644 --- a/cyperf/models/param_metadata.py +++ b/cyperf/models/param_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info.py b/cyperf/models/param_metadata_type_info.py index 0526790..904eb3e 100644 --- a/cyperf/models/param_metadata_type_info.py +++ b/cyperf/models/param_metadata_type_info.py @@ -24,7 +24,7 @@ from cyperf.models.param_metadata_type_info_int import ParamMetadataTypeInfoInt from cyperf.models.param_metadata_type_info_media import ParamMetadataTypeInfoMedia from cyperf.models.param_metadata_type_info_string import ParamMetadataTypeInfoString -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_array_v2.py b/cyperf/models/param_metadata_type_info_array_v2.py index 059cf09..91df78c 100644 --- a/cyperf/models/param_metadata_type_info_array_v2.py +++ b/cyperf/models/param_metadata_type_info_array_v2.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.param_metadata_type_info_array_v2_elements_inner import ParamMetadataTypeInfoArrayV2ElementsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "elements": [ParamMetadataTypeInfoArrayV2ElementsInner.from_dict(_item) for _item in obj["elements"]] if obj.get("elements") is not None else None + "elements": ( [ParamMetadataTypeInfoArrayV2ElementsInner.from_dict(_item) for _item in obj.get("elements", [])] if obj.get("elements") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py index 5ec94f6..5192ef2 100644 --- a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py +++ b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_int.py b/cyperf/models/param_metadata_type_info_int.py index d12e3ff..36141a0 100644 --- a/cyperf/models/param_metadata_type_info_int.py +++ b/cyperf/models/param_metadata_type_info_int.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_media.py b/cyperf/models/param_metadata_type_info_media.py index b484347..c318bcd 100644 --- a/cyperf/models/param_metadata_type_info_media.py +++ b/cyperf/models/param_metadata_type_info_media.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_string.py b/cyperf/models/param_metadata_type_info_string.py index bed3618..f0e606a 100644 --- a/cyperf/models/param_metadata_type_info_string.py +++ b/cyperf/models/param_metadata_type_info_string.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index 6505120..2ff1f01 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.parameter_metadata import ParameterMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -118,7 +118,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Type": obj.get("Type"), "field": obj.get("field"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "operator": obj.get("operator"), "queryParam": obj.get("queryParam") , diff --git a/cyperf/models/parameter_match.py b/cyperf/models/parameter_match.py index 601f7a8..5d419bf 100644 --- a/cyperf/models/parameter_match.py +++ b/cyperf/models/parameter_match.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.regex_match import RegexMatch -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/parameter_meta.py b/cyperf/models/parameter_meta.py index 51df58f..7219a69 100644 --- a/cyperf/models/parameter_meta.py +++ b/cyperf/models/parameter_meta.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.parameter_match import ParameterMatch -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, + "Matches": ( [ParameterMatch.from_dict(_item) for _item in obj.get("Matches", [])] if obj.get("Matches") is not None else None), "Name": obj.get("Name") , "links": obj.get("links") diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index 22d310e..8dabe11 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -25,7 +25,7 @@ from cyperf.models.payload_metadata import PayloadMetadata from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.type_info_metadata import TypeInfoMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -142,7 +142,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Type": obj.get("Type"), "TypeInfo": TypeInfoMetadata.from_dict(obj["TypeInfo"]) if obj.get("TypeInfo") is not None else None, "UniqueValue": obj.get("UniqueValue"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/params.py b/cyperf/models/params.py index 5497f7a..8c5c131 100644 --- a/cyperf/models/params.py +++ b/cyperf/models/params.py @@ -25,7 +25,7 @@ from cyperf.models.media_file import MediaFile from cyperf.models.param_metadata import ParamMetadata from cyperf.models.params_enum import ParamsEnum -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -150,7 +150,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "FlowIdentifier": obj.get("FlowIdentifier"), "IsDeprecated": obj.get("IsDeprecated"), "IsModified": obj.get("IsModified"), - "MediaFiles": [MediaFile.from_dict(_item) for _item in obj["MediaFiles"]] if obj.get("MediaFiles") is not None else None, + "MediaFiles": ( [MediaFile.from_dict(_item) for _item in obj.get("MediaFiles", [])] if obj.get("MediaFiles") is not None else None), "Metadata": ParamMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "ParamId": obj.get("ParamId"), @@ -161,7 +161,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Value": obj.get("Value"), "file-upload": obj.get("file-upload") if obj.get("file-upload") is not None else [], "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "supportsDynamicPayload": obj.get("supportsDynamicPayload"), "uploadURL": obj.get("uploadURL") , diff --git a/cyperf/models/params_enum.py b/cyperf/models/params_enum.py index 74c603e..8f409e5 100644 --- a/cyperf/models/params_enum.py +++ b/cyperf/models/params_enum.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.choice import Choice -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Choices": [Choice.from_dict(_item) for _item in obj["Choices"]] if obj.get("Choices") is not None else None + "Choices": ( [Choice.from_dict(_item) for _item in obj.get("Choices", [])] if obj.get("Choices") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/payload_meta.py b/cyperf/models/payload_meta.py index 82e20b2..62ad58a 100644 --- a/cyperf/models/payload_meta.py +++ b/cyperf/models/payload_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/payload_metadata.py b/cyperf/models/payload_metadata.py index 86da169..ff6c423 100644 --- a/cyperf/models/payload_metadata.py +++ b/cyperf/models/payload_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pep_dut.py b/cyperf/models/pep_dut.py index aabbc1e..d5b69c0 100644 --- a/cyperf/models/pep_dut.py +++ b/cyperf/models/pep_dut.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.params import Params from cyperf.models.simulated_id_p import SimulatedIdP -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -141,7 +141,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthMethod": Params.from_dict(obj["AuthMethod"]) if obj.get("AuthMethod") is not None else None, - "AuthProfileParams": [Params.from_dict(_item) for _item in obj["AuthProfileParams"]] if obj.get("AuthProfileParams") is not None else None, + "AuthProfileParams": ( [Params.from_dict(_item) for _item in obj.get("AuthProfileParams", [])] if obj.get("AuthProfileParams") is not None else None), "AuthProfileType": obj.get("AuthProfileType"), "HostnameSuffix": obj.get("HostnameSuffix"), "IDPType": Params.from_dict(obj["IDPType"]) if obj.get("IDPType") is not None else None, @@ -149,7 +149,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PEPHost": obj.get("PEPHost"), "PEPPort": obj.get("PEPPort"), "SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/playlist_metadata.py b/cyperf/models/playlist_metadata.py index 5d8a7cc..13effc1 100644 --- a/cyperf/models/playlist_metadata.py +++ b/cyperf/models/playlist_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/plugin.py b/cyperf/models/plugin.py index ab85e39..8720947 100644 --- a/cyperf/models/plugin.py +++ b/cyperf/models/plugin.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/plugin_stats.py b/cyperf/models/plugin_stats.py index 1ce54ed..7cb0ed8 100644 --- a/cyperf/models/plugin_stats.py +++ b/cyperf/models/plugin_stats.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "plugin": obj.get("plugin"), - "stats": [Dict[str, AppsecAppMetadataKeywordsInner].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": ( [Dict.from_dict(_item) for _item in obj.get("stats", [])] if obj.get("stats") is not None else None), "version": obj.get("version") , "links": obj.get("links") diff --git a/cyperf/models/port.py b/cyperf/models/port.py index 15cabb9..477f923 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/port_settings.py b/cyperf/models/port_settings.py index 7c85a4d..9893c6c 100644 --- a/cyperf/models/port_settings.py +++ b/cyperf/models/port_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.effective_ports import EffectivePorts -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ForwardProxyPort": obj.get("ForwardProxyPort"), "Readonly": obj.get("Readonly"), "ServerListenPort": obj.get("ServerListenPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/ports_by_controller.py b/cyperf/models/ports_by_controller.py index d994704..f6c398c 100644 --- a/cyperf/models/ports_by_controller.py +++ b/cyperf/models/ports_by_controller.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_node import PortsByNode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": [PortsByNode.from_dict(_item) for _item in obj["computeNodes"]] if obj.get("computeNodes") is not None else None, + "computeNodes": ( [PortsByNode.from_dict(_item) for _item in obj.get("computeNodes", [])] if obj.get("computeNodes") is not None else None), "controllerId": obj.get("controllerId") , "links": obj.get("links") diff --git a/cyperf/models/ports_by_node.py b/cyperf/models/ports_by_node.py index 01f2a77..a67dbb8 100644 --- a/cyperf/models/ports_by_node.py +++ b/cyperf/models/ports_by_node.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/prepare_test_operation.py b/cyperf/models/prepare_test_operation.py index 0a6045c..d9f44e9 100644 --- a/cyperf/models/prepare_test_operation.py +++ b/cyperf/models/prepare_test_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.prepared_test_options import PreparedTestOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/prepared_test_options.py b/cyperf/models/prepared_test_options.py index e170377..e6704ce 100644 --- a/cyperf/models/prepared_test_options.py +++ b/cyperf/models/prepared_test_options.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/protected_subnet_config.py b/cyperf/models/protected_subnet_config.py index f6b542a..d15bc22 100644 --- a/cyperf/models/protected_subnet_config.py +++ b/cyperf/models/protected_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/quic_profile.py b/cyperf/models/quic_profile.py index e0d9898..4aaf820 100644 --- a/cyperf/models/quic_profile.py +++ b/cyperf/models/quic_profile.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.quic_version import QUICVersion from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "QUICVersion": obj.get("QUICVersion"), "RxBuffer": obj.get("RxBuffer"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/reboot_operation_input.py b/cyperf/models/reboot_operation_input.py index 850474f..82a8e65 100644 --- a/cyperf/models/reboot_operation_input.py +++ b/cyperf/models/reboot_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_to_be_rebooted import AgentToBeRebooted -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agents": [AgentToBeRebooted.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None, + "agents": ( [AgentToBeRebooted.from_dict(_item) for _item in obj.get("agents", [])] if obj.get("agents") is not None else None), "softReboot": obj.get("softReboot") , "links": obj.get("links") diff --git a/cyperf/models/reboot_ports_operation.py b/cyperf/models/reboot_ports_operation.py index 7f870ae..d6d49a2 100644 --- a/cyperf/models/reboot_ports_operation.py +++ b/cyperf/models/reboot_ports_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/reference.py b/cyperf/models/reference.py index bd63783..bb39ae6 100644 --- a/cyperf/models/reference.py +++ b/cyperf/models/reference.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/regex_match.py b/cyperf/models/regex_match.py index bdeea2a..4e01819 100644 --- a/cyperf/models/regex_match.py +++ b/cyperf/models/regex_match.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/release_operation_input.py b/cyperf/models/release_operation_input.py index f1c8d74..934b5ad 100644 --- a/cyperf/models/release_operation_input.py +++ b/cyperf/models/release_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_release import AgentRelease -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentsData": [AgentRelease.from_dict(_item) for _item in obj["agentsData"]] if obj.get("agentsData") is not None else None, + "agentsData": ( [AgentRelease.from_dict(_item) for _item in obj.get("agentsData", [])] if obj.get("agentsData") is not None else None), "sessionId": obj.get("sessionId") , "links": obj.get("links") diff --git a/cyperf/models/remote_access.py b/cyperf/models/remote_access.py index 0f5f405..13de408 100644 --- a/cyperf/models/remote_access.py +++ b/cyperf/models/remote_access.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/remote_subnet_config.py b/cyperf/models/remote_subnet_config.py index 93eb250..b9e55d1 100644 --- a/cyperf/models/remote_subnet_config.py +++ b/cyperf/models/remote_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/rename_input.py b/cyperf/models/rename_input.py index f74da1b..639a343 100644 --- a/cyperf/models/rename_input.py +++ b/cyperf/models/rename_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reorder_action_input.py b/cyperf/models/reorder_action_input.py index 256897b..fdae1f1 100644 --- a/cyperf/models/reorder_action_input.py +++ b/cyperf/models/reorder_action_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reorder_exchanges_input.py b/cyperf/models/reorder_exchanges_input.py index c01037e..70b8c41 100644 --- a/cyperf/models/reorder_exchanges_input.py +++ b/cyperf/models/reorder_exchanges_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.exchange_order import ExchangeOrder -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionName": obj.get("ActionName"), - "ExchangesOrder": [ExchangeOrder.from_dict(_item) for _item in obj["ExchangesOrder"]] if obj.get("ExchangesOrder") is not None else None, + "ExchangesOrder": ( [ExchangeOrder.from_dict(_item) for _item in obj.get("ExchangesOrder", [])] if obj.get("ExchangesOrder") is not None else None), "FlowIdx": obj.get("FlowIdx") , "links": obj.get("links") diff --git a/cyperf/models/replay_capture.py b/cyperf/models/replay_capture.py index 70e2c80..3af9a03 100644 --- a/cyperf/models/replay_capture.py +++ b/cyperf/models/replay_capture.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.app_flow import AppFlow -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,9 +111,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "flows": [AppFlow.from_dict(_item) for _item in obj["flows"]] if obj.get("flows") is not None else None, + "flows": ( [AppFlow.from_dict(_item) for _item in obj.get("flows", [])] if obj.get("flows") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") diff --git a/cyperf/models/required_file_types.py b/cyperf/models/required_file_types.py index 5ff6c0f..14be112 100644 --- a/cyperf/models/required_file_types.py +++ b/cyperf/models/required_file_types.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reserve_operation_input.py b/cyperf/models/reserve_operation_input.py index 95f4ce7..0364b1b 100644 --- a/cyperf/models/reserve_operation_input.py +++ b/cyperf/models/reserve_operation_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_reservation import AgentReservation from cyperf.models.payload_meta import PayloadMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -106,13 +106,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentsData": [AgentReservation.from_dict(_item) for _item in obj["agentsData"]] if obj.get("agentsData") is not None else None, + "agentsData": ( [AgentReservation.from_dict(_item) for _item in obj.get("agentsData", [])] if obj.get("agentsData") is not None else None), "force": obj.get("force"), "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "payloads": dict( (_k, PayloadMeta.from_dict(_v)) - for _k, _v in obj["payloads"].items() + for _k, _v in (obj.get("payloads") or {}).items() ) if obj.get("payloads") is not None else None, diff --git a/cyperf/models/result_file_metadata.py b/cyperf/models/result_file_metadata.py index 453f525..1a8ea37 100644 --- a/cyperf/models/result_file_metadata.py +++ b/cyperf/models/result_file_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index 08bae0d..294b5c2 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.marked_as_deleted import MarkedAsDeleted from cyperf.models.result_file_metadata import ResultFileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -169,17 +169,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "download-all": obj.get("download-all"), "download-diagnostic": obj.get("download-diagnostic"), "endTime": obj.get("endTime"), - "files": [ResultFileMetadata.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None, + "files": ( [ResultFileMetadata.from_dict(_item) for _item in obj.get("files", [])] if obj.get("files") is not None else None), "id": obj.get("id"), "lastModified": obj.get("lastModified"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "markedAsDeleted": MarkedAsDeleted.from_dict(obj["markedAsDeleted"]) if obj.get("markedAsDeleted") is not None else None, "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "pdfURL": obj.get("pdfURL"), "pinned": obj.get("pinned"), "reportTypes": obj.get("reportTypes") if obj.get("reportTypes") is not None else [], - "reportingLinks": [APILink.from_dict(_item) for _item in obj["reportingLinks"]] if obj.get("reportingLinks") is not None else None, + "reportingLinks": ( [APILink.from_dict(_item) for _item in obj.get("reportingLinks", [])] if obj.get("reportingLinks") is not None else None), "resultUrl": obj.get("resultUrl"), "startTime": obj.get("startTime"), "tags": obj.get("tags"), diff --git a/cyperf/models/results_group.py b/cyperf/models/results_group.py index 128bc09..a128e00 100644 --- a/cyperf/models/results_group.py +++ b/cyperf/models/results_group.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/rtp_profile.py b/cyperf/models/rtp_profile.py index 8a9fbb2..994ab59 100644 --- a/cyperf/models/rtp_profile.py +++ b/cyperf/models/rtp_profile.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from cyperf.models.mos_mode import MosMode from cyperf.models.rtp_encryption_mode import RTPEncryptionMode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/rtp_profile_meta.py b/cyperf/models/rtp_profile_meta.py index 27c910b..f476a13 100644 --- a/cyperf/models/rtp_profile_meta.py +++ b/cyperf/models/rtp_profile_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/save_config_operation.py b/cyperf/models/save_config_operation.py index 30e7f8d..8f94e01 100644 --- a/cyperf/models/save_config_operation.py +++ b/cyperf/models/save_config_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/scenario.py b/cyperf/models/scenario.py index 7ddb33d..3ecf696 100644 --- a/cyperf/models/scenario.py +++ b/cyperf/models/scenario.py @@ -29,7 +29,7 @@ from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params from cyperf.models.quic_profile import QUICProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -181,13 +181,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), @@ -198,7 +198,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), @@ -208,7 +208,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/secondary_objective.py b/cyperf/models/secondary_objective.py index 5039a92..f6eddc0 100644 --- a/cyperf/models/secondary_objective.py +++ b/cyperf/models/secondary_objective.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from cyperf.models.objective_type import ObjectiveType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/selected_env.py b/cyperf/models/selected_env.py index c6fc348..5ef9db3 100644 --- a/cyperf/models/selected_env.py +++ b/cyperf/models/selected_env.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.interface import Interface -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "SessionID": obj.get("SessionID"), - "TestInterface": [Interface.from_dict(_item) for _item in obj["TestInterface"]] if obj.get("TestInterface") is not None else None, + "TestInterface": ( [Interface.from_dict(_item) for _item in obj.get("TestInterface", [])] if obj.get("TestInterface") is not None else None), "Token": obj.get("Token") , "links": obj.get("links") diff --git a/cyperf/models/session.py b/cyperf/models/session.py index cf10b1d..6632afc 100644 --- a/cyperf/models/session.py +++ b/cyperf/models/session.py @@ -24,7 +24,7 @@ from cyperf.models.appsec_config import AppsecConfig from cyperf.models.pair import Pair from cyperf.models.test_info import TestInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -147,8 +147,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "index": obj.get("index"), "lastVisited": obj.get("lastVisited"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "meta": [Pair.from_dict(_item) for _item in obj["meta"]] if obj.get("meta") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "meta": ( [Pair.from_dict(_item) for _item in obj.get("meta", [])] if obj.get("meta") is not None else None), "name": obj.get("name"), "owner": obj.get("owner"), "ownerID": obj.get("ownerID"), diff --git a/cyperf/models/set_aggregation_mode_operation.py b/cyperf/models/set_aggregation_mode_operation.py index b657002..ddf817a 100644 --- a/cyperf/models/set_aggregation_mode_operation.py +++ b/cyperf/models/set_aggregation_mode_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.nodes_by_controller import NodesByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "aggregated": obj.get("aggregated"), - "controllers": [NodesByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/set_app_operation.py b/cyperf/models/set_app_operation.py index 3b88bc6..134363b 100644 --- a/cyperf/models/set_app_operation.py +++ b/cyperf/models/set_app_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/set_dpdk_mode_operation_input.py b/cyperf/models/set_dpdk_mode_operation_input.py index 13baefb..f823c87 100644 --- a/cyperf/models/set_dpdk_mode_operation_input.py +++ b/cyperf/models/set_dpdk_mode_operation_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/set_link_state_operation.py b/cyperf/models/set_link_state_operation.py index e989533..f5eaa24 100644 --- a/cyperf/models/set_link_state_operation.py +++ b/cyperf/models/set_link_state_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), "link": obj.get("link") , "links": obj.get("links") diff --git a/cyperf/models/set_ntp_operation_input.py b/cyperf/models/set_ntp_operation_input.py index 1cd4497..093bd3e 100644 --- a/cyperf/models/set_ntp_operation_input.py +++ b/cyperf/models/set_ntp_operation_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/simulated_id_p.py b/cyperf/models/simulated_id_p.py index f3b4267..52f7ddf 100644 --- a/cyperf/models/simulated_id_p.py +++ b/cyperf/models/simulated_id_p.py @@ -24,7 +24,7 @@ from cyperf.models.cert_config import CertConfig from cyperf.models.id_p_signature_algo import IdPSignatureAlgo from cyperf.models.name_id_format import NameIdFormat -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -114,7 +114,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SignatureAlgorithm": obj.get("SignatureAlgorithm"), "SingleSignOnURL": obj.get("SingleSignOnURL"), "XMLMetadata": obj.get("XMLMetadata") if obj.get("XMLMetadata") is not None else [], - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/snapshot.py b/cyperf/models/snapshot.py index 92ddf9d..7dfd64c 100644 --- a/cyperf/models/snapshot.py +++ b/cyperf/models/snapshot.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,10 +96,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "timestamp": obj.get("timestamp"), - "values": [ + "values": ( + [ [AppsecAppMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] - for _item in obj["values"] + for _item in obj.get("values", []) ] if obj.get("values") is not None else None + ) , "links": obj.get("links") }) diff --git a/cyperf/models/sort_body_field.py b/cyperf/models/sort_body_field.py index 56844a6..95918cd 100644 --- a/cyperf/models/sort_body_field.py +++ b/cyperf/models/sort_body_field.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/specific_objective.py b/cyperf/models/specific_objective.py index 3bb8ee7..f4fcf17 100644 --- a/cyperf/models/specific_objective.py +++ b/cyperf/models/specific_objective.py @@ -25,7 +25,7 @@ from cyperf.models.objective_type import ObjectiveType from cyperf.models.objective_unit import ObjectiveUnit from cyperf.models.timeline_segment_union import TimelineSegmentUnion -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "MaxPendingSimulatedUsers": obj.get("MaxPendingSimulatedUsers"), "MaxSimulatedUsersPerInterval": obj.get("MaxSimulatedUsersPerInterval"), - "Timeline": [TimelineSegmentUnion.from_dict(_item) for _item in obj["Timeline"]] if obj.get("Timeline") is not None else None, + "Timeline": ( [TimelineSegmentUnion.from_dict(_item) for _item in obj.get("Timeline", [])] if obj.get("Timeline") is not None else None), "Type": obj.get("Type"), "Unit": obj.get("Unit"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/start_agents_batch_delete_request_inner.py b/cyperf/models/start_agents_batch_delete_request_inner.py index 112c5b1..08bc785 100644 --- a/cyperf/models/start_agents_batch_delete_request_inner.py +++ b/cyperf/models/start_agents_batch_delete_request_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/stateless_stream.py b/cyperf/models/stateless_stream.py index 9fc4be7..c95337b 100644 --- a/cyperf/models/stateless_stream.py +++ b/cyperf/models/stateless_stream.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_profile import StreamProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Direction": obj.get("Direction"), "IsFloodStream": obj.get("IsFloodStream"), "ServerStreamProfile": StreamProfile.from_dict(obj["ServerStreamProfile"]) if obj.get("ServerStreamProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/static_arp_entry.py b/cyperf/models/static_arp_entry.py index 58f5927..eb05a13 100644 --- a/cyperf/models/static_arp_entry.py +++ b/cyperf/models/static_arp_entry.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/stats_result.py b/cyperf/models/stats_result.py index 2d3e950..28ceddf 100644 --- a/cyperf/models/stats_result.py +++ b/cyperf/models/stats_result.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.parameter import Parameter from cyperf.models.snapshot import Snapshot -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,10 +103,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "availableFilters": [Parameter.from_dict(_item) for _item in obj["availableFilters"]] if obj.get("availableFilters") is not None else None, + "availableFilters": ( [Parameter.from_dict(_item) for _item in obj.get("availableFilters", [])] if obj.get("availableFilters") is not None else None), "columns": obj.get("columns") if obj.get("columns") is not None else [], "name": obj.get("name"), - "snapshots": [Snapshot.from_dict(_item) for _item in obj["snapshots"]] if obj.get("snapshots") is not None else None + "snapshots": ( [Snapshot.from_dict(_item) for _item in obj.get("snapshots", [])] if obj.get("snapshots") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/steady_segment.py b/cyperf/models/steady_segment.py index 93010f6..eefb510 100644 --- a/cyperf/models/steady_segment.py +++ b/cyperf/models/steady_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/step_segment.py b/cyperf/models/step_segment.py index 5146582..dc5203b 100644 --- a/cyperf/models/step_segment.py +++ b/cyperf/models/step_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/stream_profile.py b/cyperf/models/stream_profile.py index 77b29e9..5c13d58 100644 --- a/cyperf/models/stream_profile.py +++ b/cyperf/models/stream_profile.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stream_payload_type import StreamPayloadType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/system_info.py b/cyperf/models/system_info.py index a1d31c5..ef1ac72 100644 --- a/cyperf/models/system_info.py +++ b/cyperf/models/system_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.chassis_info import ChassisInfo from cyperf.models.traffic_agent_info import TrafficAgentInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "kernelVersion": obj.get("kernelVersion"), "osName": obj.get("osName"), "portManagerVersion": obj.get("portManagerVersion"), - "trafficAgentInfo": [TrafficAgentInfo.from_dict(_item) for _item in obj["trafficAgentInfo"]] if obj.get("trafficAgentInfo") is not None else None + "trafficAgentInfo": ( [TrafficAgentInfo.from_dict(_item) for _item in obj.get("trafficAgentInfo", [])] if obj.get("trafficAgentInfo") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tcp_profile.py b/cyperf/models/tcp_profile.py index 7ae9833..b25d683 100644 --- a/cyperf/models/tcp_profile.py +++ b/cyperf/models/tcp_profile.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/test_info.py b/cyperf/models/test_info.py index da340ed..9cce7fa 100644 --- a/cyperf/models/test_info.py +++ b/cyperf/models/test_info.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.dashboard import Dashboard -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "dashboards": [Dashboard.from_dict(_item) for _item in obj["dashboards"]] if obj.get("dashboards") is not None else None, + "dashboards": ( [Dashboard.from_dict(_item) for _item in obj.get("dashboards", [])] if obj.get("dashboards") is not None else None), "defaultDashboardIndex": obj.get("defaultDashboardIndex"), "defaultPollingInterval": obj.get("defaultPollingInterval"), "status": obj.get("status"), diff --git a/cyperf/models/test_state_changed_operation.py b/cyperf/models/test_state_changed_operation.py index 2c683c8..a8a3cb6 100644 --- a/cyperf/models/test_state_changed_operation.py +++ b/cyperf/models/test_state_changed_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/time_value.py b/cyperf/models/time_value.py index deb09c8..a9ce3ed 100644 --- a/cyperf/models/time_value.py +++ b/cyperf/models/time_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timeline_segment.py b/cyperf/models/timeline_segment.py index eb11b37..5fec8ef 100644 --- a/cyperf/models/timeline_segment.py +++ b/cyperf/models/timeline_segment.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.objective_value_entry import ObjectiveValueEntry from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -135,8 +135,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ObjectiveValue": obj.get("ObjectiveValue"), "PrimaryObjectiveUnit": obj.get("PrimaryObjectiveUnit"), "PrimaryObjectiveValue": obj.get("PrimaryObjectiveValue"), - "SecondaryObjectiveValues": [ObjectiveValueEntry.from_dict(_item) for _item in obj["SecondaryObjectiveValues"]] if obj.get("SecondaryObjectiveValues") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "SecondaryObjectiveValues": ( [ObjectiveValueEntry.from_dict(_item) for _item in obj.get("SecondaryObjectiveValues", [])] if obj.get("SecondaryObjectiveValues") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/timeline_segment_base.py b/cyperf/models/timeline_segment_base.py index 060969c..5ab29b1 100644 --- a/cyperf/models/timeline_segment_base.py +++ b/cyperf/models/timeline_segment_base.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timeline_segment_union.py b/cyperf/models/timeline_segment_union.py index a5dd4ca..9783cd2 100644 --- a/cyperf/models/timeline_segment_union.py +++ b/cyperf/models/timeline_segment_union.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timers.py b/cyperf/models/timers.py index 9f34980..39f8da6 100644 --- a/cyperf/models/timers.py +++ b/cyperf/models/timers.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index 9da0bba..7e16c99 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -30,7 +30,7 @@ from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -175,20 +175,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ciphers13": obj.get("ciphers13"), "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, "get-tls-conflicts": obj.get("get-tls-conflicts") if obj.get("get-tls-conflicts") is not None else [], - "groups13": [GroupTLS13.from_dict(_item) for _item in obj["groups13"]] if obj.get("groups13") is not None else None, + "groups13": ( [GroupTLS13.from_dict(_item) for _item in obj.get("groups13", [])] if obj.get("groups13") is not None else None), "immediateClose": obj.get("immediateClose"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "middleBoxEnabled": obj.get("middleBoxEnabled"), "profileId": obj.get("profileId"), - "resolve-tls-conflicts": [Conflict.from_dict(_item) for _item in obj["resolve-tls-conflicts"]] if obj.get("resolve-tls-conflicts") is not None else None, + "resolve-tls-conflicts": ( [Conflict.from_dict(_item) for _item in obj.get("resolve-tls-conflicts", [])] if obj.get("resolve-tls-conflicts") is not None else None), "sendCloseNotify": obj.get("sendCloseNotify"), "sessionReuseCount": obj.get("sessionReuseCount"), "sessionReuseMethod": obj.get("sessionReuseMethod"), "sessionReuseMethod12": obj.get("sessionReuseMethod12"), "sessionReuseMethod13": obj.get("sessionReuseMethod13"), - "sniCertConfigs": [CertConfig.from_dict(_item) for _item in obj["sniCertConfigs"]] if obj.get("sniCertConfigs") is not None else None, + "sniCertConfigs": ( [CertConfig.from_dict(_item) for _item in obj.get("sniCertConfigs", [])] if obj.get("sniCertConfigs") is not None else None), "sniEnabled": obj.get("sniEnabled"), "supportedGroups13": obj.get("supportedGroups13"), "tls12Enabled": obj.get("tls12Enabled"), diff --git a/cyperf/models/track.py b/cyperf/models/track.py index 1bc61b6..e5d9573 100644 --- a/cyperf/models/track.py +++ b/cyperf/models/track.py @@ -23,7 +23,7 @@ from cyperf.models.action import Action from cyperf.models.api_link import APILink from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,10 +112,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [Action.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, - "add-actions": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["add-actions"]] if obj.get("add-actions") is not None else None, + "Actions": ( [Action.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), + "add-actions": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("add-actions", [])] if obj.get("add-actions") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/traffic_agent_info.py b/cyperf/models/traffic_agent_info.py index b2b774f..3f192dc 100644 --- a/cyperf/models/traffic_agent_info.py +++ b/cyperf/models/traffic_agent_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index 637afa5..e480756 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.traffic_settings import TrafficSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/traffic_settings.py b/cyperf/models/traffic_settings.py index 4761640..20f6d66 100644 --- a/cyperf/models/traffic_settings.py +++ b/cyperf/models/traffic_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.transport_profile import TransportProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DefaultTransportProfile": TransportProfile.from_dict(obj["DefaultTransportProfile"]) if obj.get("DefaultTransportProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/transport_profile.py b/cyperf/models/transport_profile.py index 37a0715..e967b52 100644 --- a/cyperf/models/transport_profile.py +++ b/cyperf/models/transport_profile.py @@ -27,7 +27,7 @@ from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -153,7 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, "VlanPrio": obj.get("VlanPrio"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "L4ProfileName": obj.get("L4ProfileName") , "links": obj.get("links") diff --git a/cyperf/models/transport_profile_base.py b/cyperf/models/transport_profile_base.py index 0a19ccd..ab38b44 100644 --- a/cyperf/models/transport_profile_base.py +++ b/cyperf/models/transport_profile_base.py @@ -27,7 +27,7 @@ from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -152,7 +152,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, "VlanPrio": obj.get("VlanPrio"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_range.py b/cyperf/models/tunnel_range.py index db62bee..f6374aa 100644 --- a/cyperf/models/tunnel_range.py +++ b/cyperf/models/tunnel_range.py @@ -26,7 +26,7 @@ from cyperf.models.f5_settings import F5Settings from cyperf.models.fortinet_settings import FortinetSettings from cyperf.models.pangp_settings import PANGPSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -139,7 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelCountPerOuterIP": obj.get("TunnelCountPerOuterIP"), "TunnelEstablishmentTimeout": obj.get("TunnelEstablishmentTimeout"), "VendorType": obj.get("VendorType"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_settings.py b/cyperf/models/tunnel_settings.py index 75bd551..2a57e35 100644 --- a/cyperf/models/tunnel_settings.py +++ b/cyperf/models/tunnel_settings.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.auth_settings import AuthSettings from cyperf.models.tcp_profile import TcpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_stack.py b/cyperf/models/tunnel_stack.py index e08391a..b6bd1fd 100644 --- a/cyperf/models/tunnel_stack.py +++ b/cyperf/models/tunnel_stack.py @@ -25,7 +25,7 @@ from cyperf.models.inner_ip_range import InnerIPRange from cyperf.models.ip_range import IPRange from cyperf.models.tunnel_range import TunnelRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -122,7 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelRange": TunnelRange.from_dict(obj["TunnelRange"]) if obj.get("TunnelRange") is not None else None, "TunnelStackName": obj.get("TunnelStackName"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/type_array_v2_metadata.py b/cyperf/models/type_array_v2_metadata.py index e3179aa..0260633 100644 --- a/cyperf/models/type_array_v2_metadata.py +++ b/cyperf/models/type_array_v2_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "elements": [ArrayV2ElementMetadata.from_dict(_item) for _item in obj["elements"]] if obj.get("elements") is not None else None + "elements": ( [ArrayV2ElementMetadata.from_dict(_item) for _item in obj.get("elements", [])] if obj.get("elements") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/type_info_metadata.py b/cyperf/models/type_info_metadata.py index 21e79ad..9b1c6d1 100644 --- a/cyperf/models/type_info_metadata.py +++ b/cyperf/models/type_info_metadata.py @@ -24,7 +24,7 @@ from cyperf.models.type_int_metadata import TypeIntMetadata from cyperf.models.type_media_metadata import TypeMediaMetadata from cyperf.models.type_string_metadata import TypeStringMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_int_metadata.py b/cyperf/models/type_int_metadata.py index 12a2709..aa003c9 100644 --- a/cyperf/models/type_int_metadata.py +++ b/cyperf/models/type_int_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_media_metadata.py b/cyperf/models/type_media_metadata.py index 1271999..dd7bbf2 100644 --- a/cyperf/models/type_media_metadata.py +++ b/cyperf/models/type_media_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_string_metadata.py b/cyperf/models/type_string_metadata.py index fa73de4..962d68b 100644 --- a/cyperf/models/type_string_metadata.py +++ b/cyperf/models/type_string_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/udp_profile.py b/cyperf/models/udp_profile.py index abd41fa..206fef3 100644 --- a/cyperf/models/udp_profile.py +++ b/cyperf/models/udp_profile.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/update_network_mapping.py b/cyperf/models/update_network_mapping.py index 6d33f33..12a8468 100644 --- a/cyperf/models/update_network_mapping.py +++ b/cyperf/models/update_network_mapping.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/update_port_tags_operation.py b/cyperf/models/update_port_tags_operation.py index 597cb13..6151cd5 100644 --- a/cyperf/models/update_port_tags_operation.py +++ b/cyperf/models/update_port_tags_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), "tagsToAdd": obj.get("tagsToAdd") if obj.get("tagsToAdd") is not None else [], "tagsToRemove": obj.get("tagsToRemove") if obj.get("tagsToRemove") is not None else [] , diff --git a/cyperf/models/validation_message.py b/cyperf/models/validation_message.py index 68f231d..a5475b5 100644 --- a/cyperf/models/validation_message.py +++ b/cyperf/models/validation_message.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/version.py b/cyperf/models/version.py index 9da2dd5..975d2a1 100644 --- a/cyperf/models/version.py +++ b/cyperf/models/version.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/vlan_range.py b/cyperf/models/vlan_range.py index 4cc4201..75897f6 100644 --- a/cyperf/models/vlan_range.py +++ b/cyperf/models/vlan_range.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.static_arp_entry import StaticARPEntry -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -124,13 +124,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CountPerAgent": obj.get("CountPerAgent"), "MaxCountPerAgent": obj.get("MaxCountPerAgent"), "Priority": obj.get("Priority"), - "StaticARPTable": [StaticARPEntry.from_dict(_item) for _item in obj["StaticARPTable"]] if obj.get("StaticARPTable") is not None else None, + "StaticARPTable": ( [StaticARPEntry.from_dict(_item) for _item in obj.get("StaticARPTable", [])] if obj.get("StaticARPTable") is not None else None), "TagProtocolId": obj.get("TagProtocolId"), "VlanAuto": obj.get("VlanAuto"), "VlanEnabled": obj.get("VlanEnabled"), "VlanId": obj.get("VlanId"), "VlanIncr": obj.get("VlanIncr"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/vx_lan_range.py b/cyperf/models/vx_lan_range.py index 6d83bcc..4273611 100644 --- a/cyperf/models/vx_lan_range.py +++ b/cyperf/models/vx_lan_range.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.md2_tlv import Md2Tlv from cyperf.models.vx_lanid import VxLANId -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -168,7 +168,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "HackedInnerRemoteIpIncr": obj.get("HackedInnerRemoteIpIncr"), "HackedInnerRemoteIpStart": obj.get("HackedInnerRemoteIpStart"), - "Md2Tlvs": [Md2Tlv.from_dict(_item) for _item in obj["Md2Tlvs"]] if obj.get("Md2Tlvs") is not None else None, + "Md2Tlvs": ( [Md2Tlv.from_dict(_item) for _item in obj.get("Md2Tlvs", [])] if obj.get("Md2Tlvs") is not None else None), "RemoteVtepIpLocalCount": obj.get("RemoteVtepIpLocalCount"), "RemoteVtepIpLocalIncr": obj.get("RemoteVtepIpLocalIncr"), "RemoteVtepIpRangeIncr": obj.get("RemoteVtepIpRangeIncr"), @@ -178,10 +178,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "VxLANIdIncr": obj.get("VxLANIdIncr"), "VxLANIdPerVtepPairCount": obj.get("VxLANIdPerVtepPairCount"), "VxLANIdStart": obj.get("VxLANIdStart"), - "VxLANIds": [VxLANId.from_dict(_item) for _item in obj["VxLANIds"]] if obj.get("VxLANIds") is not None else None, + "VxLANIds": ( [VxLANId.from_dict(_item) for _item in obj.get("VxLANIds", [])] if obj.get("VxLANIds") is not None else None), "VxLANRangeName": obj.get("VxLANRangeName"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/vx_lan_stack.py b/cyperf/models/vx_lan_stack.py index 5a60da0..d2b3676 100644 --- a/cyperf/models/vx_lan_stack.py +++ b/cyperf/models/vx_lan_stack.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.ip_range import IPRange from cyperf.models.vx_lan_range import VxLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -121,7 +121,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "VxLANRange": VxLANRange.from_dict(obj["VxLANRange"]) if obj.get("VxLANRange") is not None else None, "VxLANStackName": obj.get("VxLANStackName"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/vx_lanid.py b/cyperf/models/vx_lanid.py index 6e1b964..950fc07 100644 --- a/cyperf/models/vx_lanid.py +++ b/cyperf/models/vx_lanid.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/samples/sample_attack_based_script.py b/samples/sample_attack_based_script.py index ace63d8..d1a300e 100644 --- a/samples/sample_attack_based_script.py +++ b/samples/sample_attack_based_script.py @@ -149,23 +149,22 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") diff --git a/samples/sample_create_save_and_export_config.py b/samples/sample_create_save_and_export_config.py index 74db18a..442b05b 100644 --- a/samples/sample_create_save_and_export_config.py +++ b/samples/sample_create_save_and_export_config.py @@ -125,23 +125,22 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") diff --git a/samples/sample_load_and_run_precanned_config.py b/samples/sample_load_and_run_precanned_config.py index 7e238a4..66fc8eb 100644 --- a/samples/sample_load_and_run_precanned_config.py +++ b/samples/sample_load_and_run_precanned_config.py @@ -80,21 +80,20 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") From 3dc82ec07488549769f5e1855196720bb22badb9 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Tue, 3 Feb 2026 03:15:49 -0700 Subject: [PATCH 15/20] Pull request #55: ISGAPPSEC2-36320 rename validate attribute Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-36320-wrapper-rename-validate-attribute to main Squashed commit of the following: commit a644af27b3b0323220adaf159cc9aaefe740e2d1 Author: iustmitu Date: Mon Feb 2 17:27:44 2026 +0200 regenerated wrapper --- README.md | 1 + cyperf/__init__.py | 1 + cyperf/api_client.py | 4 +- cyperf/dynamic_models/__init__.py | 1 + cyperf/models/__init__.py | 1 + cyperf/models/command_metadata.py | 4 +- cyperf/models/config.py | 14 +- cyperf/models/http_profile.py | 4 +- cyperf/models/param_type.py | 1 + cyperf/models/snowflake_exporter.py | 114 +++++++++++++ docs/CommandMetadata.md | 1 + docs/Config.md | 3 +- docs/HTTPProfile.md | 1 + docs/ParamType.md | 2 + docs/SnowflakeExporter.md | 33 ++++ test/test_application.py | 2 + test/test_application_type.py | 6 + test/test_appsec_config.py | 3 +- test/test_attack.py | 2 + test/test_command.py | 3 + test/test_command_metadata.py | 3 + test/test_config.py | 17 +- ...resources_application_types200_response.py | 3 + ...es_application_types200_response_one_of.py | 3 + ...get_resources_http_profiles200_response.py | 1 + ...ources_http_profiles200_response_one_of.py | 1 + test/test_get_sessions200_response.py | 3 +- test/test_get_sessions200_response_one_of.py | 3 +- test/test_http_profile.py | 1 + test/test_scenario.py | 2 + test/test_session.py | 3 +- test/test_snowflake_exporter.py | 161 ++++++++++++++++++ test/test_transport_profile.py | 2 + test/test_transport_profile_base.py | 2 + 34 files changed, 392 insertions(+), 14 deletions(-) create mode 100644 cyperf/models/snowflake_exporter.py create mode 100644 docs/SnowflakeExporter.md create mode 100644 test/test_snowflake_exporter.py diff --git a/README.md b/README.md index 2e3bd44..3ba1812 100644 --- a/README.md +++ b/README.md @@ -718,6 +718,7 @@ Class | Method | HTTP request | Description - [SetNtpOperationInput](docs/SetNtpOperationInput.md) - [SimulatedIdP](docs/SimulatedIdP.md) - [Snapshot](docs/Snapshot.md) + - [SnowflakeExporter](docs/SnowflakeExporter.md) - [SortBodyField](docs/SortBodyField.md) - [SpecificObjective](docs/SpecificObjective.md) - [StartAgentsBatchDeleteRequestInner](docs/StartAgentsBatchDeleteRequestInner.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 5d00207..62104c3 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -387,6 +387,7 @@ from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot +from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField from cyperf.models.specific_objective import SpecificObjective from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner diff --git a/cyperf/api_client.py b/cyperf/api_client.py index 2df7bff..efe6a3d 100644 --- a/cyperf/api_client.py +++ b/cyperf/api_client.py @@ -543,14 +543,14 @@ def __deserialize(self, data, klass): m = re.match(r'List\[(.*)]', klass) assert m is not None, "Malformed List type definition" sub_kls = m.group(1) - return [self.__deserialize(sub_data, sub_kls) + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] elif klass.startswith('Dict['): m = re.match(r'Dict\[([^,]*), (.*)]', klass) assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) - return {k: self.__deserialize(v, sub_kls) + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} elif klass.startswith('typing.List['): diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 7d3d5af..7448a6a 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -353,6 +353,7 @@ SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) SimulatedIdP = DynamicModel('SimulatedIdP', (), {} ) Snapshot = DynamicModel('Snapshot', (), {} ) +SnowflakeExporter = DynamicModel('SnowflakeExporter', (), {} ) SortBodyField = DynamicModel('SortBodyField', (), {} ) SpecificObjective = DynamicModel('SpecificObjective', (), {} ) StartAgentsBatchDeleteRequestInner = DynamicModel('StartAgentsBatchDeleteRequestInner', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index cf00efc..ad858bd 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -353,6 +353,7 @@ class LinkNameException(Exception): from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot +from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField from cyperf.models.specific_objective import SpecificObjective from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index d033c3a..66a8b3e 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -47,8 +47,9 @@ class CommandMetadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + supported_protocols: Optional[List[StrictStr]] = Field(default=None, description="The list of protocols which support this command", alias="SupportedProtocols") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -136,6 +137,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], + "SupportedProtocols": obj.get("SupportedProtocols") if obj.get("SupportedProtocols") is not None else [], "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/config.py b/cyperf/models/config.py index e13d3e4..6cd7440 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -27,6 +27,7 @@ from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.expected_disk_space import ExpectedDiskSpace from cyperf.models.network_profile import NetworkProfile +from cyperf.models.snowflake_exporter import SnowflakeExporter from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -40,11 +41,12 @@ class Config(BaseModel): custom_dashboards: Optional[CustomDashboards] = Field(default=None, alias="CustomDashboards") expected_disk_space: Optional[List[ExpectedDiskSpace]] = Field(default=None, alias="ExpectedDiskSpace") network_profiles: Optional[List[NetworkProfile]] = Field(default=None, alias="NetworkProfiles") + snowflake_exporter: Optional[SnowflakeExporter] = Field(default=None, alias="SnowflakeExporter") traffic_profiles: Optional[List[ApplicationProfile]] = Field(default=None, alias="TrafficProfiles") links: Optional[List[APILink]] = None - validate: Optional[List[Union[StrictBytes, StrictStr]]] = None - _validate_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ValidateConfig" }) - __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "TrafficProfiles", "links", "validate"] + validate_session_config: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="validate-session-config") + _validate_session_config_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ValidateConfig" }) + __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "SnowflakeExporter", "TrafficProfiles", "links", "validate-session-config"] model_config = ConfigDict( populate_by_name=True, @@ -112,6 +114,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['NetworkProfiles'] = _items + # override the default output from pydantic by calling `to_dict()` of snowflake_exporter + if self.snowflake_exporter: + _dict['SnowflakeExporter'] = self.snowflake_exporter.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in traffic_profiles (list) _items = [] if self.traffic_profiles: @@ -145,9 +150,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CustomDashboards": CustomDashboards.from_dict(obj["CustomDashboards"]) if obj.get("CustomDashboards") is not None else None, "ExpectedDiskSpace": ( [ExpectedDiskSpace.from_dict(_item) for _item in obj.get("ExpectedDiskSpace", [])] if obj.get("ExpectedDiskSpace") is not None else None), "NetworkProfiles": ( [NetworkProfile.from_dict(_item) for _item in obj.get("NetworkProfiles", [])] if obj.get("NetworkProfiles") is not None else None), + "SnowflakeExporter": SnowflakeExporter.from_dict(obj["SnowflakeExporter"]) if obj.get("SnowflakeExporter") is not None else None, "TrafficProfiles": ( [ApplicationProfile.from_dict(_item) for _item in obj.get("TrafficProfiles", [])] if obj.get("TrafficProfiles") is not None else None), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), - "validate": obj.get("validate") if obj.get("validate") is not None else [] + "validate-session-config": obj.get("validate-session-config") if obj.get("validate-session-config") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/http_profile.py b/cyperf/models/http_profile.py index 5497708..2294599 100644 --- a/cyperf/models/http_profile.py +++ b/cyperf/models/http_profile.py @@ -40,11 +40,12 @@ class HTTPProfile(BaseModel): http_version: Optional[HTTPVersion] = Field(default=None, alias="HTTPVersion") headers: Optional[Params] = Field(default=None, alias="Headers") is_modified: Optional[StrictBool] = Field(default=None, alias="IsModified") + max_concurrent_streams: Optional[StrictInt] = Field(default=None, description="The maximum number of streams for all HTTP/2 connections.", alias="MaxConcurrentStreams") name: StrictStr = Field(description="The name of the HTTP profile.", alias="Name") params: Optional[List[Params]] = Field(default=None, description="The list of parameters present in the HTTP profile.", alias="Params") use_application_server_headers: Optional[StrictBool] = Field(default=None, alias="UseApplicationServerHeaders") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AdditionalHeaders", "ConnectionPersistence", "ConnectionsMaxTransactions", "Description", "ExternalResourceURL", "HTTPVersion", "Headers", "IsModified", "Name", "Params", "UseApplicationServerHeaders", "links"] + __properties: ClassVar[List[str]] = ["AdditionalHeaders", "ConnectionPersistence", "ConnectionsMaxTransactions", "Description", "ExternalResourceURL", "HTTPVersion", "Headers", "IsModified", "MaxConcurrentStreams", "Name", "Params", "UseApplicationServerHeaders", "links"] model_config = ConfigDict( populate_by_name=True, @@ -127,6 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "HTTPVersion": obj.get("HTTPVersion"), "Headers": Params.from_dict(obj["Headers"]) if obj.get("Headers") is not None else None, "IsModified": obj.get("IsModified"), + "MaxConcurrentStreams": obj.get("MaxConcurrentStreams"), "Name": obj.get("Name"), "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "UseApplicationServerHeaders": obj.get("UseApplicationServerHeaders"), diff --git a/cyperf/models/param_type.py b/cyperf/models/param_type.py index 31c947c..0932def 100644 --- a/cyperf/models/param_type.py +++ b/cyperf/models/param_type.py @@ -38,6 +38,7 @@ class ParamType(str, Enum): MEDIAPROFILE = 'MediaProfile' RANGE = 'range' INT = 'int' + STATS_MINUS_PROFILE = 'stats-profile' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/snowflake_exporter.py b/cyperf/models/snowflake_exporter.py new file mode 100644 index 0000000..f4b9cd8 --- /dev/null +++ b/cyperf/models/snowflake_exporter.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.params import Params +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SnowflakeExporter(BaseModel): + """ + SnowflakeExporter + """ # noqa: E501 + active: StrictBool = Field(description="Indicates whether the snowflake stats exporter is enabled or not.", alias="Active") + polling_interval: Optional[Annotated[int, Field(strict=True)]] = Field(default=None, description="Polling interval used for fetching and uploading data.", alias="PollingInterval") + profile: Optional[Params] = Field(default=None, description="The json snowflake profile.", alias="Profile") + server_url: StrictStr = Field(description="Snowflake endpoint used for uploading data.", alias="ServerURL") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Active", "PollingInterval", "Profile", "ServerURL", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SnowflakeExporter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of profile + if self.profile: + _dict['Profile'] = self.profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SnowflakeExporter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Active": obj.get("Active"), + "PollingInterval": obj.get("PollingInterval"), + "Profile": Params.from_dict(obj["Profile"]) if obj.get("Profile") is not None else None, + "ServerURL": obj.get("ServerURL"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md index 0b09e72..742d740 100644 --- a/docs/CommandMetadata.md +++ b/docs/CommandMetadata.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**supported_protocols** | **List[str]** | The list of protocols which support this command | [optional] **year** | **str** | The year of the strike | [optional] ## Example diff --git a/docs/Config.md b/docs/Config.md index 23bcdb5..ce84a08 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -11,9 +11,10 @@ Name | Type | Description | Notes **custom_dashboards** | [**CustomDashboards**](CustomDashboards.md) | | [optional] **expected_disk_space** | [**List[ExpectedDiskSpace]**](ExpectedDiskSpace.md) | | [optional] **network_profiles** | [**List[NetworkProfile]**](NetworkProfile.md) | | [optional] +**snowflake_exporter** | [**SnowflakeExporter**](SnowflakeExporter.md) | | [optional] **traffic_profiles** | [**List[ApplicationProfile]**](ApplicationProfile.md) | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] -**validate** | **List[bytearray]** | | [optional] +**validate_session_config** | **List[bytearray]** | | [optional] ## Example diff --git a/docs/HTTPProfile.md b/docs/HTTPProfile.md index cd1e565..94d77ff 100644 --- a/docs/HTTPProfile.md +++ b/docs/HTTPProfile.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **http_version** | [**HTTPVersion**](HTTPVersion.md) | | [optional] **headers** | [**Params**](Params.md) | | [optional] **is_modified** | **bool** | | [optional] +**max_concurrent_streams** | **int** | The maximum number of streams for all HTTP/2 connections. | [optional] **name** | **str** | The name of the HTTP profile. | **params** | [**List[Params]**](Params.md) | The list of parameters present in the HTTP profile. | [optional] **use_application_server_headers** | **bool** | | [optional] diff --git a/docs/ParamType.md b/docs/ParamType.md index 95c6556..6b2051d 100644 --- a/docs/ParamType.md +++ b/docs/ParamType.md @@ -25,6 +25,8 @@ * `INT` (value: `'int'`) +* `STATS_MINUS_PROFILE` (value: `'stats-profile'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SnowflakeExporter.md b/docs/SnowflakeExporter.md new file mode 100644 index 0000000..f035ab7 --- /dev/null +++ b/docs/SnowflakeExporter.md @@ -0,0 +1,33 @@ +# SnowflakeExporter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | Indicates whether the snowflake stats exporter is enabled or not. | +**polling_interval** | **int** | Polling interval used for fetching and uploading data. | [optional] +**profile** | [**Params**](Params.md) | The json snowflake profile. | [optional] +**server_url** | **str** | Snowflake endpoint used for uploading data. | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.snowflake_exporter import SnowflakeExporter + +# TODO update the JSON string below +json = "{}" +# create an instance of SnowflakeExporter from a JSON string +snowflake_exporter_instance = SnowflakeExporter.from_json(json) +# print the JSON string representation of the object +print(SnowflakeExporter.to_json()) + +# convert the object into a dict +snowflake_exporter_dict = snowflake_exporter_instance.to_dict() +# create an instance of SnowflakeExporter from a dict +snowflake_exporter_from_dict = SnowflakeExporter.from_dict(snowflake_exporter_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/test/test_application.py b/test/test_application.py index 8e870d8..d30241c 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> Application: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -342,6 +343,7 @@ def make_instance(self, include_optional) -> Application: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_application_type.py b/test/test_application_type.py index e1ddf7f..cab24ec 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -82,6 +82,9 @@ def make_instance(self, include_optional) -> ApplicationType: supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ @@ -365,6 +368,9 @@ def make_instance(self, include_optional) -> ApplicationType: supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ diff --git a/test/test_appsec_config.py b/test/test_appsec_config.py index 756d4c4..395d0ba 100644 --- a/test/test_appsec_config.py +++ b/test/test_appsec_config.py @@ -77,6 +77,7 @@ def make_instance(self, include_optional) -> AppsecConfig: type = '', ) ], ) ], + snowflake_exporter = null, traffic_profiles = [ null ], @@ -90,7 +91,7 @@ def make_instance(self, include_optional) -> AppsecConfig: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ], ), session_id = '', diff --git a/test/test_attack.py b/test/test_attack.py index 45c26c3..86bba3f 100644 --- a/test/test_attack.py +++ b/test/test_attack.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> Attack: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -342,6 +343,7 @@ def make_instance(self, include_optional) -> Attack: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_command.py b/test/test_command.py index 82a2036..522c3ad 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -80,6 +80,9 @@ def make_instance(self, include_optional) -> Command: supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ diff --git a/test/test_command_metadata.py b/test/test_command_metadata.py index 9adbb02..2aa1ceb 100644 --- a/test/test_command_metadata.py +++ b/test/test_command_metadata.py @@ -69,6 +69,9 @@ def make_instance(self, include_optional) -> CommandMetadata: supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '' ) else: diff --git a/test/test_config.py b/test/test_config.py index 2b995f1..c576435 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -113,6 +113,21 @@ def make_instance(self, include_optional) -> Config: type = '', ) ], ) ], + snowflake_exporter = cyperf.models.snowflake_exporter.SnowflakeExporter( + active = True, + polling_interval = 56, + profile = null, + server_url = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), traffic_profiles = [ null ], @@ -126,7 +141,7 @@ def make_instance(self, include_optional) -> Config: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ] ) diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index d61eabc..fe3ffdc 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -84,6 +84,9 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index 4942311..151ab42 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -84,6 +84,9 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ diff --git a/test/test_get_resources_http_profiles200_response.py b/test/test_get_resources_http_profiles200_response.py index 602dc05..b511955 100644 --- a/test/test_get_resources_http_profiles200_response.py +++ b/test/test_get_resources_http_profiles200_response.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> GetResourcesHttpProfiles200Response http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_get_resources_http_profiles200_response_one_of.py b/test/test_get_resources_http_profiles200_response_one_of.py index 1c6c226..6710b73 100644 --- a/test/test_get_resources_http_profiles200_response_one_of.py +++ b/test/test_get_resources_http_profiles200_response_one_of.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> GetResourcesHttpProfiles200Response http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_get_sessions200_response.py b/test/test_get_sessions200_response.py index 678e203..3ecec94 100644 --- a/test/test_get_sessions200_response.py +++ b/test/test_get_sessions200_response.py @@ -81,6 +81,7 @@ def make_instance(self, include_optional) -> GetSessions200Response: type = '', ) ], ) ], + snowflake_exporter = null, traffic_profiles = [ null ], @@ -94,7 +95,7 @@ def make_instance(self, include_optional) -> GetSessions200Response: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ], ), session_id = '', diff --git a/test/test_get_sessions200_response_one_of.py b/test/test_get_sessions200_response_one_of.py index 2588528..7450daf 100644 --- a/test/test_get_sessions200_response_one_of.py +++ b/test/test_get_sessions200_response_one_of.py @@ -81,6 +81,7 @@ def make_instance(self, include_optional) -> GetSessions200ResponseOneOf: type = '', ) ], ) ], + snowflake_exporter = null, traffic_profiles = [ null ], @@ -94,7 +95,7 @@ def make_instance(self, include_optional) -> GetSessions200ResponseOneOf: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ], ), session_id = '', diff --git a/test/test_http_profile.py b/test/test_http_profile.py index a0c4cad..9a7a147 100644 --- a/test/test_http_profile.py +++ b/test/test_http_profile.py @@ -228,6 +228,7 @@ def make_instance(self, include_optional) -> HTTPProfile: supports_dynamic_payload = True, upload_url = '', ), is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_scenario.py b/test/test_scenario.py index 5c32226..9a20c65 100644 --- a/test/test_scenario.py +++ b/test/test_scenario.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> Scenario: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -342,6 +343,7 @@ def make_instance(self, include_optional) -> Scenario: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_session.py b/test/test_session.py index ef1ddf5..c02176a 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -79,6 +79,7 @@ def make_instance(self, include_optional) -> Session: type = '', ) ], ) ], + snowflake_exporter = null, traffic_profiles = [ null ], @@ -92,7 +93,7 @@ def make_instance(self, include_optional) -> Session: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ], ), session_id = '', diff --git a/test/test_snowflake_exporter.py b/test/test_snowflake_exporter.py new file mode 100644 index 0000000..7875924 --- /dev/null +++ b/test/test_snowflake_exporter.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.snowflake_exporter import SnowflakeExporter + +class TestSnowflakeExporter(unittest.TestCase): + """SnowflakeExporter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SnowflakeExporter: + """Test SnowflakeExporter + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SnowflakeExporter` + """ + model = SnowflakeExporter() + if include_optional: + return SnowflakeExporter( + active = True, + polling_interval = 56, + profile = cyperf.models.params.Params( + array_element_type = '', + array_elements = [ + { + 'key' : '' + } + ], + category = '', + category_index = 56, + deprecated_previous_source = '', + description = '', + dictionary_value = { + 'key' : '' + }, + enum = cyperf.models.params_enum.Params_Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) + ], ), + file_value = null, + flow_identifier = True, + is_deprecated = True, + is_modified = True, + media_files = [ + cyperf.models.media_file.MediaFile( + file_value = null, + media_tracks = [ + cyperf.models.media_track.MediaTrack( + bitrate = 56, + bitrate_kbps = 56, + codec = '', + codec_description = '', + track_id = '', + track_type = null, + id = '', ) + ], + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ) + ], + metadata = cyperf.models.param_metadata.ParamMetadata( + type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( + array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( + elements = [ + cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( + id = '', + type = '', ) + ], ), + int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( + max_value = 56, + min_value = 56, ), + media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( + track_id = '', + track_type = '', ), + string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( + charset = '', + max_length = 56, + min_length = 56, ), ), ), + name = '', + param_id = '', + readonly = True, + source = '', + supported_sources = [ + '' + ], + type = '', + value = '', + file_upload = [ + 'YQ==' + ], + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + supports_dynamic_payload = True, + upload_url = '', ), + server_url = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ] + ) + else: + return SnowflakeExporter( + active = True, + server_url = '', + ) + """ + + def testSnowflakeExporter(self): + """Test SnowflakeExporter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py index fc02383..e299cd7 100644 --- a/test/test_transport_profile.py +++ b/test/test_transport_profile.py @@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> TransportProfile: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -273,6 +274,7 @@ def make_instance(self, include_optional) -> TransportProfile: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py index a4ac4ef..4e9641e 100644 --- a/test/test_transport_profile_base.py +++ b/test/test_transport_profile_base.py @@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> TransportProfileBase: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -273,6 +274,7 @@ def make_instance(self, include_optional) -> TransportProfileBase: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( From ed991e8d9de6fa1af363f0488ae989d52b3411bd Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 18 Feb 2026 07:30:56 -0700 Subject: [PATCH 16/20] Pull request #56: ISGAPPSEC2-34528 cyperf-api-wrapper-tests Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34528-cyperf-api-wrapper-tests to main Squashed commit of the following: commit 6c292e19d99c8709e38b5d952cba095b8e82974e Author: iustmitu Date: Wed Feb 18 16:21:38 2026 +0200 deleted testing stage in jenkins commit 01ef0b9c93eafc747d2b3356c4c6ffc9d2921599 Author: iustmitu Date: Fri Feb 13 16:22:30 2026 +0200 deleted unit tests --- README.md | 3 - jenkins/JenkinsFile | 7 - pyproject.toml | 4 +- test/__init__.py | 0 test/test_action.py | 175 ---- test/test_action_base.py | 175 ---- test/test_action_input.py | 79 -- test/test_action_input_find_param.py | 73 -- test/test_action_metadata.py | 146 --- test/test_activation_code_info.py | 62 -- test/test_activation_code_list_request.py | 55 -- test/test_activation_code_request.py | 54 -- test/test_add_action_info.py | 60 -- test/test_add_input.py | 83 -- test/test_advanced_settings.py | 58 -- test/test_agent.py | 149 --- test/test_agent_assignment_by_port.py | 70 -- test/test_agent_assignment_details.py | 74 -- test/test_agent_assignments.py | 71 -- test/test_agent_cpu_info.py | 58 -- test/test_agent_features.py | 55 -- test/test_agent_optimization_mode.py | 35 - test/test_agent_release.py | 53 -- test/test_agent_reservation.py | 62 -- test/test_agent_to_be_rebooted.py | 53 -- test/test_agents_api.py | 203 ---- test/test_agents_group.py | 58 -- test/test_api_link.py | 59 -- test/test_api_relationship.py | 35 - test/test_app_exchange.py | 116 --- test/test_app_flow.py | 123 --- test/test_app_flow_desc.py | 57 -- test/test_app_flow_input.py | 56 -- test/test_app_flow_input_find_param.py | 65 -- test/test_app_id.py | 53 -- test/test_app_mode.py | 54 -- test/test_application.py | 739 --------------- test/test_application_profile.py | 163 ---- test/test_application_resources_api.py | 892 ------------------ test/test_application_type.py | 445 --------- test/test_appsec_app.py | 176 ---- test/test_appsec_app_metadata.py | 167 ---- ...test_appsec_app_metadata_keywords_inner.py | 52 - test/test_appsec_attack.py | 84 -- test/test_appsec_config.py | 127 --- test/test_archive_info.py | 67 -- test/test_array_v2_element_metadata.py | 54 -- test/test_async_context.py | 60 -- test/test_attack.py | 714 -------------- test/test_attack_action.py | 175 ---- test/test_attack_metadata.py | 67 -- test/test_attack_metadata_keywords_inner.py | 52 - test/test_attack_objectives_and_timeline.py | 65 -- test/test_attack_profile.py | 139 --- test/test_attack_timeline_segment.py | 65 -- test/test_attack_track.py | 78 -- test/test_auth_method_type.py | 35 - test/test_auth_profile.py | 229 ----- test/test_auth_profile_metadata.py | 74 -- ...l_openid_connect_token_post200_response.py | 55 -- test/test_auth_settings.py | 556 ----------- test/test_authenticate200_response.py | 56 -- test/test_authentication_settings.py | 251 ----- test/test_authorization_api.py | 38 - test/test_automatic_ip_type.py | 35 - test/test_broker.py | 63 -- test/test_brokers_api.py | 62 -- test/test_capture.py | 105 --- test/test_capture_input.py | 60 -- test/test_capture_input_find_param.py | 69 -- test/test_capture_settings.py | 58 -- test/test_category.py | 59 -- test/test_category_filter.py | 56 -- test/test_category_value.py | 54 -- test/test_cert_config.py | 360 ------- test/test_certificate.py | 63 -- .../test_change_aggregation_mode_operation.py | 56 -- test/test_change_link_state_operation.py | 55 -- test/test_chassis_info.py | 57 -- test/test_choice.py | 56 -- test/test_cipher_tls12.py | 35 - test/test_cipher_tls13.py | 35 - test/test_cisco_any_connect_settings.py | 208 ---- test/test_cisco_encapsulation.py | 81 -- test/test_clear_ports_ownership_operation.py | 63 -- test/test_command.py | 200 ---- test/test_command_metadata.py | 89 -- test/test_compute_node.py | 92 -- test/test_config.py | 160 ---- test/test_config_category.py | 67 -- test/test_config_id.py | 53 -- test/test_config_metadata.py | 84 -- .../test_config_metadata_config_data_value.py | 51 - test/test_config_sub_category.py | 53 -- test/test_config_validation.py | 69 -- test/test_configurations_api.py | 120 --- test/test_conflict.py | 62 -- test/test_connection.py | 196 ---- test/test_connection_persistence.py | 35 - test/test_consumer.py | 55 -- test/test_controller.py | 115 --- test/test_counted_feature_consumer.py | 64 -- test/test_counted_feature_stats.py | 76 -- test/test_create_app_operation.py | 100 -- ...st_create_app_or_attack_operation_input.py | 67 -- test/test_custom_dashboards.py | 74 -- test/test_custom_import_handler.py | 61 -- test/test_custom_stat.py | 55 -- test/test_dashboard.py | 54 -- test/test_data_migration_api.py | 46 - test/test_data_type.py | 58 -- test/test_data_type_values_inner.py | 54 -- test/test_definition.py | 53 -- test/test_delete_input.py | 56 -- test/test_dh_p1_group.py | 35 - test/test_diagnostic_component.py | 71 -- test/test_diagnostic_component_context.py | 83 -- test/test_diagnostic_options.py | 54 -- test/test_diagnostics_api.py | 74 -- test/test_disk_usage.py | 77 -- test/test_dns_resolver.py | 68 -- test/test_dns_server.py | 58 -- test/test_dtls_settings.py | 149 --- test/test_dut_network.py | 789 ---------------- test/test_edit_action_input.py | 68 -- test/test_edit_app_operation.py | 150 --- test/test_effective_ports.py | 57 -- test/test_emulated_router.py | 67 -- test/test_emulated_router_range.py | 120 --- test/test_emulated_subnet_config.py | 72 -- test/test_enc_p1_algorithm.py | 35 - test/test_enc_p2_algorithm.py | 35 - test/test_endpoint.py | 78 -- test/test_entitlement_code_info.py | 70 -- test/test_entitlement_code_request.py | 54 -- test/test_enum.py | 60 -- test/test_error_description.py | 54 -- test/test_error_response.py | 53 -- test/test_esp_over_udp_settings.py | 70 -- test/test_eth_range.py | 79 -- test/test_eula_details.py | 57 -- test/test_eula_summary.py | 55 -- test/test_exchange.py | 57 -- test/test_exchange_order.py | 54 -- test/test_exchange_payload.py | 54 -- test/test_expected_disk_space.py | 76 -- test/test_expected_disk_space_message.py | 58 -- test/test_expected_disk_space_pretty_size.py | 58 -- test/test_expected_disk_space_size.py | 58 -- test/test_export_all_operation.py | 56 -- test/test_export_apps_operation_input.py | 56 -- test/test_export_files_operation_input.py | 65 -- test/test_export_files_request.py | 59 -- test/test_export_package_operation.py | 57 -- test/test_external_resource_info.py | 53 -- test/test_f5_encapsulation.py | 81 -- test/test_f5_settings.py | 202 ---- test/test_feature.py | 70 -- test/test_feature_reservation.py | 60 -- test/test_feature_reservation_reserve.py | 58 -- test/test_file_metadata.py | 54 -- test/test_file_value.py | 59 -- test/test_filter.py | 54 -- test/test_filtered_stat.py | 58 -- test/test_find_param_matches_operation.py | 81 -- test/test_fortinet_encapsulation.py | 81 -- test/test_fortinet_settings.py | 202 ---- test/test_fulfillment_request.py | 56 -- test/test_generate_all_operation.py | 53 -- test/test_generate_csv_reports_operation.py | 66 -- test/test_generate_pdf_report_operation.py | 54 -- test/test_generic_file.py | 70 -- test/test_get_agent_tags200_response.py | 61 -- .../test_get_agent_tags200_response_one_of.py | 61 -- test/test_get_agents200_response.py | 141 --- test/test_get_agents200_response_one_of.py | 141 --- test/test_get_agents_tags200_response.py | 62 -- ...test_get_agents_tags200_response_one_of.py | 62 -- .../test_get_application_types200_response.py | 206 ---- ...et_application_types200_response_one_of.py | 206 ---- test/test_get_apps200_response.py | 136 --- test/test_get_apps200_response_one_of.py | 136 --- test/test_get_apps_operation.py | 73 -- ..._get_async_operation_result200_response.py | 104 -- test/test_get_attacks200_response.py | 87 -- test/test_get_attacks200_response_one_of.py | 87 -- test/test_get_attacks_operation.py | 73 -- test/test_get_auth_profiles200_response.py | 152 --- ...st_get_auth_profiles200_response_one_of.py | 152 --- test/test_get_brokers200_response.py | 67 -- test/test_get_brokers200_response_one_of.py | 67 -- test/test_get_categories_operation.py | 59 -- test/test_get_certificates200_response.py | 72 -- ...est_get_certificates200_response_one_of.py | 72 -- ...fig_categorie_subcategories200_response.py | 57 -- ...egorie_subcategories200_response_one_of.py | 57 -- .../test_get_config_categories200_response.py | 71 -- ...et_config_categories200_response_one_of.py | 71 -- test/test_get_configs200_response.py | 88 -- test/test_get_configs200_response_one_of.py | 88 -- test/test_get_consumers200_response.py | 58 -- test/test_get_consumers200_response_one_of.py | 58 -- test/test_get_controllers200_response.py | 119 --- ...test_get_controllers200_response_one_of.py | 119 --- ...et_custom_import_operations200_response.py | 64 -- ...om_import_operations200_response_one_of.py | 64 -- ...st_get_disk_usage_consumers200_response.py | 59 -- ...disk_usage_consumers200_response_one_of.py | 59 -- test/test_get_files200_response.py | 61 -- test/test_get_files200_response_one_of.py | 61 -- test/test_get_http_profiles200_response.py | 162 ---- ...st_get_http_profiles200_response_one_of.py | 162 ---- ...ense_async_operation_result200_response.py | 106 --- test/test_get_license_servers200_response.py | 67 -- ..._get_license_servers200_response_one_of.py | 67 -- test/test_get_meta200_response.py | 58 -- test/test_get_meta200_response_one_of.py | 58 -- test/test_get_notifications200_response.py | 68 -- ...st_get_notifications200_response_one_of.py | 68 -- test/test_get_plugins200_response.py | 61 -- test/test_get_plugins200_response_one_of.py | 61 -- ...resources_application_types200_response.py | 238 ----- ...es_application_types200_response_one_of.py | 238 ----- test/test_get_resources_apps200_response.py | 180 ---- ...t_get_resources_apps200_response_one_of.py | 180 ---- .../test_get_resources_attacks200_response.py | 88 -- ...et_resources_attacks200_response_one_of.py | 88 -- ...get_resources_auth_profiles200_response.py | 153 --- ...ources_auth_profiles200_response_one_of.py | 153 --- ..._get_resources_certificates200_response.py | 74 -- ...sources_certificates200_response_one_of.py | 74 -- ...es_custom_import_operations200_response.py | 65 -- ...om_import_operations200_response_one_of.py | 65 -- ...get_resources_http_profiles200_response.py | 164 ---- ...ources_http_profiles200_response_one_of.py | 164 ---- test/test_get_result_files200_response.py | 62 -- ...est_get_result_files200_response_one_of.py | 62 -- test/test_get_result_stats200_response.py | 158 ---- ...est_get_result_stats200_response_one_of.py | 158 ---- test/test_get_result_tags200_response.py | 59 -- ...test_get_result_tags200_response_one_of.py | 59 -- test/test_get_results200_response.py | 114 --- test/test_get_results200_response_one_of.py | 114 --- test/test_get_results_tags200_response.py | 60 -- ...est_get_results_tags200_response_one_of.py | 60 -- test/test_get_session_meta200_response.py | 59 -- ...est_get_session_meta200_response_one_of.py | 59 -- test/test_get_sessions200_response.py | 158 ---- test/test_get_sessions200_response_one_of.py | 158 ---- test/test_get_stats200_response.py | 154 --- test/test_get_stats200_response_one_of.py | 154 --- test/test_get_stats_plugins200_response.py | 62 -- ...st_get_stats_plugins200_response_one_of.py | 62 -- test/test_get_strikes_operation.py | 74 -- test/test_group_tls13.py | 56 -- test/test_hash_p1_algorithm.py | 35 - test/test_hash_p2_algorithm.py | 35 - test/test_health_check_config.py | 159 ---- test/test_health_issue.py | 54 -- test/test_host_id.py | 53 -- test/test_http_profile.py | 354 ------- test/test_http_req_meta.py | 62 -- test/test_http_res_meta.py | 61 -- test/test_http_version.py | 35 - test/test_id_p_signature_algo.py | 35 - test/test_import_all_operation.py | 87 -- test/test_import_offline_license_result.py | 122 --- test/test_ingest_operation.py | 60 -- test/test_inner_ip_range.py | 55 -- test/test_interface.py | 60 -- test/test_ip_mask.py | 54 -- test/test_ip_network.py | 294 ------ test/test_ip_preference.py | 35 - test/test_ip_range.py | 118 --- test/test_ip_sec_range.py | 129 --- test/test_ip_sec_stack.py | 260 ----- test/test_ip_ver.py | 35 - test/test_license.py | 106 --- test/test_license_receipt.py | 116 --- test/test_license_server_metadata.py | 63 -- test/test_license_servers_api.py | 62 -- test/test_licensing_api.py | 165 ---- test/test_link.py | 58 -- test/test_load_config_operation.py | 53 -- test/test_local_subnet_config.py | 72 -- test/test_log_config.py | 53 -- test/test_log_level.py | 35 - test/test_mac_dtls_stack.py | 158 ---- test/test_mapping_type.py | 35 - test/test_marked_as_deleted.py | 54 -- test/test_md2_tlv.py | 60 -- test/test_media_file.py | 81 -- test/test_media_track.py | 62 -- test/test_metadata.py | 85 -- test/test_mos_mode.py | 35 - test/test_name_id_format.py | 35 - test/test_name_server.py | 53 -- test/test_network_mapping.py | 67 -- test/test_network_meshing.py | 55 -- test/test_network_profile.py | 70 -- test/test_network_segment_base.py | 59 -- test/test_nodes_by_controller.py | 56 -- test/test_nodes_power_cycle_operation.py | 59 -- test/test_notification.py | 64 -- test/test_notification_counts.py | 56 -- test/test_notifications_api.py | 70 -- test/test_ntp_info.py | 57 -- test/test_objective_type.py | 35 - test/test_objective_unit.py | 35 - test/test_objective_value_entry.py | 57 -- test/test_objectives_and_timeline.py | 118 --- test/test_open_api_definitions.py | 55 -- test/test_p1_config.py | 64 -- test/test_p2_config.py | 64 -- test/test_pair.py | 55 -- test/test_pangp_encapsulation.py | 80 -- test/test_pangp_settings.py | 214 ----- test/test_param_metadata.py | 69 -- test/test_param_metadata_type_info.py | 68 -- .../test_param_metadata_type_info_array_v2.py | 57 -- ...adata_type_info_array_v2_elements_inner.py | 54 -- test/test_param_metadata_type_info_int.py | 54 -- test/test_param_metadata_type_info_media.py | 54 -- test/test_param_metadata_type_info_string.py | 55 -- test/test_param_source_type.py | 35 - test/test_param_type.py | 35 - test/test_parameter.py | 138 --- test/test_parameter_match.py | 60 -- test/test_parameter_meta.py | 64 -- test/test_parameter_metadata.py | 111 --- test/test_params.py | 153 --- test/test_params_enum.py | 59 -- test/test_payload_meta.py | 58 -- test/test_payload_metadata.py | 56 -- test/test_pep_dut.py | 372 -------- test/test_pfs_p2_group.py | 35 - test/test_playlist_metadata.py | 54 -- test/test_plugin.py | 58 -- test/test_plugin_stats.py | 59 -- test/test_port.py | 63 -- test/test_port_settings.py | 79 -- test/test_ports_by_controller.py | 60 -- test/test_ports_by_node.py | 56 -- test/test_prepare_test_operation.py | 75 -- test/test_prepared_test_options.py | 66 -- test/test_prf_p1_algorithm.py | 35 - test/test_protected_subnet_config.py | 66 -- test/test_quic_profile.py | 224 ----- test/test_quic_version.py | 35 - test/test_reboot_operation_input.py | 57 -- test/test_reboot_ports_operation.py | 63 -- test/test_reference.py | 54 -- test/test_regex_match.py | 55 -- test/test_release_operation_input.py | 57 -- test/test_remote_access.py | 57 -- test/test_remote_subnet_config.py | 66 -- test/test_rename_input.py | 54 -- test/test_reorder_action_input.py | 54 -- test/test_reorder_exchanges_input.py | 59 -- test/test_replay_capture.py | 140 --- test/test_reports_api.py | 58 -- test/test_required_file_types.py | 56 -- test/test_reserve_operation_input.py | 79 -- test/test_result_file_metadata.py | 58 -- test/test_result_metadata.py | 110 --- test/test_results_group.py | 56 -- test/test_rtp_encryption_mode.py | 35 - test/test_rtp_profile.py | 58 -- test/test_rtp_profile_meta.py | 59 -- test/test_save_config_operation.py | 53 -- test/test_scenario.py | 489 ---------- test/test_secondary_objective.py | 63 -- test/test_segment_type.py | 35 - test/test_selected_env.py | 65 -- test/test_session.py | 163 ---- test/test_session_reuse_method_tls12.py | 35 - test/test_session_reuse_method_tls13.py | 35 - test/test_sessions_api.py | 215 ----- test/test_set_aggregation_mode_operation.py | 60 -- test/test_set_app_operation.py | 57 -- test/test_set_dpdk_mode_operation_input.py | 56 -- test/test_set_link_state_operation.py | 64 -- test/test_set_ntp_operation_input.py | 58 -- test/test_simulated_id_p.py | 107 --- test/test_snapshot.py | 58 -- test/test_snowflake_exporter.py | 161 ---- test/test_sort_body_field.py | 54 -- test/test_specific_objective.py | 74 -- ...start_agents_batch_delete_request_inner.py | 53 -- test/test_start_batch_delete_request_inner.py | 52 - ...t_start_root_batch_delete_request_inner.py | 52 - test/test_stateless_stream.py | 78 -- test/test_static_arp_entry.py | 61 -- test/test_statistics_api.py | 69 -- test/test_stats_result.py | 154 --- test/test_steady_segment.py | 63 -- test/test_step_segment.py | 63 -- test/test_stream_direction.py | 35 - test/test_stream_payload_type.py | 35 - test/test_stream_profile.py | 61 -- test/test_supported_group_tls13.py | 35 - test/test_switch_app_operation.py | 52 - test/test_system_info.py | 66 -- test/test_tcp_profile.py | 77 -- test/test_test_info.py | 67 -- test/test_test_operations_api.py | 67 -- test/test_test_results_api.py | 127 --- test/test_test_state_changed_operation.py | 60 -- test/test_time_value.py | 53 -- test/test_timeline_segment.py | 81 -- test/test_timeline_segment_base.py | 59 -- test/test_timeline_segment_union.py | 67 -- test/test_timers.py | 58 -- test/test_tls_profile.py | 420 --------- test/test_track.py | 78 -- test/test_track_type.py | 35 - test/test_traffic_agent_info.py | 54 -- test/test_traffic_profile_base.py | 77 -- test/test_traffic_settings.py | 63 -- test/test_transport_profile.py | 526 ----------- test/test_transport_profile_base.py | 524 ---------- test/test_tunnel_range.py | 91 -- test/test_tunnel_settings.py | 107 --- test/test_tunnel_stack.py | 123 --- test/test_type_array_v2_metadata.py | 57 -- test/test_type_info_metadata.py | 68 -- test/test_type_int_metadata.py | 54 -- test/test_type_media_metadata.py | 54 -- test/test_type_string_metadata.py | 55 -- test/test_udp_profile.py | 59 -- test/test_update_network_mapping.py | 62 -- test/test_update_port_tags_operation.py | 69 -- test/test_utils_api.py | 169 ---- test/test_validation_message.py | 56 -- test/test_version.py | 54 -- test/test_vlan_range.py | 82 -- test/test_vx_lan_range.py | 100 -- test/test_vx_lan_stack.py | 166 ---- test/test_vx_lanid.py | 56 -- 439 files changed, 1 insertion(+), 40914 deletions(-) delete mode 100644 test/__init__.py delete mode 100644 test/test_action.py delete mode 100644 test/test_action_base.py delete mode 100644 test/test_action_input.py delete mode 100644 test/test_action_input_find_param.py delete mode 100644 test/test_action_metadata.py delete mode 100644 test/test_activation_code_info.py delete mode 100644 test/test_activation_code_list_request.py delete mode 100644 test/test_activation_code_request.py delete mode 100644 test/test_add_action_info.py delete mode 100644 test/test_add_input.py delete mode 100644 test/test_advanced_settings.py delete mode 100644 test/test_agent.py delete mode 100644 test/test_agent_assignment_by_port.py delete mode 100644 test/test_agent_assignment_details.py delete mode 100644 test/test_agent_assignments.py delete mode 100644 test/test_agent_cpu_info.py delete mode 100644 test/test_agent_features.py delete mode 100644 test/test_agent_optimization_mode.py delete mode 100644 test/test_agent_release.py delete mode 100644 test/test_agent_reservation.py delete mode 100644 test/test_agent_to_be_rebooted.py delete mode 100644 test/test_agents_api.py delete mode 100644 test/test_agents_group.py delete mode 100644 test/test_api_link.py delete mode 100644 test/test_api_relationship.py delete mode 100644 test/test_app_exchange.py delete mode 100644 test/test_app_flow.py delete mode 100644 test/test_app_flow_desc.py delete mode 100644 test/test_app_flow_input.py delete mode 100644 test/test_app_flow_input_find_param.py delete mode 100644 test/test_app_id.py delete mode 100644 test/test_app_mode.py delete mode 100644 test/test_application.py delete mode 100644 test/test_application_profile.py delete mode 100644 test/test_application_resources_api.py delete mode 100644 test/test_application_type.py delete mode 100644 test/test_appsec_app.py delete mode 100644 test/test_appsec_app_metadata.py delete mode 100644 test/test_appsec_app_metadata_keywords_inner.py delete mode 100644 test/test_appsec_attack.py delete mode 100644 test/test_appsec_config.py delete mode 100644 test/test_archive_info.py delete mode 100644 test/test_array_v2_element_metadata.py delete mode 100644 test/test_async_context.py delete mode 100644 test/test_attack.py delete mode 100644 test/test_attack_action.py delete mode 100644 test/test_attack_metadata.py delete mode 100644 test/test_attack_metadata_keywords_inner.py delete mode 100644 test/test_attack_objectives_and_timeline.py delete mode 100644 test/test_attack_profile.py delete mode 100644 test/test_attack_timeline_segment.py delete mode 100644 test/test_attack_track.py delete mode 100644 test/test_auth_method_type.py delete mode 100644 test/test_auth_profile.py delete mode 100644 test/test_auth_profile_metadata.py delete mode 100644 test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py delete mode 100644 test/test_auth_settings.py delete mode 100644 test/test_authenticate200_response.py delete mode 100644 test/test_authentication_settings.py delete mode 100644 test/test_authorization_api.py delete mode 100644 test/test_automatic_ip_type.py delete mode 100644 test/test_broker.py delete mode 100644 test/test_brokers_api.py delete mode 100644 test/test_capture.py delete mode 100644 test/test_capture_input.py delete mode 100644 test/test_capture_input_find_param.py delete mode 100644 test/test_capture_settings.py delete mode 100644 test/test_category.py delete mode 100644 test/test_category_filter.py delete mode 100644 test/test_category_value.py delete mode 100644 test/test_cert_config.py delete mode 100644 test/test_certificate.py delete mode 100644 test/test_change_aggregation_mode_operation.py delete mode 100644 test/test_change_link_state_operation.py delete mode 100644 test/test_chassis_info.py delete mode 100644 test/test_choice.py delete mode 100644 test/test_cipher_tls12.py delete mode 100644 test/test_cipher_tls13.py delete mode 100644 test/test_cisco_any_connect_settings.py delete mode 100644 test/test_cisco_encapsulation.py delete mode 100644 test/test_clear_ports_ownership_operation.py delete mode 100644 test/test_command.py delete mode 100644 test/test_command_metadata.py delete mode 100644 test/test_compute_node.py delete mode 100644 test/test_config.py delete mode 100644 test/test_config_category.py delete mode 100644 test/test_config_id.py delete mode 100644 test/test_config_metadata.py delete mode 100644 test/test_config_metadata_config_data_value.py delete mode 100644 test/test_config_sub_category.py delete mode 100644 test/test_config_validation.py delete mode 100644 test/test_configurations_api.py delete mode 100644 test/test_conflict.py delete mode 100644 test/test_connection.py delete mode 100644 test/test_connection_persistence.py delete mode 100644 test/test_consumer.py delete mode 100644 test/test_controller.py delete mode 100644 test/test_counted_feature_consumer.py delete mode 100644 test/test_counted_feature_stats.py delete mode 100644 test/test_create_app_operation.py delete mode 100644 test/test_create_app_or_attack_operation_input.py delete mode 100644 test/test_custom_dashboards.py delete mode 100644 test/test_custom_import_handler.py delete mode 100644 test/test_custom_stat.py delete mode 100644 test/test_dashboard.py delete mode 100644 test/test_data_migration_api.py delete mode 100644 test/test_data_type.py delete mode 100644 test/test_data_type_values_inner.py delete mode 100644 test/test_definition.py delete mode 100644 test/test_delete_input.py delete mode 100644 test/test_dh_p1_group.py delete mode 100644 test/test_diagnostic_component.py delete mode 100644 test/test_diagnostic_component_context.py delete mode 100644 test/test_diagnostic_options.py delete mode 100644 test/test_diagnostics_api.py delete mode 100644 test/test_disk_usage.py delete mode 100644 test/test_dns_resolver.py delete mode 100644 test/test_dns_server.py delete mode 100644 test/test_dtls_settings.py delete mode 100644 test/test_dut_network.py delete mode 100644 test/test_edit_action_input.py delete mode 100644 test/test_edit_app_operation.py delete mode 100644 test/test_effective_ports.py delete mode 100644 test/test_emulated_router.py delete mode 100644 test/test_emulated_router_range.py delete mode 100644 test/test_emulated_subnet_config.py delete mode 100644 test/test_enc_p1_algorithm.py delete mode 100644 test/test_enc_p2_algorithm.py delete mode 100644 test/test_endpoint.py delete mode 100644 test/test_entitlement_code_info.py delete mode 100644 test/test_entitlement_code_request.py delete mode 100644 test/test_enum.py delete mode 100644 test/test_error_description.py delete mode 100644 test/test_error_response.py delete mode 100644 test/test_esp_over_udp_settings.py delete mode 100644 test/test_eth_range.py delete mode 100644 test/test_eula_details.py delete mode 100644 test/test_eula_summary.py delete mode 100644 test/test_exchange.py delete mode 100644 test/test_exchange_order.py delete mode 100644 test/test_exchange_payload.py delete mode 100644 test/test_expected_disk_space.py delete mode 100644 test/test_expected_disk_space_message.py delete mode 100644 test/test_expected_disk_space_pretty_size.py delete mode 100644 test/test_expected_disk_space_size.py delete mode 100644 test/test_export_all_operation.py delete mode 100644 test/test_export_apps_operation_input.py delete mode 100644 test/test_export_files_operation_input.py delete mode 100644 test/test_export_files_request.py delete mode 100644 test/test_export_package_operation.py delete mode 100644 test/test_external_resource_info.py delete mode 100644 test/test_f5_encapsulation.py delete mode 100644 test/test_f5_settings.py delete mode 100644 test/test_feature.py delete mode 100644 test/test_feature_reservation.py delete mode 100644 test/test_feature_reservation_reserve.py delete mode 100644 test/test_file_metadata.py delete mode 100644 test/test_file_value.py delete mode 100644 test/test_filter.py delete mode 100644 test/test_filtered_stat.py delete mode 100644 test/test_find_param_matches_operation.py delete mode 100644 test/test_fortinet_encapsulation.py delete mode 100644 test/test_fortinet_settings.py delete mode 100644 test/test_fulfillment_request.py delete mode 100644 test/test_generate_all_operation.py delete mode 100644 test/test_generate_csv_reports_operation.py delete mode 100644 test/test_generate_pdf_report_operation.py delete mode 100644 test/test_generic_file.py delete mode 100644 test/test_get_agent_tags200_response.py delete mode 100644 test/test_get_agent_tags200_response_one_of.py delete mode 100644 test/test_get_agents200_response.py delete mode 100644 test/test_get_agents200_response_one_of.py delete mode 100644 test/test_get_agents_tags200_response.py delete mode 100644 test/test_get_agents_tags200_response_one_of.py delete mode 100644 test/test_get_application_types200_response.py delete mode 100644 test/test_get_application_types200_response_one_of.py delete mode 100644 test/test_get_apps200_response.py delete mode 100644 test/test_get_apps200_response_one_of.py delete mode 100644 test/test_get_apps_operation.py delete mode 100644 test/test_get_async_operation_result200_response.py delete mode 100644 test/test_get_attacks200_response.py delete mode 100644 test/test_get_attacks200_response_one_of.py delete mode 100644 test/test_get_attacks_operation.py delete mode 100644 test/test_get_auth_profiles200_response.py delete mode 100644 test/test_get_auth_profiles200_response_one_of.py delete mode 100644 test/test_get_brokers200_response.py delete mode 100644 test/test_get_brokers200_response_one_of.py delete mode 100644 test/test_get_categories_operation.py delete mode 100644 test/test_get_certificates200_response.py delete mode 100644 test/test_get_certificates200_response_one_of.py delete mode 100644 test/test_get_config_categorie_subcategories200_response.py delete mode 100644 test/test_get_config_categorie_subcategories200_response_one_of.py delete mode 100644 test/test_get_config_categories200_response.py delete mode 100644 test/test_get_config_categories200_response_one_of.py delete mode 100644 test/test_get_configs200_response.py delete mode 100644 test/test_get_configs200_response_one_of.py delete mode 100644 test/test_get_consumers200_response.py delete mode 100644 test/test_get_consumers200_response_one_of.py delete mode 100644 test/test_get_controllers200_response.py delete mode 100644 test/test_get_controllers200_response_one_of.py delete mode 100644 test/test_get_custom_import_operations200_response.py delete mode 100644 test/test_get_custom_import_operations200_response_one_of.py delete mode 100644 test/test_get_disk_usage_consumers200_response.py delete mode 100644 test/test_get_disk_usage_consumers200_response_one_of.py delete mode 100644 test/test_get_files200_response.py delete mode 100644 test/test_get_files200_response_one_of.py delete mode 100644 test/test_get_http_profiles200_response.py delete mode 100644 test/test_get_http_profiles200_response_one_of.py delete mode 100644 test/test_get_license_async_operation_result200_response.py delete mode 100644 test/test_get_license_servers200_response.py delete mode 100644 test/test_get_license_servers200_response_one_of.py delete mode 100644 test/test_get_meta200_response.py delete mode 100644 test/test_get_meta200_response_one_of.py delete mode 100644 test/test_get_notifications200_response.py delete mode 100644 test/test_get_notifications200_response_one_of.py delete mode 100644 test/test_get_plugins200_response.py delete mode 100644 test/test_get_plugins200_response_one_of.py delete mode 100644 test/test_get_resources_application_types200_response.py delete mode 100644 test/test_get_resources_application_types200_response_one_of.py delete mode 100644 test/test_get_resources_apps200_response.py delete mode 100644 test/test_get_resources_apps200_response_one_of.py delete mode 100644 test/test_get_resources_attacks200_response.py delete mode 100644 test/test_get_resources_attacks200_response_one_of.py delete mode 100644 test/test_get_resources_auth_profiles200_response.py delete mode 100644 test/test_get_resources_auth_profiles200_response_one_of.py delete mode 100644 test/test_get_resources_certificates200_response.py delete mode 100644 test/test_get_resources_certificates200_response_one_of.py delete mode 100644 test/test_get_resources_custom_import_operations200_response.py delete mode 100644 test/test_get_resources_custom_import_operations200_response_one_of.py delete mode 100644 test/test_get_resources_http_profiles200_response.py delete mode 100644 test/test_get_resources_http_profiles200_response_one_of.py delete mode 100644 test/test_get_result_files200_response.py delete mode 100644 test/test_get_result_files200_response_one_of.py delete mode 100644 test/test_get_result_stats200_response.py delete mode 100644 test/test_get_result_stats200_response_one_of.py delete mode 100644 test/test_get_result_tags200_response.py delete mode 100644 test/test_get_result_tags200_response_one_of.py delete mode 100644 test/test_get_results200_response.py delete mode 100644 test/test_get_results200_response_one_of.py delete mode 100644 test/test_get_results_tags200_response.py delete mode 100644 test/test_get_results_tags200_response_one_of.py delete mode 100644 test/test_get_session_meta200_response.py delete mode 100644 test/test_get_session_meta200_response_one_of.py delete mode 100644 test/test_get_sessions200_response.py delete mode 100644 test/test_get_sessions200_response_one_of.py delete mode 100644 test/test_get_stats200_response.py delete mode 100644 test/test_get_stats200_response_one_of.py delete mode 100644 test/test_get_stats_plugins200_response.py delete mode 100644 test/test_get_stats_plugins200_response_one_of.py delete mode 100644 test/test_get_strikes_operation.py delete mode 100644 test/test_group_tls13.py delete mode 100644 test/test_hash_p1_algorithm.py delete mode 100644 test/test_hash_p2_algorithm.py delete mode 100644 test/test_health_check_config.py delete mode 100644 test/test_health_issue.py delete mode 100644 test/test_host_id.py delete mode 100644 test/test_http_profile.py delete mode 100644 test/test_http_req_meta.py delete mode 100644 test/test_http_res_meta.py delete mode 100644 test/test_http_version.py delete mode 100644 test/test_id_p_signature_algo.py delete mode 100644 test/test_import_all_operation.py delete mode 100644 test/test_import_offline_license_result.py delete mode 100644 test/test_ingest_operation.py delete mode 100644 test/test_inner_ip_range.py delete mode 100644 test/test_interface.py delete mode 100644 test/test_ip_mask.py delete mode 100644 test/test_ip_network.py delete mode 100644 test/test_ip_preference.py delete mode 100644 test/test_ip_range.py delete mode 100644 test/test_ip_sec_range.py delete mode 100644 test/test_ip_sec_stack.py delete mode 100644 test/test_ip_ver.py delete mode 100644 test/test_license.py delete mode 100644 test/test_license_receipt.py delete mode 100644 test/test_license_server_metadata.py delete mode 100644 test/test_license_servers_api.py delete mode 100644 test/test_licensing_api.py delete mode 100644 test/test_link.py delete mode 100644 test/test_load_config_operation.py delete mode 100644 test/test_local_subnet_config.py delete mode 100644 test/test_log_config.py delete mode 100644 test/test_log_level.py delete mode 100644 test/test_mac_dtls_stack.py delete mode 100644 test/test_mapping_type.py delete mode 100644 test/test_marked_as_deleted.py delete mode 100644 test/test_md2_tlv.py delete mode 100644 test/test_media_file.py delete mode 100644 test/test_media_track.py delete mode 100644 test/test_metadata.py delete mode 100644 test/test_mos_mode.py delete mode 100644 test/test_name_id_format.py delete mode 100644 test/test_name_server.py delete mode 100644 test/test_network_mapping.py delete mode 100644 test/test_network_meshing.py delete mode 100644 test/test_network_profile.py delete mode 100644 test/test_network_segment_base.py delete mode 100644 test/test_nodes_by_controller.py delete mode 100644 test/test_nodes_power_cycle_operation.py delete mode 100644 test/test_notification.py delete mode 100644 test/test_notification_counts.py delete mode 100644 test/test_notifications_api.py delete mode 100644 test/test_ntp_info.py delete mode 100644 test/test_objective_type.py delete mode 100644 test/test_objective_unit.py delete mode 100644 test/test_objective_value_entry.py delete mode 100644 test/test_objectives_and_timeline.py delete mode 100644 test/test_open_api_definitions.py delete mode 100644 test/test_p1_config.py delete mode 100644 test/test_p2_config.py delete mode 100644 test/test_pair.py delete mode 100644 test/test_pangp_encapsulation.py delete mode 100644 test/test_pangp_settings.py delete mode 100644 test/test_param_metadata.py delete mode 100644 test/test_param_metadata_type_info.py delete mode 100644 test/test_param_metadata_type_info_array_v2.py delete mode 100644 test/test_param_metadata_type_info_array_v2_elements_inner.py delete mode 100644 test/test_param_metadata_type_info_int.py delete mode 100644 test/test_param_metadata_type_info_media.py delete mode 100644 test/test_param_metadata_type_info_string.py delete mode 100644 test/test_param_source_type.py delete mode 100644 test/test_param_type.py delete mode 100644 test/test_parameter.py delete mode 100644 test/test_parameter_match.py delete mode 100644 test/test_parameter_meta.py delete mode 100644 test/test_parameter_metadata.py delete mode 100644 test/test_params.py delete mode 100644 test/test_params_enum.py delete mode 100644 test/test_payload_meta.py delete mode 100644 test/test_payload_metadata.py delete mode 100644 test/test_pep_dut.py delete mode 100644 test/test_pfs_p2_group.py delete mode 100644 test/test_playlist_metadata.py delete mode 100644 test/test_plugin.py delete mode 100644 test/test_plugin_stats.py delete mode 100644 test/test_port.py delete mode 100644 test/test_port_settings.py delete mode 100644 test/test_ports_by_controller.py delete mode 100644 test/test_ports_by_node.py delete mode 100644 test/test_prepare_test_operation.py delete mode 100644 test/test_prepared_test_options.py delete mode 100644 test/test_prf_p1_algorithm.py delete mode 100644 test/test_protected_subnet_config.py delete mode 100644 test/test_quic_profile.py delete mode 100644 test/test_quic_version.py delete mode 100644 test/test_reboot_operation_input.py delete mode 100644 test/test_reboot_ports_operation.py delete mode 100644 test/test_reference.py delete mode 100644 test/test_regex_match.py delete mode 100644 test/test_release_operation_input.py delete mode 100644 test/test_remote_access.py delete mode 100644 test/test_remote_subnet_config.py delete mode 100644 test/test_rename_input.py delete mode 100644 test/test_reorder_action_input.py delete mode 100644 test/test_reorder_exchanges_input.py delete mode 100644 test/test_replay_capture.py delete mode 100644 test/test_reports_api.py delete mode 100644 test/test_required_file_types.py delete mode 100644 test/test_reserve_operation_input.py delete mode 100644 test/test_result_file_metadata.py delete mode 100644 test/test_result_metadata.py delete mode 100644 test/test_results_group.py delete mode 100644 test/test_rtp_encryption_mode.py delete mode 100644 test/test_rtp_profile.py delete mode 100644 test/test_rtp_profile_meta.py delete mode 100644 test/test_save_config_operation.py delete mode 100644 test/test_scenario.py delete mode 100644 test/test_secondary_objective.py delete mode 100644 test/test_segment_type.py delete mode 100644 test/test_selected_env.py delete mode 100644 test/test_session.py delete mode 100644 test/test_session_reuse_method_tls12.py delete mode 100644 test/test_session_reuse_method_tls13.py delete mode 100644 test/test_sessions_api.py delete mode 100644 test/test_set_aggregation_mode_operation.py delete mode 100644 test/test_set_app_operation.py delete mode 100644 test/test_set_dpdk_mode_operation_input.py delete mode 100644 test/test_set_link_state_operation.py delete mode 100644 test/test_set_ntp_operation_input.py delete mode 100644 test/test_simulated_id_p.py delete mode 100644 test/test_snapshot.py delete mode 100644 test/test_snowflake_exporter.py delete mode 100644 test/test_sort_body_field.py delete mode 100644 test/test_specific_objective.py delete mode 100644 test/test_start_agents_batch_delete_request_inner.py delete mode 100644 test/test_start_batch_delete_request_inner.py delete mode 100644 test/test_start_root_batch_delete_request_inner.py delete mode 100644 test/test_stateless_stream.py delete mode 100644 test/test_static_arp_entry.py delete mode 100644 test/test_statistics_api.py delete mode 100644 test/test_stats_result.py delete mode 100644 test/test_steady_segment.py delete mode 100644 test/test_step_segment.py delete mode 100644 test/test_stream_direction.py delete mode 100644 test/test_stream_payload_type.py delete mode 100644 test/test_stream_profile.py delete mode 100644 test/test_supported_group_tls13.py delete mode 100644 test/test_switch_app_operation.py delete mode 100644 test/test_system_info.py delete mode 100644 test/test_tcp_profile.py delete mode 100644 test/test_test_info.py delete mode 100644 test/test_test_operations_api.py delete mode 100644 test/test_test_results_api.py delete mode 100644 test/test_test_state_changed_operation.py delete mode 100644 test/test_time_value.py delete mode 100644 test/test_timeline_segment.py delete mode 100644 test/test_timeline_segment_base.py delete mode 100644 test/test_timeline_segment_union.py delete mode 100644 test/test_timers.py delete mode 100644 test/test_tls_profile.py delete mode 100644 test/test_track.py delete mode 100644 test/test_track_type.py delete mode 100644 test/test_traffic_agent_info.py delete mode 100644 test/test_traffic_profile_base.py delete mode 100644 test/test_traffic_settings.py delete mode 100644 test/test_transport_profile.py delete mode 100644 test/test_transport_profile_base.py delete mode 100644 test/test_tunnel_range.py delete mode 100644 test/test_tunnel_settings.py delete mode 100644 test/test_tunnel_stack.py delete mode 100644 test/test_type_array_v2_metadata.py delete mode 100644 test/test_type_info_metadata.py delete mode 100644 test/test_type_int_metadata.py delete mode 100644 test/test_type_media_metadata.py delete mode 100644 test/test_type_string_metadata.py delete mode 100644 test/test_udp_profile.py delete mode 100644 test/test_update_network_mapping.py delete mode 100644 test/test_update_port_tags_operation.py delete mode 100644 test/test_utils_api.py delete mode 100644 test/test_validation_message.py delete mode 100644 test/test_version.py delete mode 100644 test/test_vlan_range.py delete mode 100644 test/test_vx_lan_range.py delete mode 100644 test/test_vx_lan_stack.py delete mode 100644 test/test_vx_lanid.py diff --git a/README.md b/README.md index 3ba1812..7fbfce4 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,6 @@ Then import the package: ```python import cyperf ``` -### Tests - -Execute `pytest` to run the tests. ## Getting Started diff --git a/jenkins/JenkinsFile b/jenkins/JenkinsFile index 3794add..bc0fd6c 100644 --- a/jenkins/JenkinsFile +++ b/jenkins/JenkinsFile @@ -79,13 +79,6 @@ node('wap') { . ''') } - stage('Run tests') { - sh(''' - docker run --rm \ - cyperf-api-wrapper-build:$DOCKER_VERSION \ - /cyperf-api-wrapper-build/test.sh /build/py3 - ''') - } stage('Build and publish to internal repo') { withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'e7e3fcc3-4f5f-4e68-b68c-76f40b75a3c7', diff --git a/pyproject.toml b/pyproject.toml index 0c4f9f6..829fad5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,9 +34,7 @@ extension-pkg-whitelist = "pydantic" [tool.mypy] files = [ - "cyperf", - #"test", # auto-generated tests - "tests", # hand-written tests + "cyperf" ] # TODO: enable "strict" once all these individual checks are passing # strict = true diff --git a/test/__init__.py b/test/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_action.py b/test/test_action.py deleted file mode 100644 index 2406369..0000000 --- a/test/test_action.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action import Action - -class TestAction(unittest.TestCase): - """Action unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Action: - """Test Action - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Action` - """ - model = Action() - if include_optional: - return Action( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Action( - ) - """ - - def testAction(self): - """Test Action""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_base.py b/test/test_action_base.py deleted file mode 100644 index 11bcb07..0000000 --- a/test/test_action_base.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_base import ActionBase - -class TestActionBase(unittest.TestCase): - """ActionBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionBase: - """Test ActionBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionBase` - """ - model = ActionBase() - if include_optional: - return ActionBase( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ActionBase( - ) - """ - - def testActionBase(self): - """Test ActionBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_input.py b/test/test_action_input.py deleted file mode 100644 index cceb7d6..0000000 --- a/test/test_action_input.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_input import ActionInput - -class TestActionInput(unittest.TestCase): - """ActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionInput: - """Test ActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionInput` - """ - model = ActionInput() - if include_optional: - return ActionInput( - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ] - ) - else: - return ActionInput( - ) - """ - - def testActionInput(self): - """Test ActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_input_find_param.py b/test/test_action_input_find_param.py deleted file mode 100644 index 2b37f35..0000000 --- a/test/test_action_input_find_param.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_input_find_param import ActionInputFindParam - -class TestActionInputFindParam(unittest.TestCase): - """ActionInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionInputFindParam: - """Test ActionInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionInputFindParam` - """ - model = ActionInputFindParam() - if include_optional: - return ActionInputFindParam( - captures = [ - cyperf.models.capture_input_find_param.CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ], ) - ], - name = '' - ) - else: - return ActionInputFindParam( - ) - """ - - def testActionInputFindParam(self): - """Test ActionInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py deleted file mode 100644 index 2c54fa7..0000000 --- a/test/test_action_metadata.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_metadata import ActionMetadata - -class TestActionMetadata(unittest.TestCase): - """ActionMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionMetadata: - """Test ActionMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionMetadata` - """ - model = ActionMetadata() - if include_optional: - return ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ] - ) - else: - return ActionMetadata( - ) - """ - - def testActionMetadata(self): - """Test ActionMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_info.py b/test/test_activation_code_info.py deleted file mode 100644 index b3251c0..0000000 --- a/test/test_activation_code_info.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_info import ActivationCodeInfo - -class TestActivationCodeInfo(unittest.TestCase): - """ActivationCodeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeInfo: - """Test ActivationCodeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeInfo` - """ - model = ActivationCodeInfo() - if include_optional: - return ActivationCodeInfo( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56 - ) - else: - return ActivationCodeInfo( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - ) - """ - - def testActivationCodeInfo(self): - """Test ActivationCodeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_list_request.py b/test/test_activation_code_list_request.py deleted file mode 100644 index 40288bc..0000000 --- a/test/test_activation_code_list_request.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_list_request import ActivationCodeListRequest - -class TestActivationCodeListRequest(unittest.TestCase): - """ActivationCodeListRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeListRequest: - """Test ActivationCodeListRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeListRequest` - """ - model = ActivationCodeListRequest() - if include_optional: - return ActivationCodeListRequest( - activation_code = [ - '' - ] - ) - else: - return ActivationCodeListRequest( - ) - """ - - def testActivationCodeListRequest(self): - """Test ActivationCodeListRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_request.py b/test/test_activation_code_request.py deleted file mode 100644 index 75bfa2f..0000000 --- a/test/test_activation_code_request.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_request import ActivationCodeRequest - -class TestActivationCodeRequest(unittest.TestCase): - """ActivationCodeRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeRequest: - """Test ActivationCodeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeRequest` - """ - model = ActivationCodeRequest() - if include_optional: - return ActivationCodeRequest( - activation_code = '' - ) - else: - return ActivationCodeRequest( - activation_code = '', - ) - """ - - def testActivationCodeRequest(self): - """Test ActivationCodeRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_add_action_info.py b/test/test_add_action_info.py deleted file mode 100644 index 977b55f..0000000 --- a/test/test_add_action_info.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.add_action_info import AddActionInfo - -class TestAddActionInfo(unittest.TestCase): - """AddActionInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AddActionInfo: - """Test AddActionInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AddActionInfo` - """ - model = AddActionInfo() - if include_optional: - return AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '' - ) - else: - return AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', - ) - """ - - def testAddActionInfo(self): - """Test AddActionInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_add_input.py b/test/test_add_input.py deleted file mode 100644 index 2da2f78..0000000 --- a/test/test_add_input.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.add_input import AddInput - -class TestAddInput(unittest.TestCase): - """AddInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AddInput: - """Test AddInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AddInput` - """ - model = AddInput() - if include_optional: - return AddInput( - action_index = 56, - action_name = '', - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - exchange_index_insert_at = 56, - flow_index_insert_at = 56, - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], - type = '' - ) - else: - return AddInput( - ) - """ - - def testAddInput(self): - """Test AddInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_advanced_settings.py b/test/test_advanced_settings.py deleted file mode 100644 index 69a531f..0000000 --- a/test/test_advanced_settings.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.advanced_settings import AdvancedSettings - -class TestAdvancedSettings(unittest.TestCase): - """AdvancedSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AdvancedSettings: - """Test AdvancedSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AdvancedSettings` - """ - model = AdvancedSettings() - if include_optional: - return AdvancedSettings( - agent_optimization_mode = 'BALANCED_MODE', - agent_streaming_purpose_cpu_percent = 56, - automatic_cpu_percent = True, - connection_graceful_stop_timeout = 56, - warm_up_period = 56 - ) - else: - return AdvancedSettings( - warm_up_period = 56, - ) - """ - - def testAdvancedSettings(self): - """Test AdvancedSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent.py b/test/test_agent.py deleted file mode 100644 index 3c84577..0000000 --- a/test/test_agent.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent import Agent - -class TestAgent(unittest.TestCase): - """Agent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Agent: - """Test Agent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Agent` - """ - model = Agent() - if include_optional: - return Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ), - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Agent( - ) - """ - - def testAgent(self): - """Test Agent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignment_by_port.py b/test/test_agent_assignment_by_port.py deleted file mode 100644 index 6565e24..0000000 --- a/test/test_agent_assignment_by_port.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort - -class TestAgentAssignmentByPort(unittest.TestCase): - """AgentAssignmentByPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignmentByPort: - """Test AgentAssignmentByPort - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignmentByPort` - """ - model = AgentAssignmentByPort() - if include_optional: - return AgentAssignmentByPort( - capture_settings = cyperf.models.capture_settings.CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = null, - max_capture_size = 56, ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - port_id = '' - ) - else: - return AgentAssignmentByPort( - id = '', - ) - """ - - def testAgentAssignmentByPort(self): - """Test AgentAssignmentByPort""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignment_details.py b/test/test_agent_assignment_details.py deleted file mode 100644 index db0bf5a..0000000 --- a/test/test_agent_assignment_details.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignment_details import AgentAssignmentDetails - -class TestAgentAssignmentDetails(unittest.TestCase): - """AgentAssignmentDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignmentDetails: - """Test AgentAssignmentDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignmentDetails` - """ - model = AgentAssignmentDetails() - if include_optional: - return AgentAssignmentDetails( - agent_id = '', - capture_settings = cyperf.models.capture_settings.CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = null, - max_capture_size = 56, ), - id = '', - interfaces = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AgentAssignmentDetails( - agent_id = '', - id = '', - ) - """ - - def testAgentAssignmentDetails(self): - """Test AgentAssignmentDetails""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignments.py b/test/test_agent_assignments.py deleted file mode 100644 index 31cb9e9..0000000 --- a/test/test_agent_assignments.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignments import AgentAssignments - -class TestAgentAssignments(unittest.TestCase): - """AgentAssignments unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignments: - """Test AgentAssignments - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignments` - """ - model = AgentAssignments() - if include_optional: - return AgentAssignments( - by_id = [ - null - ], - by_port = [ - null - ], - by_tag = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AgentAssignments( - ) - """ - - def testAgentAssignments(self): - """Test AgentAssignments""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_cpu_info.py b/test/test_agent_cpu_info.py deleted file mode 100644 index 8e4453c..0000000 --- a/test/test_agent_cpu_info.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_cpu_info import AgentCPUInfo - -class TestAgentCPUInfo(unittest.TestCase): - """AgentCPUInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentCPUInfo: - """Test AgentCPUInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentCPUInfo` - """ - model = AgentCPUInfo() - if include_optional: - return AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '' - ) - else: - return AgentCPUInfo( - ) - """ - - def testAgentCPUInfo(self): - """Test AgentCPUInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_features.py b/test/test_agent_features.py deleted file mode 100644 index d22bc59..0000000 --- a/test/test_agent_features.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_features import AgentFeatures - -class TestAgentFeatures(unittest.TestCase): - """AgentFeatures unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentFeatures: - """Test AgentFeatures - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentFeatures` - """ - model = AgentFeatures() - if include_optional: - return AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '' - ) - else: - return AgentFeatures( - ) - """ - - def testAgentFeatures(self): - """Test AgentFeatures""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_optimization_mode.py b/test/test_agent_optimization_mode.py deleted file mode 100644 index 2434525..0000000 --- a/test/test_agent_optimization_mode.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_optimization_mode import AgentOptimizationMode - -class TestAgentOptimizationMode(unittest.TestCase): - """AgentOptimizationMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAgentOptimizationMode(self): - """Test AgentOptimizationMode""" - # inst = AgentOptimizationMode() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_release.py b/test/test_agent_release.py deleted file mode 100644 index cd48053..0000000 --- a/test/test_agent_release.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_release import AgentRelease - -class TestAgentRelease(unittest.TestCase): - """AgentRelease unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentRelease: - """Test AgentRelease - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentRelease` - """ - model = AgentRelease() - if include_optional: - return AgentRelease( - agent_id = '' - ) - else: - return AgentRelease( - ) - """ - - def testAgentRelease(self): - """Test AgentRelease""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_reservation.py b/test/test_agent_reservation.py deleted file mode 100644 index 25c38c6..0000000 --- a/test/test_agent_reservation.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_reservation import AgentReservation - -class TestAgentReservation(unittest.TestCase): - """AgentReservation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentReservation: - """Test AgentReservation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentReservation` - """ - model = AgentReservation() - if include_optional: - return AgentReservation( - agent_id = '', - agent_payload_names = [ - '' - ], - general_purpose_cpu_percent = 56, - interfaces = [ - '' - ], - ip_address_version_used = '', - optimization_mode = '' - ) - else: - return AgentReservation( - ) - """ - - def testAgentReservation(self): - """Test AgentReservation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_to_be_rebooted.py b/test/test_agent_to_be_rebooted.py deleted file mode 100644 index a69e2fb..0000000 --- a/test/test_agent_to_be_rebooted.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_to_be_rebooted import AgentToBeRebooted - -class TestAgentToBeRebooted(unittest.TestCase): - """AgentToBeRebooted unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentToBeRebooted: - """Test AgentToBeRebooted - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentToBeRebooted` - """ - model = AgentToBeRebooted() - if include_optional: - return AgentToBeRebooted( - agent_id = '' - ) - else: - return AgentToBeRebooted( - ) - """ - - def testAgentToBeRebooted(self): - """Test AgentToBeRebooted""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agents_api.py b/test/test_agents_api.py deleted file mode 100644 index a4ace3f..0000000 --- a/test/test_agents_api.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.agents_api import AgentsApi - - -class TestAgentsApi(unittest.TestCase): - """AgentsApi unit test stubs""" - - def setUp(self) -> None: - self.api = AgentsApi() - - def tearDown(self) -> None: - pass - - - def test_delete_agent(self) -> None: - """Test case for delete_agent - - """ - pass - - def test_get_agent_by_id(self) -> None: - """Test case for get_agent_by_id - - """ - pass - - def test_get_agents(self) -> None: - """Test case for get_agents - - """ - pass - - def test_get_agents_tags(self) -> None: - """Test case for get_agents_tags - - """ - pass - - def test_get_compute_node_port_by_id(self) -> None: - """Test case for get_compute_node_port_by_id - - """ - pass - - def test_get_compute_node_ports(self) -> None: - """Test case for get_compute_node_ports - - """ - pass - - def test_get_controller_by_id(self) -> None: - """Test case for get_controller_by_id - - """ - pass - - def test_get_controller_compute_node_by_id(self) -> None: - """Test case for get_controller_compute_node_by_id - - """ - pass - - def test_get_controller_compute_nodes(self) -> None: - """Test case for get_controller_compute_nodes - - """ - pass - - def test_get_controllers(self) -> None: - """Test case for get_controllers - - """ - pass - - def test_patch_agent(self) -> None: - """Test case for patch_agent - - """ - pass - - - - - - - - - - - - - - - - - def test_start_agents_batch_delete(self) -> None: - """Test case for start_agents_batch_delete - - """ - pass - - def test_start_agents_export_files(self) -> None: - """Test case for start_agents_export_files - - """ - pass - - def test_start_agents_reboot(self) -> None: - """Test case for start_agents_reboot - - """ - pass - - def test_start_agents_release(self) -> None: - """Test case for start_agents_release - - """ - pass - - def test_start_agents_reserve(self) -> None: - """Test case for start_agents_reserve - - """ - pass - - def test_start_agents_set_dpdk_mode(self) -> None: - """Test case for start_agents_set_dpdk_mode - - """ - pass - - def test_start_agents_set_ntp(self) -> None: - """Test case for start_agents_set_ntp - - """ - pass - - def test_start_agents_update(self) -> None: - """Test case for start_agents_update - - """ - pass - - def test_start_controllers_clear_port_ownership(self) -> None: - """Test case for start_controllers_clear_port_ownership - - """ - pass - - def test_start_controllers_power_cycle_nodes(self) -> None: - """Test case for start_controllers_power_cycle_nodes - - """ - pass - - def test_start_controllers_reboot_port(self) -> None: - """Test case for start_controllers_reboot_port - - """ - pass - - def test_start_controllers_set_app(self) -> None: - """Test case for start_controllers_set_app - - """ - pass - - def test_start_controllers_set_node_aggregation(self) -> None: - """Test case for start_controllers_set_node_aggregation - - """ - pass - - def test_start_controllers_set_port_link_state(self) -> None: - """Test case for start_controllers_set_port_link_state - - """ - pass - - def test_start_controllers_update_port_tags(self) -> None: - """Test case for start_controllers_update_port_tags - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agents_group.py b/test/test_agents_group.py deleted file mode 100644 index aacc607..0000000 --- a/test/test_agents_group.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agents_group import AgentsGroup - -class TestAgentsGroup(unittest.TestCase): - """AgentsGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentsGroup: - """Test AgentsGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentsGroup` - """ - model = AgentsGroup() - if include_optional: - return AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True - ) - else: - return AgentsGroup( - ) - """ - - def testAgentsGroup(self): - """Test AgentsGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_api_link.py b/test/test_api_link.py deleted file mode 100644 index 5b231a7..0000000 --- a/test/test_api_link.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.api_link import APILink - -class TestAPILink(unittest.TestCase): - """APILink unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> APILink: - """Test APILink - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `APILink` - """ - model = APILink() - if include_optional: - return APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '' - ) - else: - return APILink( - ) - """ - - def testAPILink(self): - """Test APILink""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_api_relationship.py b/test/test_api_relationship.py deleted file mode 100644 index f752f7f..0000000 --- a/test/test_api_relationship.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.api_relationship import APIRelationship - -class TestAPIRelationship(unittest.TestCase): - """APIRelationship unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAPIRelationship(self): - """Test APIRelationship""" - # inst = APIRelationship() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_exchange.py b/test/test_app_exchange.py deleted file mode 100644 index 81bea07..0000000 --- a/test/test_app_exchange.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_exchange import AppExchange - -class TestAppExchange(unittest.TestCase): - """AppExchange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppExchange: - """Test AppExchange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppExchange` - """ - model = AppExchange() - if include_optional: - return AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - headers = { - 'key' : [ - '' - ] - }, - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ) - else: - return AppExchange( - ) - """ - - def testAppExchange(self): - """Test AppExchange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow.py b/test/test_app_flow.py deleted file mode 100644 index a767bc8..0000000 --- a/test/test_app_flow.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow import AppFlow - -class TestAppFlow(unittest.TestCase): - """AppFlow unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlow: - """Test AppFlow - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlow` - """ - model = AppFlow() - if include_optional: - return AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '' - ) - else: - return AppFlow( - ) - """ - - def testAppFlow(self): - """Test AppFlow""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_desc.py b/test/test_app_flow_desc.py deleted file mode 100644 index c4b2dba..0000000 --- a/test/test_app_flow_desc.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_desc import AppFlowDesc - -class TestAppFlowDesc(unittest.TestCase): - """AppFlowDesc unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowDesc: - """Test AppFlowDesc - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowDesc` - """ - model = AppFlowDesc() - if include_optional: - return AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56 - ) - else: - return AppFlowDesc( - ) - """ - - def testAppFlowDesc(self): - """Test AppFlowDesc""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_input.py b/test/test_app_flow_input.py deleted file mode 100644 index b062770..0000000 --- a/test/test_app_flow_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_input import AppFlowInput - -class TestAppFlowInput(unittest.TestCase): - """AppFlowInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowInput: - """Test AppFlowInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowInput` - """ - model = AppFlowInput() - if include_optional: - return AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ] - ) - else: - return AppFlowInput( - ) - """ - - def testAppFlowInput(self): - """Test AppFlowInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_input_find_param.py b/test/test_app_flow_input_find_param.py deleted file mode 100644 index c53fbf2..0000000 --- a/test/test_app_flow_input_find_param.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_input_find_param import AppFlowInputFindParam - -class TestAppFlowInputFindParam(unittest.TestCase): - """AppFlowInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowInputFindParam: - """Test AppFlowInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowInputFindParam` - """ - model = AppFlowInputFindParam() - if include_optional: - return AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ] - ) - else: - return AppFlowInputFindParam( - ) - """ - - def testAppFlowInputFindParam(self): - """Test AppFlowInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_id.py b/test/test_app_id.py deleted file mode 100644 index 6b7fe62..0000000 --- a/test/test_app_id.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_id import AppId - -class TestAppId(unittest.TestCase): - """AppId unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppId: - """Test AppId - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppId` - """ - model = AppId() - if include_optional: - return AppId( - id = '' - ) - else: - return AppId( - ) - """ - - def testAppId(self): - """Test AppId""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_mode.py b/test/test_app_mode.py deleted file mode 100644 index 8ab87ed..0000000 --- a/test/test_app_mode.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_mode import AppMode - -class TestAppMode(unittest.TestCase): - """AppMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppMode: - """Test AppMode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppMode` - """ - model = AppMode() - if include_optional: - return AppMode( - app_id = '', - ui_app_id = '' - ) - else: - return AppMode( - ) - """ - - def testAppMode(self): - """Test AppMode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application.py b/test/test_application.py deleted file mode 100644 index d30241c..0000000 --- a/test/test_application.py +++ /dev/null @@ -1,739 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application import Application - -class TestApplication(unittest.TestCase): - """Application unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Application: - """Test Application - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Application` - """ - model = Application() - if include_optional: - return Application( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - inherit_quic_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - inherit_tls = True, - is_stateless_stream = True, - is_streaming = True, - objective_weight = 56, - protocol_found = True, - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - stateless_stream = cyperf.models.stateless_stream.StatelessStream( - client_stream_profile = null, - direction = null, - is_flood_stream = True, - server_stream_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - static = True, - supported_apps = [ - '' - ], - supports_calibration = True, - supports_multi_flow = True, - supports_strikes = True, - supports_tls = True, - tracks = [ - cyperf.models.track.Track( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ] - ) - else: - return Application( - objective_weight = 56, - ) - """ - - def testApplication(self): - """Test Application""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_profile.py b/test/test_application_profile.py deleted file mode 100644 index f08fa69..0000000 --- a/test/test_application_profile.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application_profile import ApplicationProfile - -class TestApplicationProfile(unittest.TestCase): - """ApplicationProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ApplicationProfile: - """Test ApplicationProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ApplicationProfile` - """ - model = ApplicationProfile() - if include_optional: - return ApplicationProfile( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - use_all_source_ips_per_user = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - applications = [ - null - ], - default_network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - name = '', - objectives_and_timeline = cyperf.models.objectives_and_timeline.ObjectivesAndTimeline( - advanced_settings = null, - primary_objective = null, - secondary_objective = null, - secondary_objectives = [ - cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - add_applications = [ - cyperf.models.external_resource_info.ExternalResourceInfo( - external_resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - reset_tags_to_default = [ - 'YQ==' - ] - ) - else: - return ApplicationProfile( - name = '', - ) - """ - - def testApplicationProfile(self): - """Test ApplicationProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py deleted file mode 100644 index 1cf13fb..0000000 --- a/test/test_application_resources_api.py +++ /dev/null @@ -1,892 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.application_resources_api import ApplicationResourcesApi - - -class TestApplicationResourcesApi(unittest.TestCase): - """ApplicationResourcesApi unit test stubs""" - - def setUp(self) -> None: - self.api = ApplicationResourcesApi() - - def tearDown(self) -> None: - pass - - - def test_delete_resources_capture(self) -> None: - """Test case for delete_resources_capture - - """ - pass - - def test_delete_resources_certificate(self) -> None: - """Test case for delete_resources_certificate - - """ - pass - - def test_delete_resources_custom_fuzzing_script(self) -> None: - """Test case for delete_resources_custom_fuzzing_script - - """ - pass - - def test_delete_resources_flow_library(self) -> None: - """Test case for delete_resources_flow_library - - """ - pass - - def test_delete_resources_global_playlist(self) -> None: - """Test case for delete_resources_global_playlist - - """ - pass - - def test_delete_resources_http_library(self) -> None: - """Test case for delete_resources_http_library - - """ - pass - - def test_delete_resources_media_file(self) -> None: - """Test case for delete_resources_media_file - - """ - pass - - def test_delete_resources_media_library(self) -> None: - """Test case for delete_resources_media_library - - """ - pass - - def test_delete_resources_other_library(self) -> None: - """Test case for delete_resources_other_library - - """ - pass - - def test_delete_resources_payload(self) -> None: - """Test case for delete_resources_payload - - """ - pass - - def test_delete_resources_pcap(self) -> None: - """Test case for delete_resources_pcap - - """ - pass - - def test_delete_resources_playlist(self) -> None: - """Test case for delete_resources_playlist - - """ - pass - - def test_delete_resources_sip_library(self) -> None: - """Test case for delete_resources_sip_library - - """ - pass - - def test_delete_resources_stats_profile(self) -> None: - """Test case for delete_resources_stats_profile - - """ - pass - - def test_delete_resources_tls_certificate(self) -> None: - """Test case for delete_resources_tls_certificate - - """ - pass - - def test_delete_resources_tls_dh(self) -> None: - """Test case for delete_resources_tls_dh - - """ - pass - - def test_delete_resources_tls_key(self) -> None: - """Test case for delete_resources_tls_key - - """ - pass - - def test_delete_resources_user_defined_app(self) -> None: - """Test case for delete_resources_user_defined_app - - """ - pass - - def test_get_capture_flows(self) -> None: - """Test case for get_capture_flows - - """ - pass - - def test_get_flow_exchanges(self) -> None: - """Test case for get_flow_exchanges - - """ - pass - - def test_get_resources_app_by_id(self) -> None: - """Test case for get_resources_app_by_id - - """ - pass - - def test_get_resources_app_categories(self) -> None: - """Test case for get_resources_app_categories - - """ - pass - - def test_get_resources_application_type_by_id(self) -> None: - """Test case for get_resources_application_type_by_id - - """ - pass - - def test_get_resources_application_types(self) -> None: - """Test case for get_resources_application_types - - """ - pass - - def test_get_resources_apps(self) -> None: - """Test case for get_resources_apps - - """ - pass - - def test_get_resources_attack_by_id(self) -> None: - """Test case for get_resources_attack_by_id - - """ - pass - - def test_get_resources_attack_categories(self) -> None: - """Test case for get_resources_attack_categories - - """ - pass - - def test_get_resources_attacks(self) -> None: - """Test case for get_resources_attacks - - """ - pass - - def test_get_resources_auth_profile_by_id(self) -> None: - """Test case for get_resources_auth_profile_by_id - - """ - pass - - def test_get_resources_auth_profiles(self) -> None: - """Test case for get_resources_auth_profiles - - """ - pass - - def test_get_resources_capture_by_id(self) -> None: - """Test case for get_resources_capture_by_id - - """ - pass - - def test_get_resources_captures(self) -> None: - """Test case for get_resources_captures - - """ - pass - - def test_get_resources_captures_encrypted_upload_file_result(self) -> None: - """Test case for get_resources_captures_encrypted_upload_file_result - - """ - pass - - def test_get_resources_captures_upload_file_result(self) -> None: - """Test case for get_resources_captures_upload_file_result - - """ - pass - - def test_get_resources_certificate_by_id(self) -> None: - """Test case for get_resources_certificate_by_id - - """ - pass - - def test_get_resources_certificate_content_file(self) -> None: - """Test case for get_resources_certificate_content_file - - """ - pass - - def test_get_resources_certificates(self) -> None: - """Test case for get_resources_certificates - - """ - pass - - def test_get_resources_certificates_upload_file_result(self) -> None: - """Test case for get_resources_certificates_upload_file_result - - """ - pass - - def test_get_resources_custom_fuzzing_script_by_id(self) -> None: - """Test case for get_resources_custom_fuzzing_script_by_id - - """ - pass - - def test_get_resources_custom_fuzzing_script_content_file(self) -> None: - """Test case for get_resources_custom_fuzzing_script_content_file - - """ - pass - - def test_get_resources_custom_fuzzing_scripts(self) -> None: - """Test case for get_resources_custom_fuzzing_scripts - - """ - pass - - def test_get_resources_custom_fuzzing_scripts_upload_file_result(self) -> None: - """Test case for get_resources_custom_fuzzing_scripts_upload_file_result - - """ - pass - - def test_get_resources_flow_library(self) -> None: - """Test case for get_resources_flow_library - - """ - pass - - def test_get_resources_flow_library_by_id(self) -> None: - """Test case for get_resources_flow_library_by_id - - """ - pass - - def test_get_resources_flow_library_content_file(self) -> None: - """Test case for get_resources_flow_library_content_file - - """ - pass - - def test_get_resources_flow_library_upload_file_result(self) -> None: - """Test case for get_resources_flow_library_upload_file_result - - """ - pass - - def test_get_resources_global_playlist_by_id(self) -> None: - """Test case for get_resources_global_playlist_by_id - - """ - pass - - def test_get_resources_global_playlist_content_file(self) -> None: - """Test case for get_resources_global_playlist_content_file - - """ - pass - - def test_get_resources_global_playlists(self) -> None: - """Test case for get_resources_global_playlists - - """ - pass - - def test_get_resources_global_playlists_upload_file_result(self) -> None: - """Test case for get_resources_global_playlists_upload_file_result - - """ - pass - - def test_get_resources_http_library(self) -> None: - """Test case for get_resources_http_library - - """ - pass - - def test_get_resources_http_library_by_id(self) -> None: - """Test case for get_resources_http_library_by_id - - """ - pass - - def test_get_resources_http_library_content_file(self) -> None: - """Test case for get_resources_http_library_content_file - - """ - pass - - def test_get_resources_http_library_upload_file_result(self) -> None: - """Test case for get_resources_http_library_upload_file_result - - """ - pass - - def test_get_resources_http_profile_by_id(self) -> None: - """Test case for get_resources_http_profile_by_id - - """ - pass - - def test_get_resources_http_profiles(self) -> None: - """Test case for get_resources_http_profiles - - """ - pass - - def test_get_resources_media_file_by_id(self) -> None: - """Test case for get_resources_media_file_by_id - - """ - pass - - def test_get_resources_media_file_content_file(self) -> None: - """Test case for get_resources_media_file_content_file - - """ - pass - - def test_get_resources_media_files(self) -> None: - """Test case for get_resources_media_files - - """ - pass - - def test_get_resources_media_files_upload_file_result(self) -> None: - """Test case for get_resources_media_files_upload_file_result - - """ - pass - - def test_get_resources_media_library(self) -> None: - """Test case for get_resources_media_library - - """ - pass - - def test_get_resources_media_library_by_id(self) -> None: - """Test case for get_resources_media_library_by_id - - """ - pass - - def test_get_resources_media_library_content_file(self) -> None: - """Test case for get_resources_media_library_content_file - - """ - pass - - def test_get_resources_media_library_upload_file_result(self) -> None: - """Test case for get_resources_media_library_upload_file_result - - """ - pass - - def test_get_resources_other_library(self) -> None: - """Test case for get_resources_other_library - - """ - pass - - def test_get_resources_other_library_by_id(self) -> None: - """Test case for get_resources_other_library_by_id - - """ - pass - - def test_get_resources_other_library_content_file(self) -> None: - """Test case for get_resources_other_library_content_file - - """ - pass - - def test_get_resources_other_library_upload_file_result(self) -> None: - """Test case for get_resources_other_library_upload_file_result - - """ - pass - - def test_get_resources_payload_by_id(self) -> None: - """Test case for get_resources_payload_by_id - - """ - pass - - def test_get_resources_payload_content_file(self) -> None: - """Test case for get_resources_payload_content_file - - """ - pass - - def test_get_resources_payloads(self) -> None: - """Test case for get_resources_payloads - - """ - pass - - def test_get_resources_payloads_upload_file_result(self) -> None: - """Test case for get_resources_payloads_upload_file_result - - """ - pass - - def test_get_resources_pcap_by_id(self) -> None: - """Test case for get_resources_pcap_by_id - - """ - pass - - def test_get_resources_pcap_content_file(self) -> None: - """Test case for get_resources_pcap_content_file - - """ - pass - - def test_get_resources_pcaps(self) -> None: - """Test case for get_resources_pcaps - - """ - pass - - def test_get_resources_pcaps_upload_file_result(self) -> None: - """Test case for get_resources_pcaps_upload_file_result - - """ - pass - - def test_get_resources_playlist_by_id(self) -> None: - """Test case for get_resources_playlist_by_id - - """ - pass - - def test_get_resources_playlist_content_file(self) -> None: - """Test case for get_resources_playlist_content_file - - """ - pass - - def test_get_resources_playlist_values(self) -> None: - """Test case for get_resources_playlist_values - - """ - pass - - def test_get_resources_playlists(self) -> None: - """Test case for get_resources_playlists - - """ - pass - - def test_get_resources_playlists_upload_file_result(self) -> None: - """Test case for get_resources_playlists_upload_file_result - - """ - pass - - def test_get_resources_sip_library(self) -> None: - """Test case for get_resources_sip_library - - """ - pass - - def test_get_resources_sip_library_by_id(self) -> None: - """Test case for get_resources_sip_library_by_id - - """ - pass - - def test_get_resources_sip_library_content_file(self) -> None: - """Test case for get_resources_sip_library_content_file - - """ - pass - - def test_get_resources_sip_library_upload_file_result(self) -> None: - """Test case for get_resources_sip_library_upload_file_result - - """ - pass - - def test_get_resources_stats_profile(self) -> None: - """Test case for get_resources_stats_profile - - """ - pass - - def test_get_resources_stats_profile_by_id(self) -> None: - """Test case for get_resources_stats_profile_by_id - - """ - pass - - def test_get_resources_stats_profile_content_file(self) -> None: - """Test case for get_resources_stats_profile_content_file - - """ - pass - - def test_get_resources_stats_profile_upload_file_result(self) -> None: - """Test case for get_resources_stats_profile_upload_file_result - - """ - pass - - def test_get_resources_strike_by_id(self) -> None: - """Test case for get_resources_strike_by_id - - """ - pass - - def test_get_resources_strike_categories(self) -> None: - """Test case for get_resources_strike_categories - - """ - pass - - def test_get_resources_strikes(self) -> None: - """Test case for get_resources_strikes - - """ - pass - - def test_get_resources_tls_certificate_by_id(self) -> None: - """Test case for get_resources_tls_certificate_by_id - - """ - pass - - def test_get_resources_tls_certificate_content_file(self) -> None: - """Test case for get_resources_tls_certificate_content_file - - """ - pass - - def test_get_resources_tls_certificates(self) -> None: - """Test case for get_resources_tls_certificates - - """ - pass - - def test_get_resources_tls_certificates_upload_file_result(self) -> None: - """Test case for get_resources_tls_certificates_upload_file_result - - """ - pass - - def test_get_resources_tls_dh_by_id(self) -> None: - """Test case for get_resources_tls_dh_by_id - - """ - pass - - def test_get_resources_tls_dh_content_file(self) -> None: - """Test case for get_resources_tls_dh_content_file - - """ - pass - - def test_get_resources_tls_dhs(self) -> None: - """Test case for get_resources_tls_dhs - - """ - pass - - def test_get_resources_tls_dhs_upload_file_result(self) -> None: - """Test case for get_resources_tls_dhs_upload_file_result - - """ - pass - - def test_get_resources_tls_key_by_id(self) -> None: - """Test case for get_resources_tls_key_by_id - - """ - pass - - def test_get_resources_tls_key_content_file(self) -> None: - """Test case for get_resources_tls_key_content_file - - """ - pass - - def test_get_resources_tls_keys(self) -> None: - """Test case for get_resources_tls_keys - - """ - pass - - def test_get_resources_tls_keys_upload_file_result(self) -> None: - """Test case for get_resources_tls_keys_upload_file_result - - """ - pass - - def test_get_resources_user_defined_apps(self) -> None: - """Test case for get_resources_user_defined_apps - - """ - pass - - def test_get_resources_user_defined_apps_upload_file_result(self) -> None: - """Test case for get_resources_user_defined_apps_upload_file_result - - """ - pass - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - def test_start_resources_apps_export_all(self) -> None: - """Test case for start_resources_apps_export_all - - """ - pass - - def test_start_resources_captures_batch_delete(self) -> None: - """Test case for start_resources_captures_batch_delete - - """ - pass - - def test_start_resources_captures_encrypted_upload_file(self) -> None: - """Test case for start_resources_captures_encrypted_upload_file - - """ - pass - - def test_start_resources_captures_upload_file(self) -> None: - """Test case for start_resources_captures_upload_file - - """ - pass - - def test_start_resources_certificates_upload_file(self) -> None: - """Test case for start_resources_certificates_upload_file - - """ - pass - - def test_start_resources_config_export_user_defined_apps(self) -> None: - """Test case for start_resources_config_export_user_defined_apps - - """ - pass - - def test_start_resources_create_app(self) -> None: - """Test case for start_resources_create_app - - """ - pass - - def test_start_resources_custom_fuzzing_scripts_upload_file(self) -> None: - """Test case for start_resources_custom_fuzzing_scripts_upload_file - - """ - pass - - def test_start_resources_edit_app(self) -> None: - """Test case for start_resources_edit_app - - """ - pass - - def test_start_resources_find_param_matches(self) -> None: - """Test case for start_resources_find_param_matches - - """ - pass - - def test_start_resources_flow_library_upload_file(self) -> None: - """Test case for start_resources_flow_library_upload_file - - """ - pass - - def test_start_resources_get_app_categories(self) -> None: - """Test case for start_resources_get_app_categories - - """ - pass - - def test_start_resources_get_apps(self) -> None: - """Test case for start_resources_get_apps - - """ - pass - - def test_start_resources_get_attack_categories(self) -> None: - """Test case for start_resources_get_attack_categories - - """ - pass - - def test_start_resources_get_attacks(self) -> None: - """Test case for start_resources_get_attacks - - """ - pass - - def test_start_resources_get_strike_categories(self) -> None: - """Test case for start_resources_get_strike_categories - - """ - pass - - def test_start_resources_get_strikes(self) -> None: - """Test case for start_resources_get_strikes - - """ - pass - - def test_start_resources_global_playlists_upload_file(self) -> None: - """Test case for start_resources_global_playlists_upload_file - - """ - pass - - def test_start_resources_http_library_upload_file(self) -> None: - """Test case for start_resources_http_library_upload_file - - """ - pass - - def test_start_resources_media_files_upload_file(self) -> None: - """Test case for start_resources_media_files_upload_file - - """ - pass - - def test_start_resources_media_library_upload_file(self) -> None: - """Test case for start_resources_media_library_upload_file - - """ - pass - - def test_start_resources_other_library_upload_file(self) -> None: - """Test case for start_resources_other_library_upload_file - - """ - pass - - def test_start_resources_payloads_upload_file(self) -> None: - """Test case for start_resources_payloads_upload_file - - """ - pass - - def test_start_resources_pcaps_upload_file(self) -> None: - """Test case for start_resources_pcaps_upload_file - - """ - pass - - def test_start_resources_playlists_upload_file(self) -> None: - """Test case for start_resources_playlists_upload_file - - """ - pass - - def test_start_resources_sip_library_upload_file(self) -> None: - """Test case for start_resources_sip_library_upload_file - - """ - pass - - def test_start_resources_stats_profile_upload_file(self) -> None: - """Test case for start_resources_stats_profile_upload_file - - """ - pass - - def test_start_resources_tls_certificates_upload_file(self) -> None: - """Test case for start_resources_tls_certificates_upload_file - - """ - pass - - def test_start_resources_tls_dhs_upload_file(self) -> None: - """Test case for start_resources_tls_dhs_upload_file - - """ - pass - - def test_start_resources_tls_keys_upload_file(self) -> None: - """Test case for start_resources_tls_keys_upload_file - - """ - pass - - def test_start_resources_user_defined_apps_export_all(self) -> None: - """Test case for start_resources_user_defined_apps_export_all - - """ - pass - - def test_start_resources_user_defined_apps_upload_file(self) -> None: - """Test case for start_resources_user_defined_apps_upload_file - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_type.py b/test/test_application_type.py deleted file mode 100644 index cab24ec..0000000 --- a/test/test_application_type.py +++ /dev/null @@ -1,445 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application_type import ApplicationType - -class TestApplicationType(unittest.TestCase): - """ApplicationType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ApplicationType: - """Test ApplicationType - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ApplicationType` - """ - model = ApplicationType() - if include_optional: - return ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - is_rate = True, - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ApplicationType( - ) - """ - - def testApplicationType(self): - """Test ApplicationType""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py deleted file mode 100644 index cd77b96..0000000 --- a/test/test_appsec_app.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_app import AppsecApp - -class TestAppsecApp(unittest.TestCase): - """AppsecApp unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecApp: - """Test AppsecApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecApp` - """ - model = AppsecApp() - if include_optional: - return AppsecApp( - app = None, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - name = '', ) - ], - keywords = [ - null - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '' - ) - else: - return AppsecApp( - ) - """ - - def testAppsecApp(self): - """Test AppsecApp""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py deleted file mode 100644 index 49a4c41..0000000 --- a/test/test_appsec_app_metadata.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_app_metadata import AppsecAppMetadata - -class TestAppsecAppMetadata(unittest.TestCase): - """AppsecAppMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecAppMetadata: - """Test AppsecAppMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecAppMetadata` - """ - model = AppsecAppMetadata() - if include_optional: - return AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], - keywords = [ - null - ] - ) - else: - return AppsecAppMetadata( - ) - """ - - def testAppsecAppMetadata(self): - """Test AppsecAppMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_app_metadata_keywords_inner.py b/test/test_appsec_app_metadata_keywords_inner.py deleted file mode 100644 index b04f531..0000000 --- a/test/test_appsec_app_metadata_keywords_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner - -class TestAppsecAppMetadataKeywordsInner(unittest.TestCase): - """AppsecAppMetadataKeywordsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecAppMetadataKeywordsInner: - """Test AppsecAppMetadataKeywordsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecAppMetadataKeywordsInner` - """ - model = AppsecAppMetadataKeywordsInner() - if include_optional: - return AppsecAppMetadataKeywordsInner( - ) - else: - return AppsecAppMetadataKeywordsInner( - ) - """ - - def testAppsecAppMetadataKeywordsInner(self): - """Test AppsecAppMetadataKeywordsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_attack.py b/test/test_appsec_attack.py deleted file mode 100644 index a986c65..0000000 --- a/test/test_appsec_attack.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_attack import AppsecAttack - -class TestAppsecAttack(unittest.TestCase): - """AppsecAttack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecAttack: - """Test AppsecAttack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecAttack` - """ - model = AppsecAttack() - if include_optional: - return AppsecAttack( - attack = None, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '' - ) - else: - return AppsecAttack( - ) - """ - - def testAppsecAttack(self): - """Test AppsecAttack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_config.py b/test/test_appsec_config.py deleted file mode 100644 index 395d0ba..0000000 --- a/test/test_appsec_config.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_config import AppsecConfig - -class TestAppsecConfig(unittest.TestCase): - """AppsecConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecConfig: - """Test AppsecConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecConfig` - """ - model = AppsecConfig() - if include_optional: - return AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = null, - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '' - ) - else: - return AppsecConfig( - config_type_name = '', - ) - """ - - def testAppsecConfig(self): - """Test AppsecConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_archive_info.py b/test/test_archive_info.py deleted file mode 100644 index 7566b54..0000000 --- a/test/test_archive_info.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.archive_info import ArchiveInfo - -class TestArchiveInfo(unittest.TestCase): - """ArchiveInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ArchiveInfo: - """Test ArchiveInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ArchiveInfo` - """ - model = ArchiveInfo() - if include_optional: - return ArchiveInfo( - filename = '', - id = 56, - message = '', - result_url = '', - size = 56, - state = '', - timestamp = '', - url = '' - ) - else: - return ArchiveInfo( - filename = '', - id = 56, - message = '', - result_url = '', - state = '', - timestamp = '', - url = '', - ) - """ - - def testArchiveInfo(self): - """Test ArchiveInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_array_v2_element_metadata.py b/test/test_array_v2_element_metadata.py deleted file mode 100644 index 5a95bd3..0000000 --- a/test/test_array_v2_element_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata - -class TestArrayV2ElementMetadata(unittest.TestCase): - """ArrayV2ElementMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ArrayV2ElementMetadata: - """Test ArrayV2ElementMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ArrayV2ElementMetadata` - """ - model = ArrayV2ElementMetadata() - if include_optional: - return ArrayV2ElementMetadata( - id = '', - type = '' - ) - else: - return ArrayV2ElementMetadata( - ) - """ - - def testArrayV2ElementMetadata(self): - """Test ArrayV2ElementMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_async_context.py b/test/test_async_context.py deleted file mode 100644 index 1850aaa..0000000 --- a/test/test_async_context.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.async_context import AsyncContext - -class TestAsyncContext(unittest.TestCase): - """AsyncContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AsyncContext: - """Test AsyncContext - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AsyncContext` - """ - model = AsyncContext() - if include_optional: - return AsyncContext( - id = 56, - message = '', - progress = 56, - result = None, - result_url = '', - state = '', - type = '', - url = '' - ) - else: - return AsyncContext( - ) - """ - - def testAsyncContext(self): - """Test AsyncContext""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack.py b/test/test_attack.py deleted file mode 100644 index 86bba3f..0000000 --- a/test/test_attack.py +++ /dev/null @@ -1,714 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack import Attack - -class TestAttack(unittest.TestCase): - """Attack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Attack: - """Test Attack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Attack` - """ - model = Attack() - if include_optional: - return Attack( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - inherit_quic_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - inherit_tls = True, - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - supports_tls = True, - tracks = [ - cyperf.models.attack_track.AttackTrack( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - create = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ] - ) - else: - return Attack( - ) - """ - - def testAttack(self): - """Test Attack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_action.py b/test/test_attack_action.py deleted file mode 100644 index 77c1235..0000000 --- a/test/test_attack_action.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_action import AttackAction - -class TestAttackAction(unittest.TestCase): - """AttackAction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackAction: - """Test AttackAction - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackAction` - """ - model = AttackAction() - if include_optional: - return AttackAction( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackAction( - ) - """ - - def testAttackAction(self): - """Test AttackAction""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_metadata.py b/test/test_attack_metadata.py deleted file mode 100644 index bdfd6b1..0000000 --- a/test/test_attack_metadata.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_metadata import AttackMetadata - -class TestAttackMetadata(unittest.TestCase): - """AttackMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackMetadata: - """Test AttackMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackMetadata` - """ - model = AttackMetadata() - if include_optional: - return AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56 - ) - else: - return AttackMetadata( - ) - """ - - def testAttackMetadata(self): - """Test AttackMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_metadata_keywords_inner.py b/test/test_attack_metadata_keywords_inner.py deleted file mode 100644 index 7268e1c..0000000 --- a/test/test_attack_metadata_keywords_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner - -class TestAttackMetadataKeywordsInner(unittest.TestCase): - """AttackMetadataKeywordsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackMetadataKeywordsInner: - """Test AttackMetadataKeywordsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackMetadataKeywordsInner` - """ - model = AttackMetadataKeywordsInner() - if include_optional: - return AttackMetadataKeywordsInner( - ) - else: - return AttackMetadataKeywordsInner( - ) - """ - - def testAttackMetadataKeywordsInner(self): - """Test AttackMetadataKeywordsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_objectives_and_timeline.py b/test/test_attack_objectives_and_timeline.py deleted file mode 100644 index 8d9a02d..0000000 --- a/test/test_attack_objectives_and_timeline.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline - -class TestAttackObjectivesAndTimeline(unittest.TestCase): - """AttackObjectivesAndTimeline unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackObjectivesAndTimeline: - """Test AttackObjectivesAndTimeline - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackObjectivesAndTimeline` - """ - model = AttackObjectivesAndTimeline() - if include_optional: - return AttackObjectivesAndTimeline( - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackObjectivesAndTimeline( - ) - """ - - def testAttackObjectivesAndTimeline(self): - """Test AttackObjectivesAndTimeline""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_profile.py b/test/test_attack_profile.py deleted file mode 100644 index a939f6f..0000000 --- a/test/test_attack_profile.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_profile import AttackProfile - -class TestAttackProfile(unittest.TestCase): - """AttackProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackProfile: - """Test AttackProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackProfile` - """ - model = AttackProfile() - if include_optional: - return AttackProfile( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - use_all_source_ips_per_user = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - attacks = [ - null - ], - default_network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - name = '', - objectives_and_timeline = cyperf.models.attack_objectives_and_timeline.AttackObjectivesAndTimeline( - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - add_attacks = [ - cyperf.models.external_resource_info.ExternalResourceInfo( - external_resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - reset_tags_to_default = [ - 'YQ==' - ] - ) - else: - return AttackProfile( - name = '', - ) - """ - - def testAttackProfile(self): - """Test AttackProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_timeline_segment.py b/test/test_attack_timeline_segment.py deleted file mode 100644 index 5cbc796..0000000 --- a/test/test_attack_timeline_segment.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_timeline_segment import AttackTimelineSegment - -class TestAttackTimelineSegment(unittest.TestCase): - """AttackTimelineSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackTimelineSegment: - """Test AttackTimelineSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackTimelineSegment` - """ - model = AttackTimelineSegment() - if include_optional: - return AttackTimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - attack_rate = 56, - connection_graceful_stop_timeout = 56, - iteration_count = 56, - max_concurrent_attack = 56 - ) - else: - return AttackTimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - attack_rate = 56, - max_concurrent_attack = 56, - ) - """ - - def testAttackTimelineSegment(self): - """Test AttackTimelineSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_track.py b/test/test_attack_track.py deleted file mode 100644 index b9bc799..0000000 --- a/test/test_attack_track.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_track import AttackTrack - -class TestAttackTrack(unittest.TestCase): - """AttackTrack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackTrack: - """Test AttackTrack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackTrack` - """ - model = AttackTrack() - if include_optional: - return AttackTrack( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackTrack( - id = '', - ) - """ - - def testAttackTrack(self): - """Test AttackTrack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_method_type.py b/test/test_auth_method_type.py deleted file mode 100644 index fadf297..0000000 --- a/test/test_auth_method_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_method_type import AuthMethodType - -class TestAuthMethodType(unittest.TestCase): - """AuthMethodType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAuthMethodType(self): - """Test AuthMethodType""" - # inst = AuthMethodType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py deleted file mode 100644 index 8fbb296..0000000 --- a/test/test_auth_profile.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_profile import AuthProfile - -class TestAuthProfile(unittest.TestCase): - """AuthProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthProfile: - """Test AuthProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthProfile` - """ - model = AuthProfile() - if include_optional: - return AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '' - ) - else: - return AuthProfile( - ) - """ - - def testAuthProfile(self): - """Test AuthProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_profile_metadata.py b/test/test_auth_profile_metadata.py deleted file mode 100644 index 4acf2af..0000000 --- a/test/test_auth_profile_metadata.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_profile_metadata import AuthProfileMetadata - -class TestAuthProfileMetadata(unittest.TestCase): - """AuthProfileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthProfileMetadata: - """Test AuthProfileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthProfileMetadata` - """ - model = AuthProfileMetadata() - if include_optional: - return AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '' - ) - else: - return AuthProfileMetadata( - ) - """ - - def testAuthProfileMetadata(self): - """Test AuthProfileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py b/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py deleted file mode 100644 index 7bc5f6d..0000000 --- a/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_realms_keysight_protocol_openid_connect_token_post200_response import AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - -class TestAuthRealmsKeysightProtocolOpenidConnectTokenPost200Response(unittest.TestCase): - """AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response: - """Test AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response` - """ - model = AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response() - if include_optional: - return AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response( - access_token = '', - expires_in = 1.337, - refresh_expires_in = 1.337, - refresh_token = '' - ) - else: - return AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response( - ) - """ - - def testAuthRealmsKeysightProtocolOpenidConnectTokenPost200Response(self): - """Test AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_settings.py b/test/test_auth_settings.py deleted file mode 100644 index 3f098c6..0000000 --- a/test/test_auth_settings.py +++ /dev/null @@ -1,556 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_settings import AuthSettings - -class TestAuthSettings(unittest.TestCase): - """AuthSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthSettings: - """Test AuthSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthSettings` - """ - model = AuthSettings() - if include_optional: - return AuthSettings( - auth_method = 'AAA', - auth_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - passwords = [ - '' - ], - passwords_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - simulated_id_p = cyperf.models.simulated_id_p.SimulatedIdP( - assertion_signature = True, - audience_uri = '', - cert_config = null, - name_id_format = null, - response_signature = True, - signature_algorithm = null, - single_sign_on_url = '', - xml_metadata = [ - 'YQ==' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - usernames = [ - '' - ], - usernames_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AuthSettings( - ) - """ - - def testAuthSettings(self): - """Test AuthSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authenticate200_response.py b/test/test_authenticate200_response.py deleted file mode 100644 index c3cf86b..0000000 --- a/test/test_authenticate200_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.authenticate200_response import Authenticate200Response - -class TestAuthenticate200Response(unittest.TestCase): - """Authenticate200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Authenticate200Response: - """Test Authenticate200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Authenticate200Response` - """ - model = Authenticate200Response() - if include_optional: - return Authenticate200Response( - access_token = '', - expires_in = 1.337, - refresh_expires_in = 1.337, - refresh_token = '' - ) - else: - return Authenticate200Response( - ) - """ - - def testAuthenticate200Response(self): - """Test Authenticate200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authentication_settings.py b/test/test_authentication_settings.py deleted file mode 100644 index 62e8e3b..0000000 --- a/test/test_authentication_settings.py +++ /dev/null @@ -1,251 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.authentication_settings import AuthenticationSettings - -class TestAuthenticationSettings(unittest.TestCase): - """AuthenticationSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthenticationSettings: - """Test AuthenticationSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthenticationSettings` - """ - model = AuthenticationSettings() - if include_optional: - return AuthenticationSettings( - auth_method = 'PRE-SHARED-KEY', - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - shared_key = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AuthenticationSettings( - ) - """ - - def testAuthenticationSettings(self): - """Test AuthenticationSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authorization_api.py b/test/test_authorization_api.py deleted file mode 100644 index 6c38f78..0000000 --- a/test/test_authorization_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.authorization_api import AuthorizationApi - - -class TestAuthorizationApi(unittest.TestCase): - """AuthorizationApi unit test stubs""" - - def setUp(self) -> None: - self.api = AuthorizationApi() - - def tearDown(self) -> None: - pass - - - def test_authenticate(self) -> None: - """Test case for authenticate - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_automatic_ip_type.py b/test/test_automatic_ip_type.py deleted file mode 100644 index 906050d..0000000 --- a/test/test_automatic_ip_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.automatic_ip_type import AutomaticIpType - -class TestAutomaticIpType(unittest.TestCase): - """AutomaticIpType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAutomaticIpType(self): - """Test AutomaticIpType""" - # inst = AutomaticIpType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_broker.py b/test/test_broker.py deleted file mode 100644 index 6f0ee21..0000000 --- a/test/test_broker.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.broker import Broker - -class TestBroker(unittest.TestCase): - """Broker unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Broker: - """Test Broker - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Broker` - """ - model = Broker() - if include_optional: - return Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '' - ) - else: - return Broker( - ) - """ - - def testBroker(self): - """Test Broker""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_brokers_api.py b/test/test_brokers_api.py deleted file mode 100644 index 9c1859d..0000000 --- a/test/test_brokers_api.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.brokers_api import BrokersApi - - -class TestBrokersApi(unittest.TestCase): - """BrokersApi unit test stubs""" - - def setUp(self) -> None: - self.api = BrokersApi() - - def tearDown(self) -> None: - pass - - - def test_create_brokers(self) -> None: - """Test case for create_brokers - - """ - pass - - def test_delete_broker(self) -> None: - """Test case for delete_broker - - """ - pass - - def test_get_broker_by_id(self) -> None: - """Test case for get_broker_by_id - - """ - pass - - def test_get_brokers(self) -> None: - """Test case for get_brokers - - """ - pass - - def test_patch_broker(self) -> None: - """Test case for patch_broker - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture.py b/test/test_capture.py deleted file mode 100644 index 19f8ccb..0000000 --- a/test/test_capture.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture import Capture - -class TestCapture(unittest.TestCase): - """Capture unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Capture: - """Test Capture - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Capture` - """ - model = Capture() - if include_optional: - return Capture( - capture_id = '', - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ] - ) - else: - return Capture( - ) - """ - - def testCapture(self): - """Test Capture""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_input.py b/test/test_capture_input.py deleted file mode 100644 index 8206790..0000000 --- a/test/test_capture_input.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_input import CaptureInput - -class TestCaptureInput(unittest.TestCase): - """CaptureInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureInput: - """Test CaptureInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureInput` - """ - model = CaptureInput() - if include_optional: - return CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ] - ) - else: - return CaptureInput( - ) - """ - - def testCaptureInput(self): - """Test CaptureInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_input_find_param.py b/test/test_capture_input_find_param.py deleted file mode 100644 index 951cf83..0000000 --- a/test/test_capture_input_find_param.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_input_find_param import CaptureInputFindParam - -class TestCaptureInputFindParam(unittest.TestCase): - """CaptureInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureInputFindParam: - """Test CaptureInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureInputFindParam` - """ - model = CaptureInputFindParam() - if include_optional: - return CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ] - ) - else: - return CaptureInputFindParam( - ) - """ - - def testCaptureInputFindParam(self): - """Test CaptureInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_settings.py b/test/test_capture_settings.py deleted file mode 100644 index 2cce494..0000000 --- a/test/test_capture_settings.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_settings import CaptureSettings - -class TestCaptureSettings(unittest.TestCase): - """CaptureSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureSettings: - """Test CaptureSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureSettings` - """ - model = CaptureSettings() - if include_optional: - return CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = 'NONE', - max_capture_size = 56 - ) - else: - return CaptureSettings( - capture_enabled = True, - log_level = 'NONE', - ) - """ - - def testCaptureSettings(self): - """Test CaptureSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category.py b/test/test_category.py deleted file mode 100644 index 69f858d..0000000 --- a/test/test_category.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category import Category - -class TestCategory(unittest.TestCase): - """Category unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Category: - """Test Category - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Category` - """ - model = Category() - if include_optional: - return Category( - index = 56, - name = '', - values = [ - cyperf.models.category_value.CategoryValue( - items_count = 56, - value = '', ) - ] - ) - else: - return Category( - ) - """ - - def testCategory(self): - """Test Category""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category_filter.py b/test/test_category_filter.py deleted file mode 100644 index e737113..0000000 --- a/test/test_category_filter.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category_filter import CategoryFilter - -class TestCategoryFilter(unittest.TestCase): - """CategoryFilter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CategoryFilter: - """Test CategoryFilter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CategoryFilter` - """ - model = CategoryFilter() - if include_optional: - return CategoryFilter( - category = '', - values = [ - '' - ] - ) - else: - return CategoryFilter( - ) - """ - - def testCategoryFilter(self): - """Test CategoryFilter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category_value.py b/test/test_category_value.py deleted file mode 100644 index 2acac89..0000000 --- a/test/test_category_value.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category_value import CategoryValue - -class TestCategoryValue(unittest.TestCase): - """CategoryValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CategoryValue: - """Test CategoryValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CategoryValue` - """ - model = CategoryValue() - if include_optional: - return CategoryValue( - items_count = 56, - value = '' - ) - else: - return CategoryValue( - ) - """ - - def testCategoryValue(self): - """Test CategoryValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cert_config.py b/test/test_cert_config.py deleted file mode 100644 index 593648d..0000000 --- a/test/test_cert_config.py +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cert_config import CertConfig - -class TestCertConfig(unittest.TestCase): - """CertConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CertConfig: - """Test CertConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CertConfig` - """ - model = CertConfig() - if include_optional: - return CertConfig( - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - dh_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '' - ) - else: - return CertConfig( - id = '', - sni_hostname = '', - ) - """ - - def testCertConfig(self): - """Test CertConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_certificate.py b/test/test_certificate.py deleted file mode 100644 index 7bb1ede..0000000 --- a/test/test_certificate.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.certificate import Certificate - -class TestCertificate(unittest.TestCase): - """Certificate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Certificate: - """Test Certificate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Certificate` - """ - model = Certificate() - if include_optional: - return Certificate( - auto = True, - dns_names = [ - '' - ], - ip_addresses = [ - '' - ], - issuer = '', - not_after = '', - not_before = '', - valid_for = 56 - ) - else: - return Certificate( - ) - """ - - def testCertificate(self): - """Test Certificate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_change_aggregation_mode_operation.py b/test/test_change_aggregation_mode_operation.py deleted file mode 100644 index c0c24ce..0000000 --- a/test/test_change_aggregation_mode_operation.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.change_aggregation_mode_operation import ChangeAggregationModeOperation - -class TestChangeAggregationModeOperation(unittest.TestCase): - """ChangeAggregationModeOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChangeAggregationModeOperation: - """Test ChangeAggregationModeOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChangeAggregationModeOperation` - """ - model = ChangeAggregationModeOperation() - if include_optional: - return ChangeAggregationModeOperation( - aggregated = True, - compute_nodes = [ - '' - ], - controller = '' - ) - else: - return ChangeAggregationModeOperation( - ) - """ - - def testChangeAggregationModeOperation(self): - """Test ChangeAggregationModeOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_change_link_state_operation.py b/test/test_change_link_state_operation.py deleted file mode 100644 index d48edff..0000000 --- a/test/test_change_link_state_operation.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.change_link_state_operation import ChangeLinkStateOperation - -class TestChangeLinkStateOperation(unittest.TestCase): - """ChangeLinkStateOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChangeLinkStateOperation: - """Test ChangeLinkStateOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChangeLinkStateOperation` - """ - model = ChangeLinkStateOperation() - if include_optional: - return ChangeLinkStateOperation( - link = 'DOWN', - ports = [ - '' - ] - ) - else: - return ChangeLinkStateOperation( - ) - """ - - def testChangeLinkStateOperation(self): - """Test ChangeLinkStateOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_chassis_info.py b/test/test_chassis_info.py deleted file mode 100644 index b4a2047..0000000 --- a/test/test_chassis_info.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.chassis_info import ChassisInfo - -class TestChassisInfo(unittest.TestCase): - """ChassisInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChassisInfo: - """Test ChassisInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChassisInfo` - """ - model = ChassisInfo() - if include_optional: - return ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '' - ) - else: - return ChassisInfo( - ) - """ - - def testChassisInfo(self): - """Test ChassisInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_choice.py b/test/test_choice.py deleted file mode 100644 index 72a7347..0000000 --- a/test/test_choice.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.choice import Choice - -class TestChoice(unittest.TestCase): - """Choice unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Choice: - """Test Choice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Choice` - """ - model = Choice() - if include_optional: - return Choice( - description = '', - hidden = True, - name = '', - value = '' - ) - else: - return Choice( - ) - """ - - def testChoice(self): - """Test Choice""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cipher_tls12.py b/test/test_cipher_tls12.py deleted file mode 100644 index c4ba3da..0000000 --- a/test/test_cipher_tls12.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cipher_tls12 import CipherTLS12 - -class TestCipherTLS12(unittest.TestCase): - """CipherTLS12 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCipherTLS12(self): - """Test CipherTLS12""" - # inst = CipherTLS12() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cipher_tls13.py b/test/test_cipher_tls13.py deleted file mode 100644 index 8347bfe..0000000 --- a/test/test_cipher_tls13.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cipher_tls13 import CipherTLS13 - -class TestCipherTLS13(unittest.TestCase): - """CipherTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCipherTLS13(self): - """Test CipherTLS13""" - # inst = CipherTLS13() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cisco_any_connect_settings.py b/test/test_cisco_any_connect_settings.py deleted file mode 100644 index d928a81..0000000 --- a/test/test_cisco_any_connect_settings.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cisco_any_connect_settings import CiscoAnyConnectSettings - -class TestCiscoAnyConnectSettings(unittest.TestCase): - """CiscoAnyConnectSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CiscoAnyConnectSettings: - """Test CiscoAnyConnectSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CiscoAnyConnectSettings` - """ - model = CiscoAnyConnectSettings() - if include_optional: - return CiscoAnyConnectSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - cisco_encapsulation = cyperf.models.cisco_encapsulation.CiscoEncapsulation( - dtls_enabled = True, - dtls_settings = null, - encapsulation_mode = 'DTLS', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connection_profiles = [ - '' - ], - esp_probe_retry_timeout = 56, - esp_probe_timeout = 56, - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return CiscoAnyConnectSettings( - vpn_gateway = '::', - ) - """ - - def testCiscoAnyConnectSettings(self): - """Test CiscoAnyConnectSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cisco_encapsulation.py b/test/test_cisco_encapsulation.py deleted file mode 100644 index e9d88df..0000000 --- a/test/test_cisco_encapsulation.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cisco_encapsulation import CiscoEncapsulation - -class TestCiscoEncapsulation(unittest.TestCase): - """CiscoEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CiscoEncapsulation: - """Test CiscoEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CiscoEncapsulation` - """ - model = CiscoEncapsulation() - if include_optional: - return CiscoEncapsulation( - dtls_enabled = True, - dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - encapsulation_mode = 'DTLS', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return CiscoEncapsulation( - dtls_enabled = True, - encapsulation_mode = 'DTLS', - udp_port = 56, - ) - """ - - def testCiscoEncapsulation(self): - """Test CiscoEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_clear_ports_ownership_operation.py b/test/test_clear_ports_ownership_operation.py deleted file mode 100644 index 133b66e..0000000 --- a/test/test_clear_ports_ownership_operation.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation - -class TestClearPortsOwnershipOperation(unittest.TestCase): - """ClearPortsOwnershipOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ClearPortsOwnershipOperation: - """Test ClearPortsOwnershipOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ClearPortsOwnershipOperation` - """ - model = ClearPortsOwnershipOperation() - if include_optional: - return ClearPortsOwnershipOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ] - ) - else: - return ClearPortsOwnershipOperation( - ) - """ - - def testClearPortsOwnershipOperation(self): - """Test ClearPortsOwnershipOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_command.py b/test/test_command.py deleted file mode 100644 index 522c3ad..0000000 --- a/test/test_command.py +++ /dev/null @@ -1,200 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.command import Command - -class TestCommand(unittest.TestCase): - """Command unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Command: - """Test Command - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Command` - """ - model = Command() - if include_optional: - return Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Command( - ) - """ - - def testCommand(self): - """Test Command""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_command_metadata.py b/test/test_command_metadata.py deleted file mode 100644 index 2aa1ceb..0000000 --- a/test/test_command_metadata.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.command_metadata import CommandMetadata - -class TestCommandMetadata(unittest.TestCase): - """CommandMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CommandMetadata: - """Test CommandMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CommandMetadata` - """ - model = CommandMetadata() - if include_optional: - return CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '' - ) - else: - return CommandMetadata( - ) - """ - - def testCommandMetadata(self): - """Test CommandMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_compute_node.py b/test/test_compute_node.py deleted file mode 100644 index afbd44c..0000000 --- a/test/test_compute_node.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.compute_node import ComputeNode - -class TestComputeNode(unittest.TestCase): - """ComputeNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ComputeNode: - """Test ComputeNode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ComputeNode` - """ - model = ComputeNode() - if include_optional: - return ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '' - ) - else: - return ComputeNode( - ) - """ - - def testComputeNode(self): - """Test ComputeNode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config.py b/test/test_config.py deleted file mode 100644 index c576435..0000000 --- a/test/test_config.py +++ /dev/null @@ -1,160 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config import Config - -class TestConfig(unittest.TestCase): - """Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Config: - """Test Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Config` - """ - model = Config() - if include_optional: - return Config( - attack_profiles = [ - null - ], - config_validation = cyperf.models.config_validation.ConfigValidation( - is_validated = True, - validation_messages = [ - cyperf.models.validation_message.ValidationMessage( - message = '', - severity = 'WARNING', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - custom_dashboards = cyperf.models.custom_dashboards.CustomDashboards( - active = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = cyperf.models.snowflake_exporter.SnowflakeExporter( - active = True, - polling_interval = 56, - profile = null, - server_url = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ] - ) - else: - return Config( - ) - """ - - def testConfig(self): - """Test Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_category.py b/test/test_config_category.py deleted file mode 100644 index 9b2cba2..0000000 --- a/test/test_config_category.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_category import ConfigCategory - -class TestConfigCategory(unittest.TestCase): - """ConfigCategory unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigCategory: - """Test ConfigCategory - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigCategory` - """ - model = ConfigCategory() - if include_optional: - return ConfigCategory( - display_name = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - subcategories = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ] - ) - else: - return ConfigCategory( - ) - """ - - def testConfigCategory(self): - """Test ConfigCategory""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_id.py b/test/test_config_id.py deleted file mode 100644 index afac615..0000000 --- a/test/test_config_id.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_id import ConfigId - -class TestConfigId(unittest.TestCase): - """ConfigId unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigId: - """Test ConfigId - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigId` - """ - model = ConfigId() - if include_optional: - return ConfigId( - id = '' - ) - else: - return ConfigId( - ) - """ - - def testConfigId(self): - """Test ConfigId""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_metadata.py b/test/test_config_metadata.py deleted file mode 100644 index 636a312..0000000 --- a/test/test_config_metadata.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_metadata import ConfigMetadata - -class TestConfigMetadata(unittest.TestCase): - """ConfigMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigMetadata: - """Test ConfigMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigMetadata` - """ - model = ConfigMetadata() - if include_optional: - return ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ) - ) - else: - return ConfigMetadata( - ) - """ - - def testConfigMetadata(self): - """Test ConfigMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_metadata_config_data_value.py b/test/test_config_metadata_config_data_value.py deleted file mode 100644 index 20c8cd6..0000000 --- a/test/test_config_metadata_config_data_value.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue - -class TestConfigMetadataConfigDataValue(unittest.TestCase): - """ConfigMetadataConfigDataValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigMetadataConfigDataValue: - """Test ConfigMetadataConfigDataValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigMetadataConfigDataValue` - """ - model = ConfigMetadataConfigDataValue() - if include_optional: - return ConfigMetadataConfigDataValue( - ) - else: - return ConfigMetadataConfigDataValue( - ) - """ - - def testConfigMetadataConfigDataValue(self): - """Test ConfigMetadataConfigDataValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_sub_category.py b/test/test_config_sub_category.py deleted file mode 100644 index c4f8e6e..0000000 --- a/test/test_config_sub_category.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_sub_category import ConfigSubCategory - -class TestConfigSubCategory(unittest.TestCase): - """ConfigSubCategory unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigSubCategory: - """Test ConfigSubCategory - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigSubCategory` - """ - model = ConfigSubCategory() - if include_optional: - return ConfigSubCategory( - display_name = '' - ) - else: - return ConfigSubCategory( - ) - """ - - def testConfigSubCategory(self): - """Test ConfigSubCategory""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_validation.py b/test/test_config_validation.py deleted file mode 100644 index 1905fd6..0000000 --- a/test/test_config_validation.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_validation import ConfigValidation - -class TestConfigValidation(unittest.TestCase): - """ConfigValidation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigValidation: - """Test ConfigValidation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigValidation` - """ - model = ConfigValidation() - if include_optional: - return ConfigValidation( - is_validated = True, - validation_messages = [ - cyperf.models.validation_message.ValidationMessage( - message = '', - severity = 'WARNING', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ConfigValidation( - is_validated = True, - ) - """ - - def testConfigValidation(self): - """Test ConfigValidation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_configurations_api.py b/test/test_configurations_api.py deleted file mode 100644 index 74987c3..0000000 --- a/test/test_configurations_api.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.configurations_api import ConfigurationsApi - - -class TestConfigurationsApi(unittest.TestCase): - """ConfigurationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ConfigurationsApi() - - def tearDown(self) -> None: - pass - - - def test_create_configs(self) -> None: - """Test case for create_configs - - """ - pass - - def test_delete_config(self) -> None: - """Test case for delete_config - - """ - pass - - def test_get_config_by_id(self) -> None: - """Test case for get_config_by_id - - """ - pass - - def test_get_config_categorie_by_id(self) -> None: - """Test case for get_config_categorie_by_id - - """ - pass - - def test_get_config_categorie_subcategories(self) -> None: - """Test case for get_config_categorie_subcategories - - """ - pass - - def test_get_config_categories(self) -> None: - """Test case for get_config_categories - - """ - pass - - def test_get_configs(self) -> None: - """Test case for get_configs - - """ - pass - - def test_get_resources_custom_import_operations(self) -> None: - """Test case for get_resources_custom_import_operations - - """ - pass - - def test_patch_config(self) -> None: - """Test case for patch_config - - """ - pass - - - - - - def test_start_configs_batch_delete(self) -> None: - """Test case for start_configs_batch_delete - - """ - pass - - def test_start_configs_export_all(self) -> None: - """Test case for start_configs_export_all - - """ - pass - - def test_start_configs_import(self) -> None: - """Test case for start_configs_import - - """ - pass - - def test_start_configs_import_all(self) -> None: - """Test case for start_configs_import_all - - """ - pass - - def test_update_config(self) -> None: - """Test case for update_config - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_conflict.py b/test/test_conflict.py deleted file mode 100644 index 71d4253..0000000 --- a/test/test_conflict.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.conflict import Conflict - -class TestConflict(unittest.TestCase): - """Conflict unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Conflict: - """Test Conflict - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Conflict` - """ - model = Conflict() - if include_optional: - return Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - } - ) - else: - return Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, - ) - """ - - def testConflict(self): - """Test Conflict""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_connection.py b/test/test_connection.py deleted file mode 100644 index cf069f2..0000000 --- a/test/test_connection.py +++ /dev/null @@ -1,196 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.connection import Connection - -class TestConnection(unittest.TestCase): - """Connection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Connection: - """Test Connection - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Connection` - """ - model = Connection() - if include_optional: - return Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = cyperf.models.port_settings.PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - effective_ports = cyperf.models.effective_ports.EffectivePorts(), - forward_proxy_port = 56, - readonly = True, - server_listen_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Connection( - client_endpoint = '', - client_port = 56, - max_transactions = 56, - server_port = 56, - id = '', - ) - """ - - def testConnection(self): - """Test Connection""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_connection_persistence.py b/test/test_connection_persistence.py deleted file mode 100644 index f63efcc..0000000 --- a/test/test_connection_persistence.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.connection_persistence import ConnectionPersistence - -class TestConnectionPersistence(unittest.TestCase): - """ConnectionPersistence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConnectionPersistence(self): - """Test ConnectionPersistence""" - # inst = ConnectionPersistence() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_consumer.py b/test/test_consumer.py deleted file mode 100644 index 5543eb7..0000000 --- a/test/test_consumer.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.consumer import Consumer - -class TestConsumer(unittest.TestCase): - """Consumer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Consumer: - """Test Consumer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Consumer` - """ - model = Consumer() - if include_optional: - return Consumer( - id = '', - pretty_size = '', - size = 56 - ) - else: - return Consumer( - ) - """ - - def testConsumer(self): - """Test Consumer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_controller.py b/test/test_controller.py deleted file mode 100644 index d986e8b..0000000 --- a/test/test_controller.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.controller import Controller - -class TestController(unittest.TestCase): - """Controller unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Controller: - """Test Controller - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Controller` - """ - model = Controller() - if include_optional: - return Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '' - ) - else: - return Controller( - ) - """ - - def testController(self): - """Test Controller""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_counted_feature_consumer.py b/test/test_counted_feature_consumer.py deleted file mode 100644 index 28f7e41..0000000 --- a/test/test_counted_feature_consumer.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.counted_feature_consumer import CountedFeatureConsumer - -class TestCountedFeatureConsumer(unittest.TestCase): - """CountedFeatureConsumer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CountedFeatureConsumer: - """Test CountedFeatureConsumer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CountedFeatureConsumer` - """ - model = CountedFeatureConsumer() - if include_optional: - return CountedFeatureConsumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '' - ) - else: - return CountedFeatureConsumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', - ) - """ - - def testCountedFeatureConsumer(self): - """Test CountedFeatureConsumer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_counted_feature_stats.py b/test/test_counted_feature_stats.py deleted file mode 100644 index 0298224..0000000 --- a/test/test_counted_feature_stats.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.counted_feature_stats import CountedFeatureStats - -class TestCountedFeatureStats(unittest.TestCase): - """CountedFeatureStats unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CountedFeatureStats: - """Test CountedFeatureStats - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CountedFeatureStats` - """ - model = CountedFeatureStats() - if include_optional: - return CountedFeatureStats( - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56 - ) - else: - return CountedFeatureStats( - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56, - ) - """ - - def testCountedFeatureStats(self): - """Test CountedFeatureStats""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_app_operation.py b/test/test_create_app_operation.py deleted file mode 100644 index 4d07f50..0000000 --- a/test/test_create_app_operation.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.create_app_operation import CreateAppOperation - -class TestCreateAppOperation(unittest.TestCase): - """CreateAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateAppOperation: - """Test CreateAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateAppOperation` - """ - model = CreateAppOperation() - if include_optional: - return CreateAppOperation( - actions = [ - cyperf.models.action_input.ActionInput( - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_name = '', - app_type = '', - description = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ] - ) - else: - return CreateAppOperation( - ) - """ - - def testCreateAppOperation(self): - """Test CreateAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_app_or_attack_operation_input.py b/test/test_create_app_or_attack_operation_input.py deleted file mode 100644 index 1a1ac7e..0000000 --- a/test/test_create_app_or_attack_operation_input.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput - -class TestCreateAppOrAttackOperationInput(unittest.TestCase): - """CreateAppOrAttackOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateAppOrAttackOperationInput: - """Test CreateAppOrAttackOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateAppOrAttackOperationInput` - """ - model = CreateAppOrAttackOperationInput() - if include_optional: - return CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '' - ) - else: - return CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - ) - """ - - def testCreateAppOrAttackOperationInput(self): - """Test CreateAppOrAttackOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_dashboards.py b/test/test_custom_dashboards.py deleted file mode 100644 index 18d4f1a..0000000 --- a/test/test_custom_dashboards.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_dashboards import CustomDashboards - -class TestCustomDashboards(unittest.TestCase): - """CustomDashboards unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomDashboards: - """Test CustomDashboards - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomDashboards` - """ - model = CustomDashboards() - if include_optional: - return CustomDashboards( - active = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return CustomDashboards( - active = True, - ) - """ - - def testCustomDashboards(self): - """Test CustomDashboards""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_import_handler.py b/test/test_custom_import_handler.py deleted file mode 100644 index d1aa397..0000000 --- a/test/test_custom_import_handler.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_import_handler import CustomImportHandler - -class TestCustomImportHandler(unittest.TestCase): - """CustomImportHandler unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomImportHandler: - """Test CustomImportHandler - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomImportHandler` - """ - model = CustomImportHandler() - if include_optional: - return CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '' - ) - else: - return CustomImportHandler( - ) - """ - - def testCustomImportHandler(self): - """Test CustomImportHandler""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_stat.py b/test/test_custom_stat.py deleted file mode 100644 index c072a09..0000000 --- a/test/test_custom_stat.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_stat import CustomStat - -class TestCustomStat(unittest.TestCase): - """CustomStat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomStat: - """Test CustomStat - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomStat` - """ - model = CustomStat() - if include_optional: - return CustomStat( - function = '', - is_rate = True, - path = '' - ) - else: - return CustomStat( - ) - """ - - def testCustomStat(self): - """Test CustomStat""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dashboard.py b/test/test_dashboard.py deleted file mode 100644 index 1b18219..0000000 --- a/test/test_dashboard.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dashboard import Dashboard - -class TestDashboard(unittest.TestCase): - """Dashboard unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Dashboard: - """Test Dashboard - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Dashboard` - """ - model = Dashboard() - if include_optional: - return Dashboard( - id = '', - name = '' - ) - else: - return Dashboard( - ) - """ - - def testDashboard(self): - """Test Dashboard""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_migration_api.py b/test/test_data_migration_api.py deleted file mode 100644 index 9b43983..0000000 --- a/test/test_data_migration_api.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.data_migration_api import DataMigrationApi - - -class TestDataMigrationApi(unittest.TestCase): - """DataMigrationApi unit test stubs""" - - def setUp(self) -> None: - self.api = DataMigrationApi() - - def tearDown(self) -> None: - pass - - - - - def test_start_controller_migration_export(self) -> None: - """Test case for start_controller_migration_export - - """ - pass - - def test_start_controller_migration_import(self) -> None: - """Test case for start_controller_migration_import - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_type.py b/test/test_data_type.py deleted file mode 100644 index 446008e..0000000 --- a/test/test_data_type.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.data_type import DataType - -class TestDataType(unittest.TestCase): - """DataType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataType: - """Test DataType - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DataType` - """ - model = DataType() - if include_optional: - return DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '' - ) - else: - return DataType( - ) - """ - - def testDataType(self): - """Test DataType""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_type_values_inner.py b/test/test_data_type_values_inner.py deleted file mode 100644 index 864d8e6..0000000 --- a/test/test_data_type_values_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.data_type_values_inner import DataTypeValuesInner - -class TestDataTypeValuesInner(unittest.TestCase): - """DataTypeValuesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataTypeValuesInner: - """Test DataTypeValuesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DataTypeValuesInner` - """ - model = DataTypeValuesInner() - if include_optional: - return DataTypeValuesInner( - id = '', - value_type = '' - ) - else: - return DataTypeValuesInner( - ) - """ - - def testDataTypeValuesInner(self): - """Test DataTypeValuesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_definition.py b/test/test_definition.py deleted file mode 100644 index 5bde617..0000000 --- a/test/test_definition.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.definition import Definition - -class TestDefinition(unittest.TestCase): - """Definition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Definition: - """Test Definition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Definition` - """ - model = Definition() - if include_optional: - return Definition( - xml = 'YQ==' - ) - else: - return Definition( - ) - """ - - def testDefinition(self): - """Test Definition""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_delete_input.py b/test/test_delete_input.py deleted file mode 100644 index e7ad4fc..0000000 --- a/test/test_delete_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.delete_input import DeleteInput - -class TestDeleteInput(unittest.TestCase): - """DeleteInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteInput: - """Test DeleteInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteInput` - """ - model = DeleteInput() - if include_optional: - return DeleteInput( - action_index_delete_at = 56, - exchange_delete_at = 56, - flow_index_delete_at = 56, - type = '' - ) - else: - return DeleteInput( - ) - """ - - def testDeleteInput(self): - """Test DeleteInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dh_p1_group.py b/test/test_dh_p1_group.py deleted file mode 100644 index 8850446..0000000 --- a/test/test_dh_p1_group.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dh_p1_group import DhP1Group - -class TestDhP1Group(unittest.TestCase): - """DhP1Group unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDhP1Group(self): - """Test DhP1Group""" - # inst = DhP1Group() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_component.py b/test/test_diagnostic_component.py deleted file mode 100644 index a2a2790..0000000 --- a/test/test_diagnostic_component.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_component import DiagnosticComponent - -class TestDiagnosticComponent(unittest.TestCase): - """DiagnosticComponent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticComponent: - """Test DiagnosticComponent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticComponent` - """ - model = DiagnosticComponent() - if include_optional: - return DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ] - ) - else: - return DiagnosticComponent( - ) - """ - - def testDiagnosticComponent(self): - """Test DiagnosticComponent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_component_context.py b/test/test_diagnostic_component_context.py deleted file mode 100644 index 1ffa41a..0000000 --- a/test/test_diagnostic_component_context.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_component_context import DiagnosticComponentContext - -class TestDiagnosticComponentContext(unittest.TestCase): - """DiagnosticComponentContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticComponentContext: - """Test DiagnosticComponentContext - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticComponentContext` - """ - model = DiagnosticComponentContext() - if include_optional: - return DiagnosticComponentContext( - component_list = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ], - context = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ] - ) - else: - return DiagnosticComponentContext( - component_list = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ], - ) - """ - - def testDiagnosticComponentContext(self): - """Test DiagnosticComponentContext""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_options.py b/test/test_diagnostic_options.py deleted file mode 100644 index f9aa64a..0000000 --- a/test/test_diagnostic_options.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_options import DiagnosticOptions - -class TestDiagnosticOptions(unittest.TestCase): - """DiagnosticOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticOptions: - """Test DiagnosticOptions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticOptions` - """ - model = DiagnosticOptions() - if include_optional: - return DiagnosticOptions( - name = '', - value = '' - ) - else: - return DiagnosticOptions( - ) - """ - - def testDiagnosticOptions(self): - """Test DiagnosticOptions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostics_api.py b/test/test_diagnostics_api.py deleted file mode 100644 index e7fbfb1..0000000 --- a/test/test_diagnostics_api.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.diagnostics_api import DiagnosticsApi - - -class TestDiagnosticsApi(unittest.TestCase): - """DiagnosticsApi unit test stubs""" - - def setUp(self) -> None: - self.api = DiagnosticsApi() - - def tearDown(self) -> None: - pass - - - def test_api_v2_diagnostics_components_get(self) -> None: - """Test case for api_v2_diagnostics_components_get - - """ - pass - - def test_api_v2_diagnostics_operations_delete_delete(self) -> None: - """Test case for api_v2_diagnostics_operations_delete_delete - - """ - pass - - def test_api_v2_diagnostics_operations_delete_id_delete(self) -> None: - """Test case for api_v2_diagnostics_operations_delete_id_delete - - """ - pass - - def test_api_v2_diagnostics_operations_export_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_id_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_id_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_id_result_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_id_result_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_post(self) -> None: - """Test case for api_v2_diagnostics_operations_export_post - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_disk_usage.py b/test/test_disk_usage.py deleted file mode 100644 index e2d7830..0000000 --- a/test/test_disk_usage.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.disk_usage import DiskUsage - -class TestDiskUsage(unittest.TestCase): - """DiskUsage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiskUsage: - """Test DiskUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiskUsage` - """ - model = DiskUsage() - if include_optional: - return DiskUsage( - available = 56, - consumers = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - critical_disk_space = True, - critical_threshold = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - low_disk_space = True, - low_threshold = 56, - message = '', - pretty_available = '', - pretty_size = '', - size = 56 - ) - else: - return DiskUsage( - ) - """ - - def testDiskUsage(self): - """Test DiskUsage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dns_resolver.py b/test/test_dns_resolver.py deleted file mode 100644 index c6abfb2..0000000 --- a/test/test_dns_resolver.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dns_resolver import DNSResolver - -class TestDNSResolver(unittest.TestCase): - """DNSResolver unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DNSResolver: - """Test DNSResolver - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DNSResolver` - """ - model = DNSResolver() - if include_optional: - return DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ] - ) - else: - return DNSResolver( - ) - """ - - def testDNSResolver(self): - """Test DNSResolver""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dns_server.py b/test/test_dns_server.py deleted file mode 100644 index 9b40409..0000000 --- a/test/test_dns_server.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dns_server import DNSServer - -class TestDNSServer(unittest.TestCase): - """DNSServer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DNSServer: - """Test DNSServer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DNSServer` - """ - model = DNSServer() - if include_optional: - return DNSServer( - automatic = True, - enabled = True, - ip_to_resolve_to = '::02:84:9:0cc0:F:CCf', - port = 56 - ) - else: - return DNSServer( - enabled = True, - port = 56, - ) - """ - - def testDNSServer(self): - """Test DNSServer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dtls_settings.py b/test/test_dtls_settings.py deleted file mode 100644 index 5a7d9d9..0000000 --- a/test/test_dtls_settings.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dtls_settings import DTLSSettings - -class TestDTLSSettings(unittest.TestCase): - """DTLSSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DTLSSettings: - """Test DTLSSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DTLSSettings` - """ - model = DTLSSettings() - if include_optional: - return DTLSSettings( - tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return DTLSSettings( - ) - """ - - def testDTLSSettings(self): - """Test DTLSSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dut_network.py b/test/test_dut_network.py deleted file mode 100644 index 7100ee9..0000000 --- a/test/test_dut_network.py +++ /dev/null @@ -1,789 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dut_network import DUTNetwork - -class TestDUTNetwork(unittest.TestCase): - """DUTNetwork unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DUTNetwork: - """Test DUTNetwork - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DUTNetwork` - """ - model = DUTNetwork() - if include_optional: - return DUTNetwork( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ], - client_dut_active = True, - client_dut_host = '252.7.188.200', - client_dut_port = 56, - config_settings = 'SIMPLE_MODE', - forward_proxy_pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - forward_proxy_pep_dut_active = True, - http_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - https_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - hostname_suffix = '252.7.188.200', - http_forward_proxy_mode = 'PROXY_MODE', - non_proxied_hosts = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - pep_dut_active = True, - reverse_proxy_pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - reverse_proxy_pep_dut_active = True, - server_dut_active = True, - server_dut_host = '252.7.188.200', - server_dut_port = 56, - tcp_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - use_real_host = True, - active = True, - host = '252.7.188.200', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return DUTNetwork( - name = 'YBuLd', - id = '', - ) - """ - - def testDUTNetwork(self): - """Test DUTNetwork""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_edit_action_input.py b/test/test_edit_action_input.py deleted file mode 100644 index 93f8415..0000000 --- a/test/test_edit_action_input.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.edit_action_input import EditActionInput - -class TestEditActionInput(unittest.TestCase): - """EditActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EditActionInput: - """Test EditActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EditActionInput` - """ - model = EditActionInput() - if include_optional: - return EditActionInput( - action_index = 56, - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ] - ) - else: - return EditActionInput( - ) - """ - - def testEditActionInput(self): - """Test EditActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_edit_app_operation.py b/test/test_edit_app_operation.py deleted file mode 100644 index ee70f2c..0000000 --- a/test/test_edit_app_operation.py +++ /dev/null @@ -1,150 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.edit_app_operation import EditAppOperation - -class TestEditAppOperation(unittest.TestCase): - """EditAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EditAppOperation: - """Test EditAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EditAppOperation` - """ - model = EditAppOperation() - if include_optional: - return EditAppOperation( - add_inputs = [ - cyperf.models.add_input.AddInput( - action_index = 56, - action_name = '', - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - exchange_index_insert_at = 56, - flow_index_insert_at = 56, - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], - type = '', ) - ], - app_description = '', - app_id = '', - app_name = '', - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], - delete_inputs = [ - cyperf.models.delete_input.DeleteInput( - action_index_delete_at = 56, - exchange_delete_at = 56, - flow_index_delete_at = 56, - type = '', ) - ], - edit_action_inputs = [ - cyperf.models.edit_action_input.EditActionInput( - action_index = 56, - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - rename_inputs = [ - cyperf.models.rename_input.RenameInput( - new_action_name = '', - old_action_name = '', ) - ], - reorder_actions_inputs = [ - cyperf.models.reorder_action_input.ReorderActionInput( - action_idx = 56, - action_name = '', ) - ], - reorder_exchanges_inputs = [ - cyperf.models.reorder_exchanges_input.ReorderExchangesInput( - action_name = '', - exchanges_order = [ - cyperf.models.exchange_order.ExchangeOrder( - exchange_id = '', - exchange_idx = 56, ) - ], - flow_idx = 56, ) - ] - ) - else: - return EditAppOperation( - ) - """ - - def testEditAppOperation(self): - """Test EditAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_effective_ports.py b/test/test_effective_ports.py deleted file mode 100644 index d6c350d..0000000 --- a/test/test_effective_ports.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.effective_ports import EffectivePorts - -class TestEffectivePorts(unittest.TestCase): - """EffectivePorts unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EffectivePorts: - """Test EffectivePorts - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EffectivePorts` - """ - model = EffectivePorts() - if include_optional: - return EffectivePorts( - effective_destination_port = '', - effective_forward_proxy_port = '', - effective_server_port = '' - ) - else: - return EffectivePorts( - effective_destination_port = '', - effective_server_port = '', - ) - """ - - def testEffectivePorts(self): - """Test EffectivePorts""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_router.py b/test/test_emulated_router.py deleted file mode 100644 index a7cc440..0000000 --- a/test/test_emulated_router.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_router import EmulatedRouter - -class TestEmulatedRouter(unittest.TestCase): - """EmulatedRouter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedRouter: - """Test EmulatedRouter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedRouter` - """ - model = EmulatedRouter() - if include_optional: - return EmulatedRouter( - emulated_router_ranges = [ - null - ], - enabled = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return EmulatedRouter( - enabled = True, - ) - """ - - def testEmulatedRouter(self): - """Test EmulatedRouter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_router_range.py b/test/test_emulated_router_range.py deleted file mode 100644 index 0a41ab4..0000000 --- a/test/test_emulated_router_range.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_router_range import EmulatedRouterRange - -class TestEmulatedRouterRange(unittest.TestCase): - """EmulatedRouterRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedRouterRange: - """Test EmulatedRouterRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedRouterRange` - """ - model = EmulatedRouterRange() - if include_optional: - return EmulatedRouterRange( - automatic_ip_type = 'BOTH_IPV4_IPV6', - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = 'IPV4', - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ] - ) - else: - return EmulatedRouterRange( - gw_auto = True, - ip_auto = True, - ip_range_name = 'YBuLd', - ip_ver = 'IPV4', - mss = 56, - mss_auto = True, - net_mask_auto = True, - id = '', - ) - """ - - def testEmulatedRouterRange(self): - """Test EmulatedRouterRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_subnet_config.py b/test/test_emulated_subnet_config.py deleted file mode 100644 index 42a6a41..0000000 --- a/test/test_emulated_subnet_config.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_subnet_config import EmulatedSubnetConfig - -class TestEmulatedSubnetConfig(unittest.TestCase): - """EmulatedSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedSubnetConfig: - """Test EmulatedSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedSubnetConfig` - """ - model = EmulatedSubnetConfig() - if include_optional: - return EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ] - ) - else: - return EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], - ) - """ - - def testEmulatedSubnetConfig(self): - """Test EmulatedSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enc_p1_algorithm.py b/test/test_enc_p1_algorithm.py deleted file mode 100644 index ff4dfac..0000000 --- a/test/test_enc_p1_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enc_p1_algorithm import EncP1Algorithm - -class TestEncP1Algorithm(unittest.TestCase): - """EncP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEncP1Algorithm(self): - """Test EncP1Algorithm""" - # inst = EncP1Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enc_p2_algorithm.py b/test/test_enc_p2_algorithm.py deleted file mode 100644 index 9ed9dab..0000000 --- a/test/test_enc_p2_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enc_p2_algorithm import EncP2Algorithm - -class TestEncP2Algorithm(unittest.TestCase): - """EncP2Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEncP2Algorithm(self): - """Test EncP2Algorithm""" - # inst = EncP2Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_endpoint.py b/test/test_endpoint.py deleted file mode 100644 index 5d02f07..0000000 --- a/test/test_endpoint.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.endpoint import Endpoint - -class TestEndpoint(unittest.TestCase): - """Endpoint unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Endpoint: - """Test Endpoint - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Endpoint` - """ - model = Endpoint() - if include_optional: - return Endpoint( - name = '', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Endpoint( - name = '', - type = 'Client', - id = '', - ) - """ - - def testEndpoint(self): - """Test Endpoint""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_entitlement_code_info.py b/test/test_entitlement_code_info.py deleted file mode 100644 index 2cb6e29..0000000 --- a/test/test_entitlement_code_info.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.entitlement_code_info import EntitlementCodeInfo - -class TestEntitlementCodeInfo(unittest.TestCase): - """EntitlementCodeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EntitlementCodeInfo: - """Test EntitlementCodeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EntitlementCodeInfo` - """ - model = EntitlementCodeInfo() - if include_optional: - return EntitlementCodeInfo( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '' - ) - else: - return EntitlementCodeInfo( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - ) - """ - - def testEntitlementCodeInfo(self): - """Test EntitlementCodeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_entitlement_code_request.py b/test/test_entitlement_code_request.py deleted file mode 100644 index 664d044..0000000 --- a/test/test_entitlement_code_request.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.entitlement_code_request import EntitlementCodeRequest - -class TestEntitlementCodeRequest(unittest.TestCase): - """EntitlementCodeRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EntitlementCodeRequest: - """Test EntitlementCodeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EntitlementCodeRequest` - """ - model = EntitlementCodeRequest() - if include_optional: - return EntitlementCodeRequest( - entitlement_code = '' - ) - else: - return EntitlementCodeRequest( - entitlement_code = '', - ) - """ - - def testEntitlementCodeRequest(self): - """Test EntitlementCodeRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enum.py b/test/test_enum.py deleted file mode 100644 index 5c1a63f..0000000 --- a/test/test_enum.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enum import Enum - -class TestEnum(unittest.TestCase): - """Enum unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Enum: - """Test Enum - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Enum` - """ - model = Enum() - if include_optional: - return Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '' - ) - else: - return Enum( - ) - """ - - def testEnum(self): - """Test Enum""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_description.py b/test/test_error_description.py deleted file mode 100644 index 4822994..0000000 --- a/test/test_error_description.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.error_description import ErrorDescription - -class TestErrorDescription(unittest.TestCase): - """ErrorDescription unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorDescription: - """Test ErrorDescription - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ErrorDescription` - """ - model = ErrorDescription() - if include_optional: - return ErrorDescription( - error = '' - ) - else: - return ErrorDescription( - error = '', - ) - """ - - def testErrorDescription(self): - """Test ErrorDescription""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_response.py b/test/test_error_response.py deleted file mode 100644 index 44c8cd8..0000000 --- a/test/test_error_response.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.error_response import ErrorResponse - -class TestErrorResponse(unittest.TestCase): - """ErrorResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorResponse: - """Test ErrorResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ErrorResponse` - """ - model = ErrorResponse() - if include_optional: - return ErrorResponse( - message = '' - ) - else: - return ErrorResponse( - ) - """ - - def testErrorResponse(self): - """Test ErrorResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_esp_over_udp_settings.py b/test/test_esp_over_udp_settings.py deleted file mode 100644 index 44a1666..0000000 --- a/test/test_esp_over_udp_settings.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings - -class TestESPOverUDPSettings(unittest.TestCase): - """ESPOverUDPSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ESPOverUDPSettings: - """Test ESPOverUDPSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ESPOverUDPSettings` - """ - model = ESPOverUDPSettings() - if include_optional: - return ESPOverUDPSettings( - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ESPOverUDPSettings( - ) - """ - - def testESPOverUDPSettings(self): - """Test ESPOverUDPSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eth_range.py b/test/test_eth_range.py deleted file mode 100644 index e090676..0000000 --- a/test/test_eth_range.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eth_range import EthRange - -class TestEthRange(unittest.TestCase): - """EthRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EthRange: - """Test EthRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EthRange` - """ - model = EthRange() - if include_optional: - return EthRange( - count = 56, - mac_auto = True, - mac_incr = '2E-B0-08-29:0c:01', - mac_start = '2E-B0-08-29:0c:01', - one_mac_per_ip = True, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56 - ) - else: - return EthRange( - mac_auto = True, - ) - """ - - def testEthRange(self): - """Test EthRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eula_details.py b/test/test_eula_details.py deleted file mode 100644 index d1a8c1b..0000000 --- a/test/test_eula_details.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eula_details import EulaDetails - -class TestEulaDetails(unittest.TestCase): - """EulaDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EulaDetails: - """Test EulaDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EulaDetails` - """ - model = EulaDetails() - if include_optional: - return EulaDetails( - accepted = True, - id = '', - html = '', - text = '' - ) - else: - return EulaDetails( - accepted = True, - ) - """ - - def testEulaDetails(self): - """Test EulaDetails""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eula_summary.py b/test/test_eula_summary.py deleted file mode 100644 index 29bf48b..0000000 --- a/test/test_eula_summary.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eula_summary import EulaSummary - -class TestEulaSummary(unittest.TestCase): - """EulaSummary unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EulaSummary: - """Test EulaSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EulaSummary` - """ - model = EulaSummary() - if include_optional: - return EulaSummary( - accepted = True, - id = '' - ) - else: - return EulaSummary( - accepted = True, - ) - """ - - def testEulaSummary(self): - """Test EulaSummary""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange.py b/test/test_exchange.py deleted file mode 100644 index fc42292..0000000 --- a/test/test_exchange.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange import Exchange - -class TestExchange(unittest.TestCase): - """Exchange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Exchange: - """Test Exchange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Exchange` - """ - model = Exchange() - if include_optional: - return Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '' - ) - else: - return Exchange( - id = '', - ) - """ - - def testExchange(self): - """Test Exchange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange_order.py b/test/test_exchange_order.py deleted file mode 100644 index 60401d0..0000000 --- a/test/test_exchange_order.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange_order import ExchangeOrder - -class TestExchangeOrder(unittest.TestCase): - """ExchangeOrder unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExchangeOrder: - """Test ExchangeOrder - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExchangeOrder` - """ - model = ExchangeOrder() - if include_optional: - return ExchangeOrder( - exchange_id = '', - exchange_idx = 56 - ) - else: - return ExchangeOrder( - ) - """ - - def testExchangeOrder(self): - """Test ExchangeOrder""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange_payload.py b/test/test_exchange_payload.py deleted file mode 100644 index 6547c53..0000000 --- a/test/test_exchange_payload.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange_payload import ExchangePayload - -class TestExchangePayload(unittest.TestCase): - """ExchangePayload unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExchangePayload: - """Test ExchangePayload - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExchangePayload` - """ - model = ExchangePayload() - if include_optional: - return ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==' - ) - else: - return ExchangePayload( - ) - """ - - def testExchangePayload(self): - """Test ExchangePayload""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space.py b/test/test_expected_disk_space.py deleted file mode 100644 index de7986f..0000000 --- a/test/test_expected_disk_space.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space import ExpectedDiskSpace - -class TestExpectedDiskSpace(unittest.TestCase): - """ExpectedDiskSpace unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpace: - """Test ExpectedDiskSpace - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpace` - """ - model = ExpectedDiskSpace() - if include_optional: - return ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ) - ) - else: - return ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), - ) - """ - - def testExpectedDiskSpace(self): - """Test ExpectedDiskSpace""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_message.py b/test/test_expected_disk_space_message.py deleted file mode 100644 index 54fb84d..0000000 --- a/test/test_expected_disk_space_message.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_message import ExpectedDiskSpaceMessage - -class TestExpectedDiskSpaceMessage(unittest.TestCase): - """ExpectedDiskSpaceMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpaceMessage: - """Test ExpectedDiskSpaceMessage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpaceMessage` - """ - model = ExpectedDiskSpaceMessage() - if include_optional: - return ExpectedDiskSpaceMessage( - per_minute = '', - per_second = '', - total = '' - ) - else: - return ExpectedDiskSpaceMessage( - per_minute = '', - per_second = '', - total = '', - ) - """ - - def testExpectedDiskSpaceMessage(self): - """Test ExpectedDiskSpaceMessage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_pretty_size.py b/test/test_expected_disk_space_pretty_size.py deleted file mode 100644 index fb5c6cf..0000000 --- a/test/test_expected_disk_space_pretty_size.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_pretty_size import ExpectedDiskSpacePrettySize - -class TestExpectedDiskSpacePrettySize(unittest.TestCase): - """ExpectedDiskSpacePrettySize unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpacePrettySize: - """Test ExpectedDiskSpacePrettySize - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpacePrettySize` - """ - model = ExpectedDiskSpacePrettySize() - if include_optional: - return ExpectedDiskSpacePrettySize( - per_minute = '', - per_second = '', - total = '' - ) - else: - return ExpectedDiskSpacePrettySize( - per_minute = '', - per_second = '', - total = '', - ) - """ - - def testExpectedDiskSpacePrettySize(self): - """Test ExpectedDiskSpacePrettySize""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_size.py b/test/test_expected_disk_space_size.py deleted file mode 100644 index 3bd9b3d..0000000 --- a/test/test_expected_disk_space_size.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_size import ExpectedDiskSpaceSize - -class TestExpectedDiskSpaceSize(unittest.TestCase): - """ExpectedDiskSpaceSize unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpaceSize: - """Test ExpectedDiskSpaceSize - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpaceSize` - """ - model = ExpectedDiskSpaceSize() - if include_optional: - return ExpectedDiskSpaceSize( - per_minute = 56, - per_second = 56, - total = 56 - ) - else: - return ExpectedDiskSpaceSize( - per_minute = 56, - per_second = 56, - total = 56, - ) - """ - - def testExpectedDiskSpaceSize(self): - """Test ExpectedDiskSpaceSize""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_all_operation.py b/test/test_export_all_operation.py deleted file mode 100644 index 04c8641..0000000 --- a/test/test_export_all_operation.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_all_operation import ExportAllOperation - -class TestExportAllOperation(unittest.TestCase): - """ExportAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportAllOperation: - """Test ExportAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportAllOperation` - """ - model = ExportAllOperation() - if include_optional: - return ExportAllOperation( - config_ids = [ - cyperf.models.config_id.ConfigId( - id = '', ) - ] - ) - else: - return ExportAllOperation( - ) - """ - - def testExportAllOperation(self): - """Test ExportAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_apps_operation_input.py b/test/test_export_apps_operation_input.py deleted file mode 100644 index 6ebdc1c..0000000 --- a/test/test_export_apps_operation_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_apps_operation_input import ExportAppsOperationInput - -class TestExportAppsOperationInput(unittest.TestCase): - """ExportAppsOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportAppsOperationInput: - """Test ExportAppsOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportAppsOperationInput` - """ - model = ExportAppsOperationInput() - if include_optional: - return ExportAppsOperationInput( - app_ids = [ - cyperf.models.app_id.AppId( - id = '', ) - ] - ) - else: - return ExportAppsOperationInput( - ) - """ - - def testExportAppsOperationInput(self): - """Test ExportAppsOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_files_operation_input.py b/test/test_export_files_operation_input.py deleted file mode 100644 index 990561f..0000000 --- a/test/test_export_files_operation_input.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_files_operation_input import ExportFilesOperationInput - -class TestExportFilesOperationInput(unittest.TestCase): - """ExportFilesOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportFilesOperationInput: - """Test ExportFilesOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportFilesOperationInput` - """ - model = ExportFilesOperationInput() - if include_optional: - return ExportFilesOperationInput( - export_files_requests_by_agent = { - 'key' : [ - cyperf.models.export_files_request.ExportFilesRequest( - agent_id = '', - required_file_types = cyperf.models.required_file_types.RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True, ), - upload_location = '', ) - ] - }, - timeout = 56 - ) - else: - return ExportFilesOperationInput( - ) - """ - - def testExportFilesOperationInput(self): - """Test ExportFilesOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_files_request.py b/test/test_export_files_request.py deleted file mode 100644 index 47787c8..0000000 --- a/test/test_export_files_request.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_files_request import ExportFilesRequest - -class TestExportFilesRequest(unittest.TestCase): - """ExportFilesRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportFilesRequest: - """Test ExportFilesRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportFilesRequest` - """ - model = ExportFilesRequest() - if include_optional: - return ExportFilesRequest( - agent_id = '', - required_file_types = cyperf.models.required_file_types.RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True, ), - upload_location = '' - ) - else: - return ExportFilesRequest( - ) - """ - - def testExportFilesRequest(self): - """Test ExportFilesRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_package_operation.py b/test/test_export_package_operation.py deleted file mode 100644 index eb3302a..0000000 --- a/test/test_export_package_operation.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_package_operation import ExportPackageOperation - -class TestExportPackageOperation(unittest.TestCase): - """ExportPackageOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportPackageOperation: - """Test ExportPackageOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportPackageOperation` - """ - model = ExportPackageOperation() - if include_optional: - return ExportPackageOperation( - configs = True, - external_nats_brokers = True, - keycloak = True, - license_servers = True, - results = True - ) - else: - return ExportPackageOperation( - ) - """ - - def testExportPackageOperation(self): - """Test ExportPackageOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_external_resource_info.py b/test/test_external_resource_info.py deleted file mode 100644 index 5acd989..0000000 --- a/test/test_external_resource_info.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.external_resource_info import ExternalResourceInfo - -class TestExternalResourceInfo(unittest.TestCase): - """ExternalResourceInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExternalResourceInfo: - """Test ExternalResourceInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExternalResourceInfo` - """ - model = ExternalResourceInfo() - if include_optional: - return ExternalResourceInfo( - external_resource_url = '' - ) - else: - return ExternalResourceInfo( - ) - """ - - def testExternalResourceInfo(self): - """Test ExternalResourceInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_f5_encapsulation.py b/test/test_f5_encapsulation.py deleted file mode 100644 index 21c0677..0000000 --- a/test/test_f5_encapsulation.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.f5_encapsulation import F5Encapsulation - -class TestF5Encapsulation(unittest.TestCase): - """F5Encapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> F5Encapsulation: - """Test F5Encapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `F5Encapsulation` - """ - model = F5Encapsulation() - if include_optional: - return F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - udp_port = 56, - ) - """ - - def testF5Encapsulation(self): - """Test F5Encapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_f5_settings.py b/test/test_f5_settings.py deleted file mode 100644 index b51b8fa..0000000 --- a/test/test_f5_settings.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.f5_settings import F5Settings - -class TestF5Settings(unittest.TestCase): - """F5Settings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> F5Settings: - """Test F5Settings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `F5Settings` - """ - model = F5Settings() - if include_optional: - return F5Settings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - f5_encapsulation = cyperf.models.f5_encapsulation.F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = null, - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return F5Settings( - ) - """ - - def testF5Settings(self): - """Test F5Settings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py deleted file mode 100644 index 282ee60..0000000 --- a/test/test_feature.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature import Feature - -class TestFeature(unittest.TestCase): - """Feature unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Feature: - """Test Feature - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Feature` - """ - model = Feature() - if include_optional: - return Feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ) - ) - else: - return Feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), - ) - """ - - def testFeature(self): - """Test Feature""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature_reservation.py b/test/test_feature_reservation.py deleted file mode 100644 index c888b82..0000000 --- a/test/test_feature_reservation.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature_reservation import FeatureReservation - -class TestFeatureReservation(unittest.TestCase): - """FeatureReservation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FeatureReservation: - """Test FeatureReservation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FeatureReservation` - """ - model = FeatureReservation() - if include_optional: - return FeatureReservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56 - ) - else: - return FeatureReservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, - ) - """ - - def testFeatureReservation(self): - """Test FeatureReservation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature_reservation_reserve.py b/test/test_feature_reservation_reserve.py deleted file mode 100644 index 3e706b6..0000000 --- a/test/test_feature_reservation_reserve.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature_reservation_reserve import FeatureReservationReserve - -class TestFeatureReservationReserve(unittest.TestCase): - """FeatureReservationReserve unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FeatureReservationReserve: - """Test FeatureReservationReserve - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FeatureReservationReserve` - """ - model = FeatureReservationReserve() - if include_optional: - return FeatureReservationReserve( - count_to_reserve = 56, - duration = 56, - feature_name = '' - ) - else: - return FeatureReservationReserve( - count_to_reserve = 56, - duration = 56, - feature_name = '', - ) - """ - - def testFeatureReservationReserve(self): - """Test FeatureReservationReserve""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_file_metadata.py b/test/test_file_metadata.py deleted file mode 100644 index 69239f4..0000000 --- a/test/test_file_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.file_metadata import FileMetadata - -class TestFileMetadata(unittest.TestCase): - """FileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FileMetadata: - """Test FileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FileMetadata` - """ - model = FileMetadata() - if include_optional: - return FileMetadata( - default = True, - user_visible = True - ) - else: - return FileMetadata( - ) - """ - - def testFileMetadata(self): - """Test FileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_file_value.py b/test/test_file_value.py deleted file mode 100644 index 9ba8448..0000000 --- a/test/test_file_value.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.file_value import FileValue - -class TestFileValue(unittest.TestCase): - """FileValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FileValue: - """Test FileValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FileValue` - """ - model = FileValue() - if include_optional: - return FileValue( - file_name = '', - md5_sum = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '' - ) - else: - return FileValue( - ) - """ - - def testFileValue(self): - """Test FileValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_filter.py b/test/test_filter.py deleted file mode 100644 index 648f91e..0000000 --- a/test/test_filter.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.filter import Filter - -class TestFilter(unittest.TestCase): - """Filter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Filter: - """Test Filter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Filter` - """ - model = Filter() - if include_optional: - return Filter( - name = '', - value = '' - ) - else: - return Filter( - ) - """ - - def testFilter(self): - """Test Filter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_filtered_stat.py b/test/test_filtered_stat.py deleted file mode 100644 index 869cf3f..0000000 --- a/test/test_filtered_stat.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.filtered_stat import FilteredStat - -class TestFilteredStat(unittest.TestCase): - """FilteredStat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FilteredStat: - """Test FilteredStat - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FilteredStat` - """ - model = FilteredStat() - if include_optional: - return FilteredStat( - filters = [ - cyperf.models.filter.Filter( - name = '', - value = '', ) - ], - name = '' - ) - else: - return FilteredStat( - ) - """ - - def testFilteredStat(self): - """Test FilteredStat""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_find_param_matches_operation.py b/test/test_find_param_matches_operation.py deleted file mode 100644 index 69cd9ba..0000000 --- a/test/test_find_param_matches_operation.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.find_param_matches_operation import FindParamMatchesOperation - -class TestFindParamMatchesOperation(unittest.TestCase): - """FindParamMatchesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FindParamMatchesOperation: - """Test FindParamMatchesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FindParamMatchesOperation` - """ - model = FindParamMatchesOperation() - if include_optional: - return FindParamMatchesOperation( - actions = [ - cyperf.models.action_input_find_param.ActionInputFindParam( - captures = [ - cyperf.models.capture_input_find_param.CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ], ) - ], - name = '', ) - ], - app_id = '', - match_location = [ - '' - ], - pattern = '' - ) - else: - return FindParamMatchesOperation( - ) - """ - - def testFindParamMatchesOperation(self): - """Test FindParamMatchesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fortinet_encapsulation.py b/test/test_fortinet_encapsulation.py deleted file mode 100644 index 652cc5c..0000000 --- a/test/test_fortinet_encapsulation.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fortinet_encapsulation import FortinetEncapsulation - -class TestFortinetEncapsulation(unittest.TestCase): - """FortinetEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FortinetEncapsulation: - """Test FortinetEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FortinetEncapsulation` - """ - model = FortinetEncapsulation() - if include_optional: - return FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - udp_port = 56, - ) - """ - - def testFortinetEncapsulation(self): - """Test FortinetEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fortinet_settings.py b/test/test_fortinet_settings.py deleted file mode 100644 index ce0b7bb..0000000 --- a/test/test_fortinet_settings.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fortinet_settings import FortinetSettings - -class TestFortinetSettings(unittest.TestCase): - """FortinetSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FortinetSettings: - """Test FortinetSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FortinetSettings` - """ - model = FortinetSettings() - if include_optional: - return FortinetSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - fortinet_encapsulation = cyperf.models.fortinet_encapsulation.FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = null, - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return FortinetSettings( - ) - """ - - def testFortinetSettings(self): - """Test FortinetSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fulfillment_request.py b/test/test_fulfillment_request.py deleted file mode 100644 index f60d103..0000000 --- a/test/test_fulfillment_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fulfillment_request import FulfillmentRequest - -class TestFulfillmentRequest(unittest.TestCase): - """FulfillmentRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FulfillmentRequest: - """Test FulfillmentRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FulfillmentRequest` - """ - model = FulfillmentRequest() - if include_optional: - return FulfillmentRequest( - activation_code = '', - quantity = 56 - ) - else: - return FulfillmentRequest( - activation_code = '', - quantity = 56, - ) - """ - - def testFulfillmentRequest(self): - """Test FulfillmentRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_all_operation.py b/test/test_generate_all_operation.py deleted file mode 100644 index 1805517..0000000 --- a/test/test_generate_all_operation.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_all_operation import GenerateAllOperation - -class TestGenerateAllOperation(unittest.TestCase): - """GenerateAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerateAllOperation: - """Test GenerateAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenerateAllOperation` - """ - model = GenerateAllOperation() - if include_optional: - return GenerateAllOperation( - timezone_offset = 56 - ) - else: - return GenerateAllOperation( - ) - """ - - def testGenerateAllOperation(self): - """Test GenerateAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_csv_reports_operation.py b/test/test_generate_csv_reports_operation.py deleted file mode 100644 index 81f1f97..0000000 --- a/test/test_generate_csv_reports_operation.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_csv_reports_operation import GenerateCSVReportsOperation - -class TestGenerateCSVReportsOperation(unittest.TestCase): - """GenerateCSVReportsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerateCSVReportsOperation: - """Test GenerateCSVReportsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenerateCSVReportsOperation` - """ - model = GenerateCSVReportsOperation() - if include_optional: - return GenerateCSVReportsOperation( - force_generate = True, - var_from = '', - interval = '', - stats = [ - cyperf.models.filtered_stat.FilteredStat( - filters = [ - cyperf.models.filter.Filter( - name = '', - value = '', ) - ], - name = '', ) - ], - to = '', - use_relative_time = True - ) - else: - return GenerateCSVReportsOperation( - ) - """ - - def testGenerateCSVReportsOperation(self): - """Test GenerateCSVReportsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_pdf_report_operation.py b/test/test_generate_pdf_report_operation.py deleted file mode 100644 index d78459c..0000000 --- a/test/test_generate_pdf_report_operation.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_pdf_report_operation import GeneratePDFReportOperation - -class TestGeneratePDFReportOperation(unittest.TestCase): - """GeneratePDFReportOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GeneratePDFReportOperation: - """Test GeneratePDFReportOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GeneratePDFReportOperation` - """ - model = GeneratePDFReportOperation() - if include_optional: - return GeneratePDFReportOperation( - force_generate = True, - timezone_offset = 56 - ) - else: - return GeneratePDFReportOperation( - ) - """ - - def testGeneratePDFReportOperation(self): - """Test GeneratePDFReportOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generic_file.py b/test/test_generic_file.py deleted file mode 100644 index c4b10c6..0000000 --- a/test/test_generic_file.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generic_file import GenericFile - -class TestGenericFile(unittest.TestCase): - """GenericFile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenericFile: - """Test GenericFile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenericFile` - """ - model = GenericFile() - if include_optional: - return GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '' - ) - else: - return GenericFile( - ) - """ - - def testGenericFile(self): - """Test GenericFile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agent_tags200_response.py b/test/test_get_agent_tags200_response.py deleted file mode 100644 index f5ed198..0000000 --- a/test/test_get_agent_tags200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agent_tags200_response import GetAgentTags200Response - -class TestGetAgentTags200Response(unittest.TestCase): - """GetAgentTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentTags200Response: - """Test GetAgentTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentTags200Response` - """ - model = GetAgentTags200Response() - if include_optional: - return GetAgentTags200Response( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentTags200Response( - ) - """ - - def testGetAgentTags200Response(self): - """Test GetAgentTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agent_tags200_response_one_of.py b/test/test_get_agent_tags200_response_one_of.py deleted file mode 100644 index d0e2baa..0000000 --- a/test/test_get_agent_tags200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agent_tags200_response_one_of import GetAgentTags200ResponseOneOf - -class TestGetAgentTags200ResponseOneOf(unittest.TestCase): - """GetAgentTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentTags200ResponseOneOf: - """Test GetAgentTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentTags200ResponseOneOf` - """ - model = GetAgentTags200ResponseOneOf() - if include_optional: - return GetAgentTags200ResponseOneOf( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentTags200ResponseOneOf( - ) - """ - - def testGetAgentTags200ResponseOneOf(self): - """Test GetAgentTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents200_response.py b/test/test_get_agents200_response.py deleted file mode 100644 index 1e3789a..0000000 --- a/test/test_get_agents200_response.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents200_response import GetAgents200Response - -class TestGetAgents200Response(unittest.TestCase): - """GetAgents200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgents200Response: - """Test GetAgents200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgents200Response` - """ - model = GetAgents200Response() - if include_optional: - return GetAgents200Response( - data = [ - cyperf.models.agent.Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = , - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetAgents200Response( - ) - """ - - def testGetAgents200Response(self): - """Test GetAgents200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents200_response_one_of.py b/test/test_get_agents200_response_one_of.py deleted file mode 100644 index 9118001..0000000 --- a/test/test_get_agents200_response_one_of.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf - -class TestGetAgents200ResponseOneOf(unittest.TestCase): - """GetAgents200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgents200ResponseOneOf: - """Test GetAgents200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgents200ResponseOneOf` - """ - model = GetAgents200ResponseOneOf() - if include_optional: - return GetAgents200ResponseOneOf( - data = [ - cyperf.models.agent.Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = , - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetAgents200ResponseOneOf( - ) - """ - - def testGetAgents200ResponseOneOf(self): - """Test GetAgents200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents_tags200_response.py b/test/test_get_agents_tags200_response.py deleted file mode 100644 index 129ed22..0000000 --- a/test/test_get_agents_tags200_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response - -class TestGetAgentsTags200Response(unittest.TestCase): - """GetAgentsTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentsTags200Response: - """Test GetAgentsTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentsTags200Response` - """ - model = GetAgentsTags200Response() - if include_optional: - return GetAgentsTags200Response( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentsTags200Response( - ) - """ - - def testGetAgentsTags200Response(self): - """Test GetAgentsTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents_tags200_response_one_of.py b/test/test_get_agents_tags200_response_one_of.py deleted file mode 100644 index 6ca13d5..0000000 --- a/test/test_get_agents_tags200_response_one_of.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf - -class TestGetAgentsTags200ResponseOneOf(unittest.TestCase): - """GetAgentsTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentsTags200ResponseOneOf: - """Test GetAgentsTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentsTags200ResponseOneOf` - """ - model = GetAgentsTags200ResponseOneOf() - if include_optional: - return GetAgentsTags200ResponseOneOf( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentsTags200ResponseOneOf( - ) - """ - - def testGetAgentsTags200ResponseOneOf(self): - """Test GetAgentsTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_application_types200_response.py b/test/test_get_application_types200_response.py deleted file mode 100644 index f374f82..0000000 --- a/test/test_get_application_types200_response.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_application_types200_response import GetApplicationTypes200Response - -class TestGetApplicationTypes200Response(unittest.TestCase): - """GetApplicationTypes200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApplicationTypes200Response: - """Test GetApplicationTypes200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApplicationTypes200Response` - """ - model = GetApplicationTypes200Response() - if include_optional: - return GetApplicationTypes200Response( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetApplicationTypes200Response( - ) - """ - - def testGetApplicationTypes200Response(self): - """Test GetApplicationTypes200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_application_types200_response_one_of.py b/test/test_get_application_types200_response_one_of.py deleted file mode 100644 index a66b092..0000000 --- a/test/test_get_application_types200_response_one_of.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_application_types200_response_one_of import GetApplicationTypes200ResponseOneOf - -class TestGetApplicationTypes200ResponseOneOf(unittest.TestCase): - """GetApplicationTypes200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApplicationTypes200ResponseOneOf: - """Test GetApplicationTypes200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApplicationTypes200ResponseOneOf` - """ - model = GetApplicationTypes200ResponseOneOf() - if include_optional: - return GetApplicationTypes200ResponseOneOf( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetApplicationTypes200ResponseOneOf( - ) - """ - - def testGetApplicationTypes200ResponseOneOf(self): - """Test GetApplicationTypes200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_apps200_response.py b/test/test_get_apps200_response.py deleted file mode 100644 index 2effd05..0000000 --- a/test/test_get_apps200_response.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_apps200_response import GetApps200Response - -class TestGetApps200Response(unittest.TestCase): - """GetApps200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApps200Response: - """Test GetApps200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApps200Response` - """ - model = GetApps200Response() - if include_optional: - return GetApps200Response( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetApps200Response( - ) - """ - - def testGetApps200Response(self): - """Test GetApps200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_apps200_response_one_of.py b/test/test_get_apps200_response_one_of.py deleted file mode 100644 index e462ac4..0000000 --- a/test/test_get_apps200_response_one_of.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_apps200_response_one_of import GetApps200ResponseOneOf - -class TestGetApps200ResponseOneOf(unittest.TestCase): - """GetApps200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApps200ResponseOneOf: - """Test GetApps200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApps200ResponseOneOf` - """ - model = GetApps200ResponseOneOf() - if include_optional: - return GetApps200ResponseOneOf( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetApps200ResponseOneOf( - ) - """ - - def testGetApps200ResponseOneOf(self): - """Test GetApps200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_apps_operation.py b/test/test_get_apps_operation.py deleted file mode 100644 index 96e849f..0000000 --- a/test/test_get_apps_operation.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_apps_operation import GetAppsOperation - -class TestGetAppsOperation(unittest.TestCase): - """GetAppsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAppsOperation: - """Test GetAppsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAppsOperation` - """ - model = GetAppsOperation() - if include_optional: - return GetAppsOperation( - categories = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ], - filter_mode = '', - search_col = [ - '' - ], - search_val = [ - '' - ], - skip = '', - sort = [ - cyperf.models.sort_body_field.SortBodyField( - field = '', - order = '', ) - ], - take = '' - ) - else: - return GetAppsOperation( - ) - """ - - def testGetAppsOperation(self): - """Test GetAppsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_async_operation_result200_response.py b/test/test_get_async_operation_result200_response.py deleted file mode 100644 index ed8812b..0000000 --- a/test/test_get_async_operation_result200_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response - -class TestGetAsyncOperationResult200Response(unittest.TestCase): - """GetAsyncOperationResult200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncOperationResult200Response: - """Test GetAsyncOperationResult200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncOperationResult200Response` - """ - model = GetAsyncOperationResult200Response() - if include_optional: - return GetAsyncOperationResult200Response( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56 - ) - else: - return GetAsyncOperationResult200Response( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56, - ) - """ - - def testGetAsyncOperationResult200Response(self): - """Test GetAsyncOperationResult200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks200_response.py b/test/test_get_attacks200_response.py deleted file mode 100644 index 93c4d50..0000000 --- a/test/test_get_attacks200_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks200_response import GetAttacks200Response - -class TestGetAttacks200Response(unittest.TestCase): - """GetAttacks200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacks200Response: - """Test GetAttacks200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacks200Response` - """ - model = GetAttacks200Response() - if include_optional: - return GetAttacks200Response( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetAttacks200Response( - ) - """ - - def testGetAttacks200Response(self): - """Test GetAttacks200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks200_response_one_of.py b/test/test_get_attacks200_response_one_of.py deleted file mode 100644 index 8f460a2..0000000 --- a/test/test_get_attacks200_response_one_of.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks200_response_one_of import GetAttacks200ResponseOneOf - -class TestGetAttacks200ResponseOneOf(unittest.TestCase): - """GetAttacks200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacks200ResponseOneOf: - """Test GetAttacks200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacks200ResponseOneOf` - """ - model = GetAttacks200ResponseOneOf() - if include_optional: - return GetAttacks200ResponseOneOf( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetAttacks200ResponseOneOf( - ) - """ - - def testGetAttacks200ResponseOneOf(self): - """Test GetAttacks200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks_operation.py b/test/test_get_attacks_operation.py deleted file mode 100644 index bcf1f0d..0000000 --- a/test/test_get_attacks_operation.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks_operation import GetAttacksOperation - -class TestGetAttacksOperation(unittest.TestCase): - """GetAttacksOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacksOperation: - """Test GetAttacksOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacksOperation` - """ - model = GetAttacksOperation() - if include_optional: - return GetAttacksOperation( - categories = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ], - filter_mode = '', - search_col = [ - '' - ], - search_val = [ - '' - ], - skip = '', - sort = [ - cyperf.models.sort_body_field.SortBodyField( - field = '', - order = '', ) - ], - take = '' - ) - else: - return GetAttacksOperation( - ) - """ - - def testGetAttacksOperation(self): - """Test GetAttacksOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_auth_profiles200_response.py b/test/test_get_auth_profiles200_response.py deleted file mode 100644 index eef82e1..0000000 --- a/test/test_get_auth_profiles200_response.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_auth_profiles200_response import GetAuthProfiles200Response - -class TestGetAuthProfiles200Response(unittest.TestCase): - """GetAuthProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAuthProfiles200Response: - """Test GetAuthProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAuthProfiles200Response` - """ - model = GetAuthProfiles200Response() - if include_optional: - return GetAuthProfiles200Response( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetAuthProfiles200Response( - ) - """ - - def testGetAuthProfiles200Response(self): - """Test GetAuthProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_auth_profiles200_response_one_of.py b/test/test_get_auth_profiles200_response_one_of.py deleted file mode 100644 index 5ddf5b1..0000000 --- a/test/test_get_auth_profiles200_response_one_of.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_auth_profiles200_response_one_of import GetAuthProfiles200ResponseOneOf - -class TestGetAuthProfiles200ResponseOneOf(unittest.TestCase): - """GetAuthProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAuthProfiles200ResponseOneOf: - """Test GetAuthProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAuthProfiles200ResponseOneOf` - """ - model = GetAuthProfiles200ResponseOneOf() - if include_optional: - return GetAuthProfiles200ResponseOneOf( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetAuthProfiles200ResponseOneOf( - ) - """ - - def testGetAuthProfiles200ResponseOneOf(self): - """Test GetAuthProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_brokers200_response.py b/test/test_get_brokers200_response.py deleted file mode 100644 index 55b2cb3..0000000 --- a/test/test_get_brokers200_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_brokers200_response import GetBrokers200Response - -class TestGetBrokers200Response(unittest.TestCase): - """GetBrokers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetBrokers200Response: - """Test GetBrokers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetBrokers200Response` - """ - model = GetBrokers200Response() - if include_optional: - return GetBrokers200Response( - data = [ - cyperf.models.broker.Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '', ) - ], - total_count = 56 - ) - else: - return GetBrokers200Response( - ) - """ - - def testGetBrokers200Response(self): - """Test GetBrokers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_brokers200_response_one_of.py b/test/test_get_brokers200_response_one_of.py deleted file mode 100644 index ba56136..0000000 --- a/test/test_get_brokers200_response_one_of.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf - -class TestGetBrokers200ResponseOneOf(unittest.TestCase): - """GetBrokers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetBrokers200ResponseOneOf: - """Test GetBrokers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetBrokers200ResponseOneOf` - """ - model = GetBrokers200ResponseOneOf() - if include_optional: - return GetBrokers200ResponseOneOf( - data = [ - cyperf.models.broker.Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '', ) - ], - total_count = 56 - ) - else: - return GetBrokers200ResponseOneOf( - ) - """ - - def testGetBrokers200ResponseOneOf(self): - """Test GetBrokers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_categories_operation.py b/test/test_get_categories_operation.py deleted file mode 100644 index da2d217..0000000 --- a/test/test_get_categories_operation.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_categories_operation import GetCategoriesOperation - -class TestGetCategoriesOperation(unittest.TestCase): - """GetCategoriesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCategoriesOperation: - """Test GetCategoriesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCategoriesOperation` - """ - model = GetCategoriesOperation() - if include_optional: - return GetCategoriesOperation( - filter = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ] - ) - else: - return GetCategoriesOperation( - ) - """ - - def testGetCategoriesOperation(self): - """Test GetCategoriesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_certificates200_response.py b/test/test_get_certificates200_response.py deleted file mode 100644 index 46943bd..0000000 --- a/test/test_get_certificates200_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_certificates200_response import GetCertificates200Response - -class TestGetCertificates200Response(unittest.TestCase): - """GetCertificates200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCertificates200Response: - """Test GetCertificates200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCertificates200Response` - """ - model = GetCertificates200Response() - if include_optional: - return GetCertificates200Response( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetCertificates200Response( - ) - """ - - def testGetCertificates200Response(self): - """Test GetCertificates200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_certificates200_response_one_of.py b/test/test_get_certificates200_response_one_of.py deleted file mode 100644 index 4235d39..0000000 --- a/test/test_get_certificates200_response_one_of.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_certificates200_response_one_of import GetCertificates200ResponseOneOf - -class TestGetCertificates200ResponseOneOf(unittest.TestCase): - """GetCertificates200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCertificates200ResponseOneOf: - """Test GetCertificates200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCertificates200ResponseOneOf` - """ - model = GetCertificates200ResponseOneOf() - if include_optional: - return GetCertificates200ResponseOneOf( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetCertificates200ResponseOneOf( - ) - """ - - def testGetCertificates200ResponseOneOf(self): - """Test GetCertificates200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categorie_subcategories200_response.py b/test/test_get_config_categorie_subcategories200_response.py deleted file mode 100644 index cea704c..0000000 --- a/test/test_get_config_categorie_subcategories200_response.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response - -class TestGetConfigCategorieSubcategories200Response(unittest.TestCase): - """GetConfigCategorieSubcategories200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategorieSubcategories200Response: - """Test GetConfigCategorieSubcategories200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategorieSubcategories200Response` - """ - model = GetConfigCategorieSubcategories200Response() - if include_optional: - return GetConfigCategorieSubcategories200Response( - data = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ], - total_count = 56 - ) - else: - return GetConfigCategorieSubcategories200Response( - ) - """ - - def testGetConfigCategorieSubcategories200Response(self): - """Test GetConfigCategorieSubcategories200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categorie_subcategories200_response_one_of.py b/test/test_get_config_categorie_subcategories200_response_one_of.py deleted file mode 100644 index bc9b584..0000000 --- a/test/test_get_config_categorie_subcategories200_response_one_of.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf - -class TestGetConfigCategorieSubcategories200ResponseOneOf(unittest.TestCase): - """GetConfigCategorieSubcategories200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategorieSubcategories200ResponseOneOf: - """Test GetConfigCategorieSubcategories200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategorieSubcategories200ResponseOneOf` - """ - model = GetConfigCategorieSubcategories200ResponseOneOf() - if include_optional: - return GetConfigCategorieSubcategories200ResponseOneOf( - data = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ], - total_count = 56 - ) - else: - return GetConfigCategorieSubcategories200ResponseOneOf( - ) - """ - - def testGetConfigCategorieSubcategories200ResponseOneOf(self): - """Test GetConfigCategorieSubcategories200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categories200_response.py b/test/test_get_config_categories200_response.py deleted file mode 100644 index 50716c1..0000000 --- a/test/test_get_config_categories200_response.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categories200_response import GetConfigCategories200Response - -class TestGetConfigCategories200Response(unittest.TestCase): - """GetConfigCategories200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategories200Response: - """Test GetConfigCategories200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategories200Response` - """ - model = GetConfigCategories200Response() - if include_optional: - return GetConfigCategories200Response( - data = [ - cyperf.models.config_category.ConfigCategory( - display_name = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - subcategories = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetConfigCategories200Response( - ) - """ - - def testGetConfigCategories200Response(self): - """Test GetConfigCategories200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categories200_response_one_of.py b/test/test_get_config_categories200_response_one_of.py deleted file mode 100644 index e9cbfe6..0000000 --- a/test/test_get_config_categories200_response_one_of.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf - -class TestGetConfigCategories200ResponseOneOf(unittest.TestCase): - """GetConfigCategories200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategories200ResponseOneOf: - """Test GetConfigCategories200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategories200ResponseOneOf` - """ - model = GetConfigCategories200ResponseOneOf() - if include_optional: - return GetConfigCategories200ResponseOneOf( - data = [ - cyperf.models.config_category.ConfigCategory( - display_name = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - subcategories = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetConfigCategories200ResponseOneOf( - ) - """ - - def testGetConfigCategories200ResponseOneOf(self): - """Test GetConfigCategories200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_configs200_response.py b/test/test_get_configs200_response.py deleted file mode 100644 index c0f4ea2..0000000 --- a/test/test_get_configs200_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_configs200_response import GetConfigs200Response - -class TestGetConfigs200Response(unittest.TestCase): - """GetConfigs200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigs200Response: - """Test GetConfigs200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigs200Response` - """ - model = GetConfigs200Response() - if include_optional: - return GetConfigs200Response( - data = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ], - total_count = 56 - ) - else: - return GetConfigs200Response( - ) - """ - - def testGetConfigs200Response(self): - """Test GetConfigs200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_configs200_response_one_of.py b/test/test_get_configs200_response_one_of.py deleted file mode 100644 index cd8ed17..0000000 --- a/test/test_get_configs200_response_one_of.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_configs200_response_one_of import GetConfigs200ResponseOneOf - -class TestGetConfigs200ResponseOneOf(unittest.TestCase): - """GetConfigs200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigs200ResponseOneOf: - """Test GetConfigs200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigs200ResponseOneOf` - """ - model = GetConfigs200ResponseOneOf() - if include_optional: - return GetConfigs200ResponseOneOf( - data = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ], - total_count = 56 - ) - else: - return GetConfigs200ResponseOneOf( - ) - """ - - def testGetConfigs200ResponseOneOf(self): - """Test GetConfigs200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_consumers200_response.py b/test/test_get_consumers200_response.py deleted file mode 100644 index 1e446a3..0000000 --- a/test/test_get_consumers200_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_consumers200_response import GetConsumers200Response - -class TestGetConsumers200Response(unittest.TestCase): - """GetConsumers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConsumers200Response: - """Test GetConsumers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConsumers200Response` - """ - model = GetConsumers200Response() - if include_optional: - return GetConsumers200Response( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetConsumers200Response( - ) - """ - - def testGetConsumers200Response(self): - """Test GetConsumers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_consumers200_response_one_of.py b/test/test_get_consumers200_response_one_of.py deleted file mode 100644 index 5dc5f78..0000000 --- a/test/test_get_consumers200_response_one_of.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_consumers200_response_one_of import GetConsumers200ResponseOneOf - -class TestGetConsumers200ResponseOneOf(unittest.TestCase): - """GetConsumers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConsumers200ResponseOneOf: - """Test GetConsumers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConsumers200ResponseOneOf` - """ - model = GetConsumers200ResponseOneOf() - if include_optional: - return GetConsumers200ResponseOneOf( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetConsumers200ResponseOneOf( - ) - """ - - def testGetConsumers200ResponseOneOf(self): - """Test GetConsumers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_controllers200_response.py b/test/test_get_controllers200_response.py deleted file mode 100644 index 8da8882..0000000 --- a/test/test_get_controllers200_response.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_controllers200_response import GetControllers200Response - -class TestGetControllers200Response(unittest.TestCase): - """GetControllers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetControllers200Response: - """Test GetControllers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetControllers200Response` - """ - model = GetControllers200Response() - if include_optional: - return GetControllers200Response( - data = [ - cyperf.models.controller.Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetControllers200Response( - ) - """ - - def testGetControllers200Response(self): - """Test GetControllers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_controllers200_response_one_of.py b/test/test_get_controllers200_response_one_of.py deleted file mode 100644 index 6d28d36..0000000 --- a/test/test_get_controllers200_response_one_of.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_controllers200_response_one_of import GetControllers200ResponseOneOf - -class TestGetControllers200ResponseOneOf(unittest.TestCase): - """GetControllers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetControllers200ResponseOneOf: - """Test GetControllers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetControllers200ResponseOneOf` - """ - model = GetControllers200ResponseOneOf() - if include_optional: - return GetControllers200ResponseOneOf( - data = [ - cyperf.models.controller.Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetControllers200ResponseOneOf( - ) - """ - - def testGetControllers200ResponseOneOf(self): - """Test GetControllers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_custom_import_operations200_response.py b/test/test_get_custom_import_operations200_response.py deleted file mode 100644 index cf3c2c8..0000000 --- a/test/test_get_custom_import_operations200_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_custom_import_operations200_response import GetCustomImportOperations200Response - -class TestGetCustomImportOperations200Response(unittest.TestCase): - """GetCustomImportOperations200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCustomImportOperations200Response: - """Test GetCustomImportOperations200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCustomImportOperations200Response` - """ - model = GetCustomImportOperations200Response() - if include_optional: - return GetCustomImportOperations200Response( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetCustomImportOperations200Response( - ) - """ - - def testGetCustomImportOperations200Response(self): - """Test GetCustomImportOperations200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_custom_import_operations200_response_one_of.py b/test/test_get_custom_import_operations200_response_one_of.py deleted file mode 100644 index f3de1ab..0000000 --- a/test/test_get_custom_import_operations200_response_one_of.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_custom_import_operations200_response_one_of import GetCustomImportOperations200ResponseOneOf - -class TestGetCustomImportOperations200ResponseOneOf(unittest.TestCase): - """GetCustomImportOperations200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCustomImportOperations200ResponseOneOf: - """Test GetCustomImportOperations200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCustomImportOperations200ResponseOneOf` - """ - model = GetCustomImportOperations200ResponseOneOf() - if include_optional: - return GetCustomImportOperations200ResponseOneOf( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetCustomImportOperations200ResponseOneOf( - ) - """ - - def testGetCustomImportOperations200ResponseOneOf(self): - """Test GetCustomImportOperations200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response.py b/test/test_get_disk_usage_consumers200_response.py deleted file mode 100644 index c6be685..0000000 --- a/test/test_get_disk_usage_consumers200_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_disk_usage_consumers200_response import GetDiskUsageConsumers200Response - -class TestGetDiskUsageConsumers200Response(unittest.TestCase): - """GetDiskUsageConsumers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetDiskUsageConsumers200Response: - """Test GetDiskUsageConsumers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetDiskUsageConsumers200Response` - """ - model = GetDiskUsageConsumers200Response() - if include_optional: - return GetDiskUsageConsumers200Response( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetDiskUsageConsumers200Response( - ) - """ - - def testGetDiskUsageConsumers200Response(self): - """Test GetDiskUsageConsumers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response_one_of.py b/test/test_get_disk_usage_consumers200_response_one_of.py deleted file mode 100644 index 6c399df..0000000 --- a/test/test_get_disk_usage_consumers200_response_one_of.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_disk_usage_consumers200_response_one_of import GetDiskUsageConsumers200ResponseOneOf - -class TestGetDiskUsageConsumers200ResponseOneOf(unittest.TestCase): - """GetDiskUsageConsumers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetDiskUsageConsumers200ResponseOneOf: - """Test GetDiskUsageConsumers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetDiskUsageConsumers200ResponseOneOf` - """ - model = GetDiskUsageConsumers200ResponseOneOf() - if include_optional: - return GetDiskUsageConsumers200ResponseOneOf( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetDiskUsageConsumers200ResponseOneOf( - ) - """ - - def testGetDiskUsageConsumers200ResponseOneOf(self): - """Test GetDiskUsageConsumers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_files200_response.py b/test/test_get_files200_response.py deleted file mode 100644 index beea41a..0000000 --- a/test/test_get_files200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_files200_response import GetFiles200Response - -class TestGetFiles200Response(unittest.TestCase): - """GetFiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFiles200Response: - """Test GetFiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFiles200Response` - """ - model = GetFiles200Response() - if include_optional: - return GetFiles200Response( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetFiles200Response( - ) - """ - - def testGetFiles200Response(self): - """Test GetFiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_files200_response_one_of.py b/test/test_get_files200_response_one_of.py deleted file mode 100644 index 5f785af..0000000 --- a/test/test_get_files200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_files200_response_one_of import GetFiles200ResponseOneOf - -class TestGetFiles200ResponseOneOf(unittest.TestCase): - """GetFiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFiles200ResponseOneOf: - """Test GetFiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFiles200ResponseOneOf` - """ - model = GetFiles200ResponseOneOf() - if include_optional: - return GetFiles200ResponseOneOf( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetFiles200ResponseOneOf( - ) - """ - - def testGetFiles200ResponseOneOf(self): - """Test GetFiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_http_profiles200_response.py b/test/test_get_http_profiles200_response.py deleted file mode 100644 index 49f0d3e..0000000 --- a/test/test_get_http_profiles200_response.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_http_profiles200_response import GetHttpProfiles200Response - -class TestGetHttpProfiles200Response(unittest.TestCase): - """GetHttpProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHttpProfiles200Response: - """Test GetHttpProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHttpProfiles200Response` - """ - model = GetHttpProfiles200Response() - if include_optional: - return GetHttpProfiles200Response( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetHttpProfiles200Response( - ) - """ - - def testGetHttpProfiles200Response(self): - """Test GetHttpProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_http_profiles200_response_one_of.py b/test/test_get_http_profiles200_response_one_of.py deleted file mode 100644 index d397f30..0000000 --- a/test/test_get_http_profiles200_response_one_of.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_http_profiles200_response_one_of import GetHttpProfiles200ResponseOneOf - -class TestGetHttpProfiles200ResponseOneOf(unittest.TestCase): - """GetHttpProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHttpProfiles200ResponseOneOf: - """Test GetHttpProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHttpProfiles200ResponseOneOf` - """ - model = GetHttpProfiles200ResponseOneOf() - if include_optional: - return GetHttpProfiles200ResponseOneOf( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetHttpProfiles200ResponseOneOf( - ) - """ - - def testGetHttpProfiles200ResponseOneOf(self): - """Test GetHttpProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_async_operation_result200_response.py b/test/test_get_license_async_operation_result200_response.py deleted file mode 100644 index 76f3335..0000000 --- a/test/test_get_license_async_operation_result200_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_async_operation_result200_response import GetLicenseAsyncOperationResult200Response - -class TestGetLicenseAsyncOperationResult200Response(unittest.TestCase): - """GetLicenseAsyncOperationResult200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseAsyncOperationResult200Response: - """Test GetLicenseAsyncOperationResult200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseAsyncOperationResult200Response` - """ - model = GetLicenseAsyncOperationResult200Response() - if include_optional: - return GetLicenseAsyncOperationResult200Response( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56 - ) - else: - return GetLicenseAsyncOperationResult200Response( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, - ) - """ - - def testGetLicenseAsyncOperationResult200Response(self): - """Test GetLicenseAsyncOperationResult200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_servers200_response.py b/test/test_get_license_servers200_response.py deleted file mode 100644 index dfa1c7d..0000000 --- a/test/test_get_license_servers200_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_servers200_response import GetLicenseServers200Response - -class TestGetLicenseServers200Response(unittest.TestCase): - """GetLicenseServers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseServers200Response: - """Test GetLicenseServers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseServers200Response` - """ - model = GetLicenseServers200Response() - if include_optional: - return GetLicenseServers200Response( - data = [ - cyperf.models.license_server_metadata.LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '', ) - ], - total_count = 56 - ) - else: - return GetLicenseServers200Response( - ) - """ - - def testGetLicenseServers200Response(self): - """Test GetLicenseServers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_servers200_response_one_of.py b/test/test_get_license_servers200_response_one_of.py deleted file mode 100644 index 4074a90..0000000 --- a/test/test_get_license_servers200_response_one_of.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_servers200_response_one_of import GetLicenseServers200ResponseOneOf - -class TestGetLicenseServers200ResponseOneOf(unittest.TestCase): - """GetLicenseServers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseServers200ResponseOneOf: - """Test GetLicenseServers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseServers200ResponseOneOf` - """ - model = GetLicenseServers200ResponseOneOf() - if include_optional: - return GetLicenseServers200ResponseOneOf( - data = [ - cyperf.models.license_server_metadata.LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '', ) - ], - total_count = 56 - ) - else: - return GetLicenseServers200ResponseOneOf( - ) - """ - - def testGetLicenseServers200ResponseOneOf(self): - """Test GetLicenseServers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_meta200_response.py b/test/test_get_meta200_response.py deleted file mode 100644 index 4f786aa..0000000 --- a/test/test_get_meta200_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_meta200_response import GetMeta200Response - -class TestGetMeta200Response(unittest.TestCase): - """GetMeta200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetMeta200Response: - """Test GetMeta200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetMeta200Response` - """ - model = GetMeta200Response() - if include_optional: - return GetMeta200Response( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetMeta200Response( - ) - """ - - def testGetMeta200Response(self): - """Test GetMeta200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_meta200_response_one_of.py b/test/test_get_meta200_response_one_of.py deleted file mode 100644 index 75db313..0000000 --- a/test/test_get_meta200_response_one_of.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_meta200_response_one_of import GetMeta200ResponseOneOf - -class TestGetMeta200ResponseOneOf(unittest.TestCase): - """GetMeta200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetMeta200ResponseOneOf: - """Test GetMeta200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetMeta200ResponseOneOf` - """ - model = GetMeta200ResponseOneOf() - if include_optional: - return GetMeta200ResponseOneOf( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetMeta200ResponseOneOf( - ) - """ - - def testGetMeta200ResponseOneOf(self): - """Test GetMeta200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_notifications200_response.py b/test/test_get_notifications200_response.py deleted file mode 100644 index 731272c..0000000 --- a/test/test_get_notifications200_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_notifications200_response import GetNotifications200Response - -class TestGetNotifications200Response(unittest.TestCase): - """GetNotifications200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetNotifications200Response: - """Test GetNotifications200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetNotifications200Response` - """ - model = GetNotifications200Response() - if include_optional: - return GetNotifications200Response( - data = [ - cyperf.models.notification.Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56, ) - ], - total_count = 56 - ) - else: - return GetNotifications200Response( - ) - """ - - def testGetNotifications200Response(self): - """Test GetNotifications200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_notifications200_response_one_of.py b/test/test_get_notifications200_response_one_of.py deleted file mode 100644 index 4b56725..0000000 --- a/test/test_get_notifications200_response_one_of.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_notifications200_response_one_of import GetNotifications200ResponseOneOf - -class TestGetNotifications200ResponseOneOf(unittest.TestCase): - """GetNotifications200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetNotifications200ResponseOneOf: - """Test GetNotifications200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetNotifications200ResponseOneOf` - """ - model = GetNotifications200ResponseOneOf() - if include_optional: - return GetNotifications200ResponseOneOf( - data = [ - cyperf.models.notification.Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56, ) - ], - total_count = 56 - ) - else: - return GetNotifications200ResponseOneOf( - ) - """ - - def testGetNotifications200ResponseOneOf(self): - """Test GetNotifications200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_plugins200_response.py b/test/test_get_plugins200_response.py deleted file mode 100644 index 50caf4e..0000000 --- a/test/test_get_plugins200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_plugins200_response import GetPlugins200Response - -class TestGetPlugins200Response(unittest.TestCase): - """GetPlugins200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPlugins200Response: - """Test GetPlugins200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPlugins200Response` - """ - model = GetPlugins200Response() - if include_optional: - return GetPlugins200Response( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetPlugins200Response( - ) - """ - - def testGetPlugins200Response(self): - """Test GetPlugins200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_plugins200_response_one_of.py b/test/test_get_plugins200_response_one_of.py deleted file mode 100644 index 4333dcd..0000000 --- a/test/test_get_plugins200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_plugins200_response_one_of import GetPlugins200ResponseOneOf - -class TestGetPlugins200ResponseOneOf(unittest.TestCase): - """GetPlugins200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPlugins200ResponseOneOf: - """Test GetPlugins200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPlugins200ResponseOneOf` - """ - model = GetPlugins200ResponseOneOf() - if include_optional: - return GetPlugins200ResponseOneOf( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetPlugins200ResponseOneOf( - ) - """ - - def testGetPlugins200ResponseOneOf(self): - """Test GetPlugins200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py deleted file mode 100644 index fe3ffdc..0000000 --- a/test/test_get_resources_application_types200_response.py +++ /dev/null @@ -1,238 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_application_types200_response import GetResourcesApplicationTypes200Response - -class TestGetResourcesApplicationTypes200Response(unittest.TestCase): - """GetResourcesApplicationTypes200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Response: - """Test GetResourcesApplicationTypes200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApplicationTypes200Response` - """ - model = GetResourcesApplicationTypes200Response() - if include_optional: - return GetResourcesApplicationTypes200Response( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - is_rate = True, - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - is_streaming = True, - no_multi_flow_support = True, - protocol = '', - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesApplicationTypes200Response( - ) - """ - - def testGetResourcesApplicationTypes200Response(self): - """Test GetResourcesApplicationTypes200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py deleted file mode 100644 index 151ab42..0000000 --- a/test/test_get_resources_application_types200_response_one_of.py +++ /dev/null @@ -1,238 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_application_types200_response_one_of import GetResourcesApplicationTypes200ResponseOneOf - -class TestGetResourcesApplicationTypes200ResponseOneOf(unittest.TestCase): - """GetResourcesApplicationTypes200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApplicationTypes200ResponseOneOf: - """Test GetResourcesApplicationTypes200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApplicationTypes200ResponseOneOf` - """ - model = GetResourcesApplicationTypes200ResponseOneOf() - if include_optional: - return GetResourcesApplicationTypes200ResponseOneOf( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - is_rate = True, - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - is_streaming = True, - no_multi_flow_support = True, - protocol = '', - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesApplicationTypes200ResponseOneOf( - ) - """ - - def testGetResourcesApplicationTypes200ResponseOneOf(self): - """Test GetResourcesApplicationTypes200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py deleted file mode 100644 index cd815bb..0000000 --- a/test/test_get_resources_apps200_response.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_apps200_response import GetResourcesApps200Response - -class TestGetResourcesApps200Response(unittest.TestCase): - """GetResourcesApps200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApps200Response: - """Test GetResourcesApps200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApps200Response` - """ - model = GetResourcesApps200Response() - if include_optional: - return GetResourcesApps200Response( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - name = '', ) - ], - keywords = [ - null - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesApps200Response( - ) - """ - - def testGetResourcesApps200Response(self): - """Test GetResourcesApps200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py deleted file mode 100644 index 5cf8c29..0000000 --- a/test/test_get_resources_apps200_response_one_of.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_apps200_response_one_of import GetResourcesApps200ResponseOneOf - -class TestGetResourcesApps200ResponseOneOf(unittest.TestCase): - """GetResourcesApps200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: - """Test GetResourcesApps200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApps200ResponseOneOf` - """ - model = GetResourcesApps200ResponseOneOf() - if include_optional: - return GetResourcesApps200ResponseOneOf( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - name = '', ) - ], - keywords = [ - null - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesApps200ResponseOneOf( - ) - """ - - def testGetResourcesApps200ResponseOneOf(self): - """Test GetResourcesApps200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_attacks200_response.py b/test/test_get_resources_attacks200_response.py deleted file mode 100644 index e35ea31..0000000 --- a/test/test_get_resources_attacks200_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_attacks200_response import GetResourcesAttacks200Response - -class TestGetResourcesAttacks200Response(unittest.TestCase): - """GetResourcesAttacks200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAttacks200Response: - """Test GetResourcesAttacks200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAttacks200Response` - """ - model = GetResourcesAttacks200Response() - if include_optional: - return GetResourcesAttacks200Response( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAttacks200Response( - ) - """ - - def testGetResourcesAttacks200Response(self): - """Test GetResourcesAttacks200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_attacks200_response_one_of.py b/test/test_get_resources_attacks200_response_one_of.py deleted file mode 100644 index c1a3b9f..0000000 --- a/test/test_get_resources_attacks200_response_one_of.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_attacks200_response_one_of import GetResourcesAttacks200ResponseOneOf - -class TestGetResourcesAttacks200ResponseOneOf(unittest.TestCase): - """GetResourcesAttacks200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAttacks200ResponseOneOf: - """Test GetResourcesAttacks200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAttacks200ResponseOneOf` - """ - model = GetResourcesAttacks200ResponseOneOf() - if include_optional: - return GetResourcesAttacks200ResponseOneOf( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAttacks200ResponseOneOf( - ) - """ - - def testGetResourcesAttacks200ResponseOneOf(self): - """Test GetResourcesAttacks200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response.py b/test/test_get_resources_auth_profiles200_response.py deleted file mode 100644 index 96f8b17..0000000 --- a/test/test_get_resources_auth_profiles200_response.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_auth_profiles200_response import GetResourcesAuthProfiles200Response - -class TestGetResourcesAuthProfiles200Response(unittest.TestCase): - """GetResourcesAuthProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response: - """Test GetResourcesAuthProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAuthProfiles200Response` - """ - model = GetResourcesAuthProfiles200Response() - if include_optional: - return GetResourcesAuthProfiles200Response( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAuthProfiles200Response( - ) - """ - - def testGetResourcesAuthProfiles200Response(self): - """Test GetResourcesAuthProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response_one_of.py b/test/test_get_resources_auth_profiles200_response_one_of.py deleted file mode 100644 index 7eadb17..0000000 --- a/test/test_get_resources_auth_profiles200_response_one_of.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_auth_profiles200_response_one_of import GetResourcesAuthProfiles200ResponseOneOf - -class TestGetResourcesAuthProfiles200ResponseOneOf(unittest.TestCase): - """GetResourcesAuthProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAuthProfiles200ResponseOneOf: - """Test GetResourcesAuthProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAuthProfiles200ResponseOneOf` - """ - model = GetResourcesAuthProfiles200ResponseOneOf() - if include_optional: - return GetResourcesAuthProfiles200ResponseOneOf( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAuthProfiles200ResponseOneOf( - ) - """ - - def testGetResourcesAuthProfiles200ResponseOneOf(self): - """Test GetResourcesAuthProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_certificates200_response.py b/test/test_get_resources_certificates200_response.py deleted file mode 100644 index 855d3ac..0000000 --- a/test/test_get_resources_certificates200_response.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response - -class TestGetResourcesCertificates200Response(unittest.TestCase): - """GetResourcesCertificates200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCertificates200Response: - """Test GetResourcesCertificates200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCertificates200Response` - """ - model = GetResourcesCertificates200Response() - if include_optional: - return GetResourcesCertificates200Response( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCertificates200Response( - ) - """ - - def testGetResourcesCertificates200Response(self): - """Test GetResourcesCertificates200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_certificates200_response_one_of.py b/test/test_get_resources_certificates200_response_one_of.py deleted file mode 100644 index 3e82134..0000000 --- a/test/test_get_resources_certificates200_response_one_of.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_certificates200_response_one_of import GetResourcesCertificates200ResponseOneOf - -class TestGetResourcesCertificates200ResponseOneOf(unittest.TestCase): - """GetResourcesCertificates200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCertificates200ResponseOneOf: - """Test GetResourcesCertificates200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCertificates200ResponseOneOf` - """ - model = GetResourcesCertificates200ResponseOneOf() - if include_optional: - return GetResourcesCertificates200ResponseOneOf( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCertificates200ResponseOneOf( - ) - """ - - def testGetResourcesCertificates200ResponseOneOf(self): - """Test GetResourcesCertificates200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response.py b/test/test_get_resources_custom_import_operations200_response.py deleted file mode 100644 index a956bbd..0000000 --- a/test/test_get_resources_custom_import_operations200_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_custom_import_operations200_response import GetResourcesCustomImportOperations200Response - -class TestGetResourcesCustomImportOperations200Response(unittest.TestCase): - """GetResourcesCustomImportOperations200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCustomImportOperations200Response: - """Test GetResourcesCustomImportOperations200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCustomImportOperations200Response` - """ - model = GetResourcesCustomImportOperations200Response() - if include_optional: - return GetResourcesCustomImportOperations200Response( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCustomImportOperations200Response( - ) - """ - - def testGetResourcesCustomImportOperations200Response(self): - """Test GetResourcesCustomImportOperations200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response_one_of.py b/test/test_get_resources_custom_import_operations200_response_one_of.py deleted file mode 100644 index 797d9a2..0000000 --- a/test/test_get_resources_custom_import_operations200_response_one_of.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_custom_import_operations200_response_one_of import GetResourcesCustomImportOperations200ResponseOneOf - -class TestGetResourcesCustomImportOperations200ResponseOneOf(unittest.TestCase): - """GetResourcesCustomImportOperations200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCustomImportOperations200ResponseOneOf: - """Test GetResourcesCustomImportOperations200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCustomImportOperations200ResponseOneOf` - """ - model = GetResourcesCustomImportOperations200ResponseOneOf() - if include_optional: - return GetResourcesCustomImportOperations200ResponseOneOf( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCustomImportOperations200ResponseOneOf( - ) - """ - - def testGetResourcesCustomImportOperations200ResponseOneOf(self): - """Test GetResourcesCustomImportOperations200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_http_profiles200_response.py b/test/test_get_resources_http_profiles200_response.py deleted file mode 100644 index b511955..0000000 --- a/test/test_get_resources_http_profiles200_response.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_http_profiles200_response import GetResourcesHttpProfiles200Response - -class TestGetResourcesHttpProfiles200Response(unittest.TestCase): - """GetResourcesHttpProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesHttpProfiles200Response: - """Test GetResourcesHttpProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesHttpProfiles200Response` - """ - model = GetResourcesHttpProfiles200Response() - if include_optional: - return GetResourcesHttpProfiles200Response( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesHttpProfiles200Response( - ) - """ - - def testGetResourcesHttpProfiles200Response(self): - """Test GetResourcesHttpProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_http_profiles200_response_one_of.py b/test/test_get_resources_http_profiles200_response_one_of.py deleted file mode 100644 index 6710b73..0000000 --- a/test/test_get_resources_http_profiles200_response_one_of.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_http_profiles200_response_one_of import GetResourcesHttpProfiles200ResponseOneOf - -class TestGetResourcesHttpProfiles200ResponseOneOf(unittest.TestCase): - """GetResourcesHttpProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesHttpProfiles200ResponseOneOf: - """Test GetResourcesHttpProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesHttpProfiles200ResponseOneOf` - """ - model = GetResourcesHttpProfiles200ResponseOneOf() - if include_optional: - return GetResourcesHttpProfiles200ResponseOneOf( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesHttpProfiles200ResponseOneOf( - ) - """ - - def testGetResourcesHttpProfiles200ResponseOneOf(self): - """Test GetResourcesHttpProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_files200_response.py b/test/test_get_result_files200_response.py deleted file mode 100644 index 8dc73f3..0000000 --- a/test/test_get_result_files200_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_files200_response import GetResultFiles200Response - -class TestGetResultFiles200Response(unittest.TestCase): - """GetResultFiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultFiles200Response: - """Test GetResultFiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultFiles200Response` - """ - model = GetResultFiles200Response() - if include_optional: - return GetResultFiles200Response( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetResultFiles200Response( - ) - """ - - def testGetResultFiles200Response(self): - """Test GetResultFiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_files200_response_one_of.py b/test/test_get_result_files200_response_one_of.py deleted file mode 100644 index 85dad76..0000000 --- a/test/test_get_result_files200_response_one_of.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_files200_response_one_of import GetResultFiles200ResponseOneOf - -class TestGetResultFiles200ResponseOneOf(unittest.TestCase): - """GetResultFiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultFiles200ResponseOneOf: - """Test GetResultFiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultFiles200ResponseOneOf` - """ - model = GetResultFiles200ResponseOneOf() - if include_optional: - return GetResultFiles200ResponseOneOf( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetResultFiles200ResponseOneOf( - ) - """ - - def testGetResultFiles200ResponseOneOf(self): - """Test GetResultFiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py deleted file mode 100644 index 37b462c..0000000 --- a/test/test_get_result_stats200_response.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_stats200_response import GetResultStats200Response - -class TestGetResultStats200Response(unittest.TestCase): - """GetResultStats200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultStats200Response: - """Test GetResultStats200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultStats200Response` - """ - model = GetResultStats200Response() - if include_optional: - return GetResultStats200Response( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetResultStats200Response( - ) - """ - - def testGetResultStats200Response(self): - """Test GetResultStats200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py deleted file mode 100644 index e55fcdd..0000000 --- a/test/test_get_result_stats200_response_one_of.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_stats200_response_one_of import GetResultStats200ResponseOneOf - -class TestGetResultStats200ResponseOneOf(unittest.TestCase): - """GetResultStats200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: - """Test GetResultStats200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultStats200ResponseOneOf` - """ - model = GetResultStats200ResponseOneOf() - if include_optional: - return GetResultStats200ResponseOneOf( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetResultStats200ResponseOneOf( - ) - """ - - def testGetResultStats200ResponseOneOf(self): - """Test GetResultStats200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_tags200_response.py b/test/test_get_result_tags200_response.py deleted file mode 100644 index 7802291..0000000 --- a/test/test_get_result_tags200_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_tags200_response import GetResultTags200Response - -class TestGetResultTags200Response(unittest.TestCase): - """GetResultTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultTags200Response: - """Test GetResultTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultTags200Response` - """ - model = GetResultTags200Response() - if include_optional: - return GetResultTags200Response( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultTags200Response( - ) - """ - - def testGetResultTags200Response(self): - """Test GetResultTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_tags200_response_one_of.py b/test/test_get_result_tags200_response_one_of.py deleted file mode 100644 index 4d24ae5..0000000 --- a/test/test_get_result_tags200_response_one_of.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_tags200_response_one_of import GetResultTags200ResponseOneOf - -class TestGetResultTags200ResponseOneOf(unittest.TestCase): - """GetResultTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultTags200ResponseOneOf: - """Test GetResultTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultTags200ResponseOneOf` - """ - model = GetResultTags200ResponseOneOf() - if include_optional: - return GetResultTags200ResponseOneOf( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultTags200ResponseOneOf( - ) - """ - - def testGetResultTags200ResponseOneOf(self): - """Test GetResultTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results200_response.py b/test/test_get_results200_response.py deleted file mode 100644 index ba5dbda..0000000 --- a/test/test_get_results200_response.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results200_response import GetResults200Response - -class TestGetResults200Response(unittest.TestCase): - """GetResults200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResults200Response: - """Test GetResults200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResults200Response` - """ - model = GetResults200Response() - if include_optional: - return GetResults200Response( - data = [ - cyperf.models.result_metadata.ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = null, - download_diagnostic = null, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - report_types = [ - '' - ], - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResults200Response( - ) - """ - - def testGetResults200Response(self): - """Test GetResults200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results200_response_one_of.py b/test/test_get_results200_response_one_of.py deleted file mode 100644 index fe1e224..0000000 --- a/test/test_get_results200_response_one_of.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results200_response_one_of import GetResults200ResponseOneOf - -class TestGetResults200ResponseOneOf(unittest.TestCase): - """GetResults200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResults200ResponseOneOf: - """Test GetResults200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResults200ResponseOneOf` - """ - model = GetResults200ResponseOneOf() - if include_optional: - return GetResults200ResponseOneOf( - data = [ - cyperf.models.result_metadata.ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = null, - download_diagnostic = null, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - report_types = [ - '' - ], - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResults200ResponseOneOf( - ) - """ - - def testGetResults200ResponseOneOf(self): - """Test GetResults200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results_tags200_response.py b/test/test_get_results_tags200_response.py deleted file mode 100644 index 8939c6c..0000000 --- a/test/test_get_results_tags200_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results_tags200_response import GetResultsTags200Response - -class TestGetResultsTags200Response(unittest.TestCase): - """GetResultsTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultsTags200Response: - """Test GetResultsTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultsTags200Response` - """ - model = GetResultsTags200Response() - if include_optional: - return GetResultsTags200Response( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultsTags200Response( - ) - """ - - def testGetResultsTags200Response(self): - """Test GetResultsTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results_tags200_response_one_of.py b/test/test_get_results_tags200_response_one_of.py deleted file mode 100644 index 986b528..0000000 --- a/test/test_get_results_tags200_response_one_of.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results_tags200_response_one_of import GetResultsTags200ResponseOneOf - -class TestGetResultsTags200ResponseOneOf(unittest.TestCase): - """GetResultsTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultsTags200ResponseOneOf: - """Test GetResultsTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultsTags200ResponseOneOf` - """ - model = GetResultsTags200ResponseOneOf() - if include_optional: - return GetResultsTags200ResponseOneOf( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultsTags200ResponseOneOf( - ) - """ - - def testGetResultsTags200ResponseOneOf(self): - """Test GetResultsTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_session_meta200_response.py b/test/test_get_session_meta200_response.py deleted file mode 100644 index fba290f..0000000 --- a/test/test_get_session_meta200_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_session_meta200_response import GetSessionMeta200Response - -class TestGetSessionMeta200Response(unittest.TestCase): - """GetSessionMeta200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessionMeta200Response: - """Test GetSessionMeta200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessionMeta200Response` - """ - model = GetSessionMeta200Response() - if include_optional: - return GetSessionMeta200Response( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetSessionMeta200Response( - ) - """ - - def testGetSessionMeta200Response(self): - """Test GetSessionMeta200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_session_meta200_response_one_of.py b/test/test_get_session_meta200_response_one_of.py deleted file mode 100644 index e3fee4e..0000000 --- a/test/test_get_session_meta200_response_one_of.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_session_meta200_response_one_of import GetSessionMeta200ResponseOneOf - -class TestGetSessionMeta200ResponseOneOf(unittest.TestCase): - """GetSessionMeta200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessionMeta200ResponseOneOf: - """Test GetSessionMeta200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessionMeta200ResponseOneOf` - """ - model = GetSessionMeta200ResponseOneOf() - if include_optional: - return GetSessionMeta200ResponseOneOf( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetSessionMeta200ResponseOneOf( - ) - """ - - def testGetSessionMeta200ResponseOneOf(self): - """Test GetSessionMeta200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_sessions200_response.py b/test/test_get_sessions200_response.py deleted file mode 100644 index 3ecec94..0000000 --- a/test/test_get_sessions200_response.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_sessions200_response import GetSessions200Response - -class TestGetSessions200Response(unittest.TestCase): - """GetSessions200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessions200Response: - """Test GetSessions200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessions200Response` - """ - model = GetSessions200Response() - if include_optional: - return GetSessions200Response( - data = [ - cyperf.models.session.Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = null, - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = , - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ), ) - ], - total_count = 56 - ) - else: - return GetSessions200Response( - ) - """ - - def testGetSessions200Response(self): - """Test GetSessions200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_sessions200_response_one_of.py b/test/test_get_sessions200_response_one_of.py deleted file mode 100644 index 7450daf..0000000 --- a/test/test_get_sessions200_response_one_of.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_sessions200_response_one_of import GetSessions200ResponseOneOf - -class TestGetSessions200ResponseOneOf(unittest.TestCase): - """GetSessions200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessions200ResponseOneOf: - """Test GetSessions200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessions200ResponseOneOf` - """ - model = GetSessions200ResponseOneOf() - if include_optional: - return GetSessions200ResponseOneOf( - data = [ - cyperf.models.session.Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = null, - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = , - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ), ) - ], - total_count = 56 - ) - else: - return GetSessions200ResponseOneOf( - ) - """ - - def testGetSessions200ResponseOneOf(self): - """Test GetSessions200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats200_response.py b/test/test_get_stats200_response.py deleted file mode 100644 index 21a7e88..0000000 --- a/test/test_get_stats200_response.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats200_response import GetStats200Response - -class TestGetStats200Response(unittest.TestCase): - """GetStats200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStats200Response: - """Test GetStats200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStats200Response` - """ - model = GetStats200Response() - if include_optional: - return GetStats200Response( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetStats200Response( - ) - """ - - def testGetStats200Response(self): - """Test GetStats200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats200_response_one_of.py b/test/test_get_stats200_response_one_of.py deleted file mode 100644 index 4ace336..0000000 --- a/test/test_get_stats200_response_one_of.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats200_response_one_of import GetStats200ResponseOneOf - -class TestGetStats200ResponseOneOf(unittest.TestCase): - """GetStats200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStats200ResponseOneOf: - """Test GetStats200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStats200ResponseOneOf` - """ - model = GetStats200ResponseOneOf() - if include_optional: - return GetStats200ResponseOneOf( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetStats200ResponseOneOf( - ) - """ - - def testGetStats200ResponseOneOf(self): - """Test GetStats200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats_plugins200_response.py b/test/test_get_stats_plugins200_response.py deleted file mode 100644 index 76ac2fd..0000000 --- a/test/test_get_stats_plugins200_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response - -class TestGetStatsPlugins200Response(unittest.TestCase): - """GetStatsPlugins200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStatsPlugins200Response: - """Test GetStatsPlugins200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStatsPlugins200Response` - """ - model = GetStatsPlugins200Response() - if include_optional: - return GetStatsPlugins200Response( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetStatsPlugins200Response( - ) - """ - - def testGetStatsPlugins200Response(self): - """Test GetStatsPlugins200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats_plugins200_response_one_of.py b/test/test_get_stats_plugins200_response_one_of.py deleted file mode 100644 index e5fdf1f..0000000 --- a/test/test_get_stats_plugins200_response_one_of.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf - -class TestGetStatsPlugins200ResponseOneOf(unittest.TestCase): - """GetStatsPlugins200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStatsPlugins200ResponseOneOf: - """Test GetStatsPlugins200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStatsPlugins200ResponseOneOf` - """ - model = GetStatsPlugins200ResponseOneOf() - if include_optional: - return GetStatsPlugins200ResponseOneOf( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetStatsPlugins200ResponseOneOf( - ) - """ - - def testGetStatsPlugins200ResponseOneOf(self): - """Test GetStatsPlugins200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_strikes_operation.py b/test/test_get_strikes_operation.py deleted file mode 100644 index 2c3d489..0000000 --- a/test/test_get_strikes_operation.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_strikes_operation import GetStrikesOperation - -class TestGetStrikesOperation(unittest.TestCase): - """GetStrikesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStrikesOperation: - """Test GetStrikesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStrikesOperation` - """ - model = GetStrikesOperation() - if include_optional: - return GetStrikesOperation( - categories = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ], - compatible_with = '', - filter_mode = '', - search_col = [ - '' - ], - search_val = [ - '' - ], - skip = '', - sort = [ - cyperf.models.sort_body_field.SortBodyField( - field = '', - order = '', ) - ], - take = '' - ) - else: - return GetStrikesOperation( - ) - """ - - def testGetStrikesOperation(self): - """Test GetStrikesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_group_tls13.py b/test/test_group_tls13.py deleted file mode 100644 index 0b12753..0000000 --- a/test/test_group_tls13.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.group_tls13 import GroupTLS13 - -class TestGroupTLS13(unittest.TestCase): - """GroupTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GroupTLS13: - """Test GroupTLS13 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GroupTLS13` - """ - model = GroupTLS13() - if include_optional: - return GroupTLS13( - is_deprecated = True, - name = 'P-256' - ) - else: - return GroupTLS13( - is_deprecated = True, - name = 'P-256', - ) - """ - - def testGroupTLS13(self): - """Test GroupTLS13""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_hash_p1_algorithm.py b/test/test_hash_p1_algorithm.py deleted file mode 100644 index f1575ec..0000000 --- a/test/test_hash_p1_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.hash_p1_algorithm import HashP1Algorithm - -class TestHashP1Algorithm(unittest.TestCase): - """HashP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHashP1Algorithm(self): - """Test HashP1Algorithm""" - # inst = HashP1Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_hash_p2_algorithm.py b/test/test_hash_p2_algorithm.py deleted file mode 100644 index d79d206..0000000 --- a/test/test_hash_p2_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.hash_p2_algorithm import HashP2Algorithm - -class TestHashP2Algorithm(unittest.TestCase): - """HashP2Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHashP2Algorithm(self): - """Test HashP2Algorithm""" - # inst = HashP2Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_health_check_config.py b/test/test_health_check_config.py deleted file mode 100644 index bf2f4d2..0000000 --- a/test/test_health_check_config.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.health_check_config import HealthCheckConfig - -class TestHealthCheckConfig(unittest.TestCase): - """HealthCheckConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HealthCheckConfig: - """Test HealthCheckConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HealthCheckConfig` - """ - model = HealthCheckConfig() - if include_optional: - return HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return HealthCheckConfig( - ) - """ - - def testHealthCheckConfig(self): - """Test HealthCheckConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_health_issue.py b/test/test_health_issue.py deleted file mode 100644 index 14fbeff..0000000 --- a/test/test_health_issue.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.health_issue import HealthIssue - -class TestHealthIssue(unittest.TestCase): - """HealthIssue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HealthIssue: - """Test HealthIssue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HealthIssue` - """ - model = HealthIssue() - if include_optional: - return HealthIssue( - message = '', - type = '' - ) - else: - return HealthIssue( - ) - """ - - def testHealthIssue(self): - """Test HealthIssue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_host_id.py b/test/test_host_id.py deleted file mode 100644 index 951b9b2..0000000 --- a/test/test_host_id.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.host_id import HostID - -class TestHostID(unittest.TestCase): - """HostID unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HostID: - """Test HostID - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HostID` - """ - model = HostID() - if include_optional: - return HostID( - hostid = '' - ) - else: - return HostID( - ) - """ - - def testHostID(self): - """Test HostID""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_profile.py b/test/test_http_profile.py deleted file mode 100644 index 9a7a147..0000000 --- a/test/test_http_profile.py +++ /dev/null @@ -1,354 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_profile import HTTPProfile - -class TestHTTPProfile(unittest.TestCase): - """HTTPProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPProfile: - """Test HTTPProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPProfile` - """ - model = HTTPProfile() - if include_optional: - return HTTPProfile( - additional_headers = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - connection_persistence = 'ConnectionPersistenceStandard', - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = 'HTTP11', - headers = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return HTTPProfile( - description = '', - name = '', - ) - """ - - def testHTTPProfile(self): - """Test HTTPProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_req_meta.py b/test/test_http_req_meta.py deleted file mode 100644 index ab22267..0000000 --- a/test/test_http_req_meta.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_req_meta import HTTPReqMeta - -class TestHTTPReqMeta(unittest.TestCase): - """HTTPReqMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPReqMeta: - """Test HTTPReqMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPReqMeta` - """ - model = HTTPReqMeta() - if include_optional: - return HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '' - ) - else: - return HTTPReqMeta( - ) - """ - - def testHTTPReqMeta(self): - """Test HTTPReqMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_res_meta.py b/test/test_http_res_meta.py deleted file mode 100644 index 7d78155..0000000 --- a/test/test_http_res_meta.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_res_meta import HTTPResMeta - -class TestHTTPResMeta(unittest.TestCase): - """HTTPResMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPResMeta: - """Test HTTPResMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPResMeta` - """ - model = HTTPResMeta() - if include_optional: - return HTTPResMeta( - headers = { - 'key' : [ - '' - ] - }, - size = 56, - status = '', - status_code = 56, - version = '' - ) - else: - return HTTPResMeta( - ) - """ - - def testHTTPResMeta(self): - """Test HTTPResMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_version.py b/test/test_http_version.py deleted file mode 100644 index f0ee508..0000000 --- a/test/test_http_version.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_version import HTTPVersion - -class TestHTTPVersion(unittest.TestCase): - """HTTPVersion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHTTPVersion(self): - """Test HTTPVersion""" - # inst = HTTPVersion() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_id_p_signature_algo.py b/test/test_id_p_signature_algo.py deleted file mode 100644 index 77da5e9..0000000 --- a/test/test_id_p_signature_algo.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.id_p_signature_algo import IdPSignatureAlgo - -class TestIdPSignatureAlgo(unittest.TestCase): - """IdPSignatureAlgo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdPSignatureAlgo(self): - """Test IdPSignatureAlgo""" - # inst = IdPSignatureAlgo() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_import_all_operation.py b/test/test_import_all_operation.py deleted file mode 100644 index 398a84b..0000000 --- a/test/test_import_all_operation.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.import_all_operation import ImportAllOperation - -class TestImportAllOperation(unittest.TestCase): - """ImportAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportAllOperation: - """Test ImportAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImportAllOperation` - """ - model = ImportAllOperation() - if include_optional: - return ImportAllOperation( - configs = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ] - ) - else: - return ImportAllOperation( - ) - """ - - def testImportAllOperation(self): - """Test ImportAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_import_offline_license_result.py b/test/test_import_offline_license_result.py deleted file mode 100644 index 60ef1de..0000000 --- a/test/test_import_offline_license_result.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.import_offline_license_result import ImportOfflineLicenseResult - -class TestImportOfflineLicenseResult(unittest.TestCase): - """ImportOfflineLicenseResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportOfflineLicenseResult: - """Test ImportOfflineLicenseResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImportOfflineLicenseResult` - """ - model = ImportOfflineLicenseResult() - if include_optional: - return ImportOfflineLicenseResult( - confirmation_code = '', - is_deactivation = True, - receipt = cyperf.models.license_receipt.license-receipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', ) - ) - else: - return ImportOfflineLicenseResult( - confirmation_code = '', - is_deactivation = True, - receipt = cyperf.models.license_receipt.license-receipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', ), - ) - """ - - def testImportOfflineLicenseResult(self): - """Test ImportOfflineLicenseResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ingest_operation.py b/test/test_ingest_operation.py deleted file mode 100644 index 9b82c9b..0000000 --- a/test/test_ingest_operation.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ingest_operation import IngestOperation - -class TestIngestOperation(unittest.TestCase): - """IngestOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IngestOperation: - """Test IngestOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IngestOperation` - """ - model = IngestOperation() - if include_optional: - return IngestOperation( - plugin_stats = cyperf.models.plugin_stats.PluginStats( - plugin = '', - stats = [ - { - 'key' : null - } - ], - version = '', ) - ) - else: - return IngestOperation( - ) - """ - - def testIngestOperation(self): - """Test IngestOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inner_ip_range.py b/test/test_inner_ip_range.py deleted file mode 100644 index d93cf12..0000000 --- a/test/test_inner_ip_range.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.inner_ip_range import InnerIPRange - -class TestInnerIPRange(unittest.TestCase): - """InnerIPRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InnerIPRange: - """Test InnerIPRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `InnerIPRange` - """ - model = InnerIPRange() - if include_optional: - return InnerIPRange( - network_tags = [ - '' - ] - ) - else: - return InnerIPRange( - ) - """ - - def testInnerIPRange(self): - """Test InnerIPRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_interface.py b/test/test_interface.py deleted file mode 100644 index 5bb9321..0000000 --- a/test/test_interface.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.interface import Interface - -class TestInterface(unittest.TestCase): - """Interface unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Interface: - """Test Interface - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Interface` - """ - model = Interface() - if include_optional: - return Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '' - ) - else: - return Interface( - ) - """ - - def testInterface(self): - """Test Interface""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_mask.py b/test/test_ip_mask.py deleted file mode 100644 index af46945..0000000 --- a/test/test_ip_mask.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_mask import IpMask - -class TestIpMask(unittest.TestCase): - """IpMask unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IpMask: - """Test IpMask - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IpMask` - """ - model = IpMask() - if include_optional: - return IpMask( - ip = '', - net_mask = 56 - ) - else: - return IpMask( - ) - """ - - def testIpMask(self): - """Test IpMask""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_network.py b/test/test_ip_network.py deleted file mode 100644 index 950edea..0000000 --- a/test/test_ip_network.py +++ /dev/null @@ -1,294 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_network import IPNetwork - -class TestIPNetwork(unittest.TestCase): - """IPNetwork unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPNetwork: - """Test IPNetwork - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPNetwork` - """ - model = IPNetwork() - if include_optional: - return IPNetwork( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ], - dns_resolver = cyperf.models.dns_resolver.DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ], ), - dns_server = cyperf.models.dns_server.DNSServer( - automatic = True, - enabled = True, - ip_to_resolve_to = '::02:84:9:0cc0:F:CCf', - port = 56, ), - dut_connections = [ - '' - ], - emulated_router = cyperf.models.emulated_router.EmulatedRouter( - emulated_router_ranges = [ - null - ], - enabled = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - eth_range = cyperf.models.eth_range.EthRange( - count = 56, - mac_auto = True, - mac_incr = '2E-B0-08-29:0c:01', - mac_start = '2E-B0-08-29:0c:01', - one_mac_per_ip = True, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, ), - ip_ranges = [ - cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ) - ], - ip_sec_stacks = [ - cyperf.models.ip_sec_stack.IPSecStack( - ca_certificate_file = null, - emulated_sub_config = null, - enable_rekey = True, - ip_sec_range = null, - ip_sec_stack_name = 'YBuLd', - local_sub_config = null, - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - outer_ip_range = null, - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - retry_interval = 56, - retry_interval_increment = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - mac_dtls_stacks = [ - cyperf.models.mac_dtls_stack.MacDtlsStack( - dtls_enabled = True, - dtls_range_name = 'YBuLd', - epoch = 56, - epoch_incr = 56, - ip_range = null, - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - network_meshing = null, - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - vlan_range = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - tunnel_stacks = [ - cyperf.models.tunnel_stack.TunnelStack( - inner_ip_range = null, - outer_ip_range = null, - tunnel_range = null, - tunnel_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - vx_lan_stacks = [ - cyperf.models.vx_lan_stack.VxLANStack( - inner_ip_range = null, - outer_ip_range = null, - vx_lan_range = null, - vx_lan_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - active = True, - agent_assignments = cyperf.models.agent_assignments.AgentAssignments( - by_id = [ - null - ], - by_port = [ - null - ], - by_tag = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - inherit_streaming_cpu_allocation = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - min_agents = 56, - streaming_cpu_allocation = 56 - ) - else: - return IPNetwork( - name = 'YBuLd', - id = '', - ) - """ - - def testIPNetwork(self): - """Test IPNetwork""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_preference.py b/test/test_ip_preference.py deleted file mode 100644 index df96485..0000000 --- a/test/test_ip_preference.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_preference import IpPreference - -class TestIpPreference(unittest.TestCase): - """IpPreference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIpPreference(self): - """Test IpPreference""" - # inst = IpPreference() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_range.py b/test/test_ip_range.py deleted file mode 100644 index 2144764..0000000 --- a/test/test_ip_range.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_range import IPRange - -class TestIPRange(unittest.TestCase): - """IPRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPRange: - """Test IPRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPRange` - """ - model = IPRange() - if include_optional: - return IPRange( - automatic_ip_type = 'BOTH_IPV4_IPV6', - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = 'IPV4', - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ] - ) - else: - return IPRange( - gw_auto = True, - ip_auto = True, - ip_range_name = 'YBuLd', - ip_ver = 'IPV4', - mss_auto = True, - net_mask_auto = True, - ) - """ - - def testIPRange(self): - """Test IPRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_sec_range.py b/test/test_ip_sec_range.py deleted file mode 100644 index 6b469db..0000000 --- a/test/test_ip_sec_range.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_sec_range import IPSecRange - -class TestIPSecRange(unittest.TestCase): - """IPSecRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPSecRange: - """Test IPSecRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPSecRange` - """ - model = IPSecRange() - if include_optional: - return IPSecRange( - var_auth_settings = cyperf.models.authentication_settings.AuthenticationSettings( - auth_method = 'PRE-SHARED-KEY', - certificate_file = null, - key_file = null, - key_file_password = '', - shared_key = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ike_phase1_config = cyperf.models.p1_config.P1Config( - dh_group = null, - enc_algorithm = null, - hash_algorithm = null, - initial_contact = True, - lifetime = 56, - prf_algorithm = null, ), - ike_phase2_config = cyperf.models.p2_config.P2Config( - enc_algorithm = null, - hash_algorithm = null, - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = null, ), - ip_sec_range_name = 'YBuLd', - multi_p2_over_p1 = True, - protected_sub_config = cyperf.models.protected_subnet_config.ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf', ), - public_peer = '02::84', - public_peer_increment = '02::84', - remote_access = cyperf.models.remote_access.RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_start = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56, ), - remote_sub_config = cyperf.models.remote_subnet_config.RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf', ), - test_scenario = 'REMOTE-ACCESS', - timers = cyperf.models.timers.Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56, ), - tunnel_count_per_outer_ip = 56, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return IPSecRange( - ip_sec_range_name = 'YBuLd', - public_peer = '02::84', - public_peer_increment = '02::84', - test_scenario = 'REMOTE-ACCESS', - tunnel_count_per_outer_ip = 56, - id = '', - ) - """ - - def testIPSecRange(self): - """Test IPSecRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_sec_stack.py b/test/test_ip_sec_stack.py deleted file mode 100644 index 2fe2c21..0000000 --- a/test/test_ip_sec_stack.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_sec_stack import IPSecStack - -class TestIPSecStack(unittest.TestCase): - """IPSecStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPSecStack: - """Test IPSecStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPSecStack` - """ - model = IPSecStack() - if include_optional: - return IPSecStack( - ca_certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - emulated_sub_config = cyperf.models.emulated_subnet_config.EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], ), - enable_rekey = True, - ip_sec_range = cyperf.models.ip_sec_range.IPSecRange( - auth_settings = null, - ike_phase1_config = null, - ike_phase2_config = null, - ip_sec_range_name = 'YBuLd', - multi_p2_over_p1 = True, - protected_sub_config = null, - public_peer = '02::84', - public_peer_increment = '02::84', - remote_access = null, - remote_sub_config = null, - test_scenario = 'REMOTE-ACCESS', - timers = null, - tunnel_count_per_outer_ip = 56, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_sec_stack_name = 'YBuLd', - local_sub_config = cyperf.models.local_subnet_config.LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], ), - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - outer_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - retry_interval = 56, - retry_interval_increment = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return IPSecStack( - enable_rekey = True, - ip_sec_stack_name = 'YBuLd', - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - ) - """ - - def testIPSecStack(self): - """Test IPSecStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_ver.py b/test/test_ip_ver.py deleted file mode 100644 index 0f2b8d3..0000000 --- a/test/test_ip_ver.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_ver import IpVer - -class TestIpVer(unittest.TestCase): - """IpVer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIpVer(self): - """Test IpVer""" - # inst = IpVer() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license.py b/test/test_license.py deleted file mode 100644 index cafb6a9..0000000 --- a/test/test_license.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license import License - -class TestLicense(unittest.TestCase): - """License unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> License: - """Test License - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `License` - """ - model = License() - if include_optional: - return License( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56 - ) - else: - return License( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, - ) - """ - - def testLicense(self): - """Test License""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_receipt.py b/test/test_license_receipt.py deleted file mode 100644 index 053b21c..0000000 --- a/test/test_license_receipt.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license_receipt import LicenseReceipt - -class TestLicenseReceipt(unittest.TestCase): - """LicenseReceipt unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LicenseReceipt: - """Test LicenseReceipt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LicenseReceipt` - """ - model = LicenseReceipt() - if include_optional: - return LicenseReceipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation' - ) - else: - return LicenseReceipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', - ) - """ - - def testLicenseReceipt(self): - """Test LicenseReceipt""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_server_metadata.py b/test/test_license_server_metadata.py deleted file mode 100644 index d444697..0000000 --- a/test/test_license_server_metadata.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license_server_metadata import LicenseServerMetadata - -class TestLicenseServerMetadata(unittest.TestCase): - """LicenseServerMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LicenseServerMetadata: - """Test LicenseServerMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LicenseServerMetadata` - """ - model = LicenseServerMetadata() - if include_optional: - return LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '' - ) - else: - return LicenseServerMetadata( - ) - """ - - def testLicenseServerMetadata(self): - """Test LicenseServerMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_servers_api.py b/test/test_license_servers_api.py deleted file mode 100644 index ace6bb9..0000000 --- a/test/test_license_servers_api.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.license_servers_api import LicenseServersApi - - -class TestLicenseServersApi(unittest.TestCase): - """LicenseServersApi unit test stubs""" - - def setUp(self) -> None: - self.api = LicenseServersApi() - - def tearDown(self) -> None: - pass - - - def test_create_license_servers(self) -> None: - """Test case for create_license_servers - - """ - pass - - def test_delete_license_server(self) -> None: - """Test case for delete_license_server - - """ - pass - - def test_get_license_server_by_id(self) -> None: - """Test case for get_license_server_by_id - - """ - pass - - def test_get_license_servers(self) -> None: - """Test case for get_license_servers - - """ - pass - - def test_patch_license_server(self) -> None: - """Test case for patch_license_server - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_licensing_api.py b/test/test_licensing_api.py deleted file mode 100644 index d3946f5..0000000 --- a/test/test_licensing_api.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.licensing_api import LicensingApi - - -class TestLicensingApi(unittest.TestCase): - """LicensingApi unit test stubs""" - - def setUp(self) -> None: - self.api = LicensingApi() - - def tearDown(self) -> None: - pass - - - def test_activate_licenses(self) -> None: - """Test case for activate_licenses - - Performs an online request to KSM and activates the requested licenses. - """ - pass - - def test_deactivate_licenses(self) -> None: - """Test case for deactivate_licenses - - Performs an online request to KSM to deactivate the requested licenses. - """ - pass - - def test_generate_offline_request(self) -> None: - """Test case for generate_offline_request - - Generates an offline request that can be used on the offline licensing portal. - """ - pass - - def test_get_activation_code_info(self) -> None: - """Test case for get_activation_code_info - - Retrieves the activation code info from KSM. - """ - pass - - def test_get_activation_code_info_list(self) -> None: - """Test case for get_activation_code_info_list - - Retrieves the activation code info list from KSM. - """ - pass - - def test_get_async_operation_result(self) -> None: - """Test case for get_async_operation_result - - Returns the result of async operation. - """ - pass - - def test_get_async_operation_status(self) -> None: - """Test case for get_async_operation_status - - Returns the status of an ongoing async operation. - """ - pass - - def test_get_counted_feature_stats(self) -> None: - """Test case for get_counted_feature_stats - - Retrieves the counted feature stats. - """ - pass - - def test_get_entitlement_code_info(self) -> None: - """Test case for get_entitlement_code_info - - Retrieves the activations codes of the supplied entitlement code from KSM. - """ - pass - - def test_get_hostid(self) -> None: - """Test case for get_hostid - - Retrieves the host ID of the license server. - """ - pass - - def test_get_installed_licenses(self) -> None: - """Test case for get_installed_licenses - - Returns the installed licenses. - """ - pass - - def test_get_license(self) -> None: - """Test case for get_license - - Returns the requested license. - """ - pass - - def test_get_license_async_operation_result(self) -> None: - """Test case for get_license_async_operation_result - - Returns the result of async operation. - """ - pass - - def test_get_license_async_operation_status(self) -> None: - """Test case for get_license_async_operation_status - - Returns the status of an ongoing async operation. - """ - pass - - def test_import_offline_license(self) -> None: - """Test case for import_offline_license - - Installs the offline license. - """ - pass - - def test_remove_reservation(self) -> None: - """Test case for remove_reservation - - Remove previously reserved features, thus making them available for checkout by other users. - """ - pass - - def test_sync_licenses(self) -> None: - """Test case for sync_licenses - - Synchronize local licenses with KSM. - """ - pass - - def test_test_backend_connectivity(self) -> None: - """Test case for test_backend_connectivity - - Tests connection of the license server with KSM. - """ - pass - - def test_update_reservation(self) -> None: - """Test case for update_reservation - - Retain over a period of time specific counts of installed features, that can be consumed only by current user. - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_link.py b/test/test_link.py deleted file mode 100644 index 83418dc..0000000 --- a/test/test_link.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.link import Link - -class TestLink(unittest.TestCase): - """Link unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Link: - """Test Link - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Link` - """ - model = Link() - if include_optional: - return Link( - href = '', - method = '', - type = '' - ) - else: - return Link( - href = '', - method = '', - type = '', - ) - """ - - def testLink(self): - """Test Link""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_load_config_operation.py b/test/test_load_config_operation.py deleted file mode 100644 index 7138c11..0000000 --- a/test/test_load_config_operation.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.load_config_operation import LoadConfigOperation - -class TestLoadConfigOperation(unittest.TestCase): - """LoadConfigOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LoadConfigOperation: - """Test LoadConfigOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LoadConfigOperation` - """ - model = LoadConfigOperation() - if include_optional: - return LoadConfigOperation( - config_url = '' - ) - else: - return LoadConfigOperation( - ) - """ - - def testLoadConfigOperation(self): - """Test LoadConfigOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_local_subnet_config.py b/test/test_local_subnet_config.py deleted file mode 100644 index 61a181a..0000000 --- a/test/test_local_subnet_config.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.local_subnet_config import LocalSubnetConfig - -class TestLocalSubnetConfig(unittest.TestCase): - """LocalSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LocalSubnetConfig: - """Test LocalSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LocalSubnetConfig` - """ - model = LocalSubnetConfig() - if include_optional: - return LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ] - ) - else: - return LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], - ) - """ - - def testLocalSubnetConfig(self): - """Test LocalSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_log_config.py b/test/test_log_config.py deleted file mode 100644 index 33f838e..0000000 --- a/test/test_log_config.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.log_config import LogConfig - -class TestLogConfig(unittest.TestCase): - """LogConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LogConfig: - """Test LogConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LogConfig` - """ - model = LogConfig() - if include_optional: - return LogConfig( - level = '' - ) - else: - return LogConfig( - ) - """ - - def testLogConfig(self): - """Test LogConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_log_level.py b/test/test_log_level.py deleted file mode 100644 index 04cb031..0000000 --- a/test/test_log_level.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.log_level import LogLevel - -class TestLogLevel(unittest.TestCase): - """LogLevel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLogLevel(self): - """Test LogLevel""" - # inst = LogLevel() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mac_dtls_stack.py b/test/test_mac_dtls_stack.py deleted file mode 100644 index 744943b..0000000 --- a/test/test_mac_dtls_stack.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mac_dtls_stack import MacDtlsStack - -class TestMacDtlsStack(unittest.TestCase): - """MacDtlsStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MacDtlsStack: - """Test MacDtlsStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MacDtlsStack` - """ - model = MacDtlsStack() - if include_optional: - return MacDtlsStack( - dtls_enabled = True, - dtls_range_name = 'YBuLd', - epoch = 56, - epoch_incr = 56, - ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - network_meshing = cyperf.models.network_meshing.NetworkMeshing( - dst_ips_per_group = 56, - mapping_type = null, - src_vlans_per_group = 56, ), - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return MacDtlsStack( - dtls_range_name = 'YBuLd', - epoch = 56, - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - id = '', - ) - """ - - def testMacDtlsStack(self): - """Test MacDtlsStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mapping_type.py b/test/test_mapping_type.py deleted file mode 100644 index 46bfe08..0000000 --- a/test/test_mapping_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mapping_type import MappingType - -class TestMappingType(unittest.TestCase): - """MappingType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMappingType(self): - """Test MappingType""" - # inst = MappingType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_marked_as_deleted.py b/test/test_marked_as_deleted.py deleted file mode 100644 index d7d8ab4..0000000 --- a/test/test_marked_as_deleted.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.marked_as_deleted import MarkedAsDeleted - -class TestMarkedAsDeleted(unittest.TestCase): - """MarkedAsDeleted unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MarkedAsDeleted: - """Test MarkedAsDeleted - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MarkedAsDeleted` - """ - model = MarkedAsDeleted() - if include_optional: - return MarkedAsDeleted( - delete_progress = 56, - value = True - ) - else: - return MarkedAsDeleted( - ) - """ - - def testMarkedAsDeleted(self): - """Test MarkedAsDeleted""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_md2_tlv.py b/test/test_md2_tlv.py deleted file mode 100644 index 8b8b018..0000000 --- a/test/test_md2_tlv.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.md2_tlv import Md2Tlv - -class TestMd2Tlv(unittest.TestCase): - """Md2Tlv unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Md2Tlv: - """Test Md2Tlv - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Md2Tlv` - """ - model = Md2Tlv() - if include_optional: - return Md2Tlv( - md2_class = 56, - md2_type = 56, - md2_value = 56, - id = '' - ) - else: - return Md2Tlv( - md2_class = 56, - md2_type = 56, - md2_value = 56, - id = '', - ) - """ - - def testMd2Tlv(self): - """Test Md2Tlv""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_media_file.py b/test/test_media_file.py deleted file mode 100644 index 64a5041..0000000 --- a/test/test_media_file.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.media_file import MediaFile - -class TestMediaFile(unittest.TestCase): - """MediaFile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MediaFile: - """Test MediaFile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MediaFile` - """ - model = MediaFile() - if include_optional: - return MediaFile( - file_value = cyperf.models.file_value.FileValue( - file_name = '', - md5_sum = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '', ), - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return MediaFile( - ) - """ - - def testMediaFile(self): - """Test MediaFile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_media_track.py b/test/test_media_track.py deleted file mode 100644 index 3fd5d2e..0000000 --- a/test/test_media_track.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.media_track import MediaTrack - -class TestMediaTrack(unittest.TestCase): - """MediaTrack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MediaTrack: - """Test MediaTrack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MediaTrack` - """ - model = MediaTrack() - if include_optional: - return MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = 'VIDEO', - id = '' - ) - else: - return MediaTrack( - track_id = '', - track_type = 'VIDEO', - id = '', - ) - """ - - def testMediaTrack(self): - """Test MediaTrack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_metadata.py b/test/test_metadata.py deleted file mode 100644 index a45b674..0000000 --- a/test/test_metadata.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.metadata import Metadata - -class TestMetadata(unittest.TestCase): - """Metadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Metadata: - """Test Metadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Metadata` - """ - model = Metadata() - if include_optional: - return Metadata( - direction = '', - is_banner = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '' - ) - else: - return Metadata( - ) - """ - - def testMetadata(self): - """Test Metadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mos_mode.py b/test/test_mos_mode.py deleted file mode 100644 index 28d0255..0000000 --- a/test/test_mos_mode.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mos_mode import MosMode - -class TestMosMode(unittest.TestCase): - """MosMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMosMode(self): - """Test MosMode""" - # inst = MosMode() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_name_id_format.py b/test/test_name_id_format.py deleted file mode 100644 index e9babba..0000000 --- a/test/test_name_id_format.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.name_id_format import NameIdFormat - -class TestNameIdFormat(unittest.TestCase): - """NameIdFormat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNameIdFormat(self): - """Test NameIdFormat""" - # inst = NameIdFormat() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_name_server.py b/test/test_name_server.py deleted file mode 100644 index b8b81d8..0000000 --- a/test/test_name_server.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.name_server import NameServer - -class TestNameServer(unittest.TestCase): - """NameServer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NameServer: - """Test NameServer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NameServer` - """ - model = NameServer() - if include_optional: - return NameServer( - name = '4.207.188.200' - ) - else: - return NameServer( - ) - """ - - def testNameServer(self): - """Test NameServer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_mapping.py b/test/test_network_mapping.py deleted file mode 100644 index 7e72866..0000000 --- a/test/test_network_mapping.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_mapping import NetworkMapping - -class TestNetworkMapping(unittest.TestCase): - """NetworkMapping unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkMapping: - """Test NetworkMapping - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkMapping` - """ - model = NetworkMapping() - if include_optional: - return NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ] - ) - else: - return NetworkMapping( - client_network_tags = [ - '' - ], - server_network_tags = [ - '' - ], - ) - """ - - def testNetworkMapping(self): - """Test NetworkMapping""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_meshing.py b/test/test_network_meshing.py deleted file mode 100644 index 3a9d68b..0000000 --- a/test/test_network_meshing.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_meshing import NetworkMeshing - -class TestNetworkMeshing(unittest.TestCase): - """NetworkMeshing unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkMeshing: - """Test NetworkMeshing - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkMeshing` - """ - model = NetworkMeshing() - if include_optional: - return NetworkMeshing( - dst_ips_per_group = 56, - mapping_type = 'FULL_MESH', - src_vlans_per_group = 56 - ) - else: - return NetworkMeshing( - ) - """ - - def testNetworkMeshing(self): - """Test NetworkMeshing""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_profile.py b/test/test_network_profile.py deleted file mode 100644 index 2c4c8bc..0000000 --- a/test/test_network_profile.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_profile import NetworkProfile - -class TestNetworkProfile(unittest.TestCase): - """NetworkProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkProfile: - """Test NetworkProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkProfile` - """ - model = NetworkProfile() - if include_optional: - return NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return NetworkProfile( - id = '', - ) - """ - - def testNetworkProfile(self): - """Test NetworkProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_segment_base.py b/test/test_network_segment_base.py deleted file mode 100644 index b1b9c1c..0000000 --- a/test/test_network_segment_base.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_segment_base import NetworkSegmentBase - -class TestNetworkSegmentBase(unittest.TestCase): - """NetworkSegmentBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkSegmentBase: - """Test NetworkSegmentBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkSegmentBase` - """ - model = NetworkSegmentBase() - if include_optional: - return NetworkSegmentBase( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ] - ) - else: - return NetworkSegmentBase( - name = 'YBuLd', - id = '', - ) - """ - - def testNetworkSegmentBase(self): - """Test NetworkSegmentBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_nodes_by_controller.py b/test/test_nodes_by_controller.py deleted file mode 100644 index 806af26..0000000 --- a/test/test_nodes_by_controller.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.nodes_by_controller import NodesByController - -class TestNodesByController(unittest.TestCase): - """NodesByController unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NodesByController: - """Test NodesByController - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NodesByController` - """ - model = NodesByController() - if include_optional: - return NodesByController( - compute_nodes = [ - '' - ], - controller_id = '' - ) - else: - return NodesByController( - ) - """ - - def testNodesByController(self): - """Test NodesByController""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_nodes_power_cycle_operation.py b/test/test_nodes_power_cycle_operation.py deleted file mode 100644 index d4ae2ff..0000000 --- a/test/test_nodes_power_cycle_operation.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation - -class TestNodesPowerCycleOperation(unittest.TestCase): - """NodesPowerCycleOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NodesPowerCycleOperation: - """Test NodesPowerCycleOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NodesPowerCycleOperation` - """ - model = NodesPowerCycleOperation() - if include_optional: - return NodesPowerCycleOperation( - controllers = [ - cyperf.models.nodes_by_controller.NodesByController( - compute_nodes = [ - '' - ], - controller_id = '', ) - ] - ) - else: - return NodesPowerCycleOperation( - ) - """ - - def testNodesPowerCycleOperation(self): - """Test NodesPowerCycleOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notification.py b/test/test_notification.py deleted file mode 100644 index b1e9fca..0000000 --- a/test/test_notification.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.notification import Notification - -class TestNotification(unittest.TestCase): - """Notification unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Notification: - """Test Notification - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Notification` - """ - model = Notification() - if include_optional: - return Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56 - ) - else: - return Notification( - ) - """ - - def testNotification(self): - """Test Notification""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notification_counts.py b/test/test_notification_counts.py deleted file mode 100644 index 2e8972c..0000000 --- a/test/test_notification_counts.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.notification_counts import NotificationCounts - -class TestNotificationCounts(unittest.TestCase): - """NotificationCounts unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NotificationCounts: - """Test NotificationCounts - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NotificationCounts` - """ - model = NotificationCounts() - if include_optional: - return NotificationCounts( - all = 56, - error = 56, - info = 56, - warning = 56 - ) - else: - return NotificationCounts( - ) - """ - - def testNotificationCounts(self): - """Test NotificationCounts""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notifications_api.py b/test/test_notifications_api.py deleted file mode 100644 index 8e9988e..0000000 --- a/test/test_notifications_api.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.notifications_api import NotificationsApi - - -class TestNotificationsApi(unittest.TestCase): - """NotificationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = NotificationsApi() - - def tearDown(self) -> None: - pass - - - def test_delete_notification(self) -> None: - """Test case for delete_notification - - """ - pass - - def test_get_notification_by_id(self) -> None: - """Test case for get_notification_by_id - - """ - pass - - def test_get_notification_counts(self) -> None: - """Test case for get_notification_counts - - """ - pass - - def test_get_notifications(self) -> None: - """Test case for get_notifications - - """ - pass - - - - def test_start_notifications_cleanup(self) -> None: - """Test case for start_notifications_cleanup - - """ - pass - - def test_start_notifications_dismiss(self) -> None: - """Test case for start_notifications_dismiss - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ntp_info.py b/test/test_ntp_info.py deleted file mode 100644 index d6498ff..0000000 --- a/test/test_ntp_info.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ntp_info import NtpInfo - -class TestNtpInfo(unittest.TestCase): - """NtpInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NtpInfo: - """Test NtpInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NtpInfo` - """ - model = NtpInfo() - if include_optional: - return NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '' - ) - else: - return NtpInfo( - ) - """ - - def testNtpInfo(self): - """Test NtpInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_type.py b/test/test_objective_type.py deleted file mode 100644 index 282044e..0000000 --- a/test/test_objective_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_type import ObjectiveType - -class TestObjectiveType(unittest.TestCase): - """ObjectiveType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testObjectiveType(self): - """Test ObjectiveType""" - # inst = ObjectiveType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_unit.py b/test/test_objective_unit.py deleted file mode 100644 index cd44560..0000000 --- a/test/test_objective_unit.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_unit import ObjectiveUnit - -class TestObjectiveUnit(unittest.TestCase): - """ObjectiveUnit unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testObjectiveUnit(self): - """Test ObjectiveUnit""" - # inst = ObjectiveUnit() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_value_entry.py b/test/test_objective_value_entry.py deleted file mode 100644 index 9c81df8..0000000 --- a/test/test_objective_value_entry.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_value_entry import ObjectiveValueEntry - -class TestObjectiveValueEntry(unittest.TestCase): - """ObjectiveValueEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectiveValueEntry: - """Test ObjectiveValueEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ObjectiveValueEntry` - """ - model = ObjectiveValueEntry() - if include_optional: - return ObjectiveValueEntry( - unit = '', - value = 1.337, - id = '' - ) - else: - return ObjectiveValueEntry( - value = 1.337, - id = '', - ) - """ - - def testObjectiveValueEntry(self): - """Test ObjectiveValueEntry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objectives_and_timeline.py b/test/test_objectives_and_timeline.py deleted file mode 100644 index cc49bb0..0000000 --- a/test/test_objectives_and_timeline.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline - -class TestObjectivesAndTimeline(unittest.TestCase): - """ObjectivesAndTimeline unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectivesAndTimeline: - """Test ObjectivesAndTimeline - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ObjectivesAndTimeline` - """ - model = ObjectivesAndTimeline() - if include_optional: - return ObjectivesAndTimeline( - advanced_settings = cyperf.models.advanced_settings.AdvancedSettings( - agent_optimization_mode = null, - agent_streaming_purpose_cpu_percent = 56, - automatic_cpu_percent = True, - connection_graceful_stop_timeout = 56, - warm_up_period = 56, ), - primary_objective = cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - secondary_objective = cyperf.models.secondary_objective.SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - max_simulated_users_per_interval = 56, - objective_unit = '', - objective_value = 1.337, - type = 'Simulated users', ), - secondary_objectives = [ - cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ObjectivesAndTimeline( - ) - """ - - def testObjectivesAndTimeline(self): - """Test ObjectivesAndTimeline""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_open_api_definitions.py b/test/test_open_api_definitions.py deleted file mode 100644 index 3eadcc9..0000000 --- a/test/test_open_api_definitions.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.open_api_definitions import OpenAPIDefinitions - -class TestOpenAPIDefinitions(unittest.TestCase): - """OpenAPIDefinitions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> OpenAPIDefinitions: - """Test OpenAPIDefinitions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `OpenAPIDefinitions` - """ - model = OpenAPIDefinitions() - if include_optional: - return OpenAPIDefinitions( - open_api_definitions = { - 'key' : null - } - ) - else: - return OpenAPIDefinitions( - ) - """ - - def testOpenAPIDefinitions(self): - """Test OpenAPIDefinitions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_p1_config.py b/test/test_p1_config.py deleted file mode 100644 index f98460b..0000000 --- a/test/test_p1_config.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.p1_config import P1Config - -class TestP1Config(unittest.TestCase): - """P1Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> P1Config: - """Test P1Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `P1Config` - """ - model = P1Config() - if include_optional: - return P1Config( - dh_group = 'MODP 768', - enc_algorithm = 'DES CBC', - hash_algorithm = 'HMAC MD5', - initial_contact = True, - lifetime = 56, - prf_algorithm = 'HMAC MD5' - ) - else: - return P1Config( - dh_group = 'MODP 768', - enc_algorithm = 'DES CBC', - hash_algorithm = 'HMAC MD5', - initial_contact = True, - lifetime = 56, - prf_algorithm = 'HMAC MD5', - ) - """ - - def testP1Config(self): - """Test P1Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_p2_config.py b/test/test_p2_config.py deleted file mode 100644 index b580fe4..0000000 --- a/test/test_p2_config.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.p2_config import P2Config - -class TestP2Config(unittest.TestCase): - """P2Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> P2Config: - """Test P2Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `P2Config` - """ - model = P2Config() - if include_optional: - return P2Config( - enc_algorithm = 'NONE', - hash_algorithm = 'HMAC MD5 96', - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = 'MODP 768' - ) - else: - return P2Config( - enc_algorithm = 'NONE', - hash_algorithm = 'HMAC MD5 96', - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = 'MODP 768', - ) - """ - - def testP2Config(self): - """Test P2Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pair.py b/test/test_pair.py deleted file mode 100644 index 8e0d795..0000000 --- a/test/test_pair.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pair import Pair - -class TestPair(unittest.TestCase): - """Pair unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Pair: - """Test Pair - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Pair` - """ - model = Pair() - if include_optional: - return Pair( - id = 56, - key = '', - value = '' - ) - else: - return Pair( - ) - """ - - def testPair(self): - """Test Pair""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pangp_encapsulation.py b/test/test_pangp_encapsulation.py deleted file mode 100644 index 1262637..0000000 --- a/test/test_pangp_encapsulation.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pangp_encapsulation import PANGPEncapsulation - -class TestPANGPEncapsulation(unittest.TestCase): - """PANGPEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PANGPEncapsulation: - """Test PANGPEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PANGPEncapsulation` - """ - model = PANGPEncapsulation() - if include_optional: - return PANGPEncapsulation( - esp_over_udp_enabled = True, - esp_over_udp_settings = cyperf.models.esp_over_udp_settings.ESPOverUDPSettings( - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PANGPEncapsulation( - esp_over_udp_enabled = True, - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - ) - """ - - def testPANGPEncapsulation(self): - """Test PANGPEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pangp_settings.py b/test/test_pangp_settings.py deleted file mode 100644 index de1f305..0000000 --- a/test/test_pangp_settings.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pangp_settings import PANGPSettings - -class TestPANGPSettings(unittest.TestCase): - """PANGPSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PANGPSettings: - """Test PANGPSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PANGPSettings` - """ - model = PANGPSettings() - if include_optional: - return PANGPSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - esp_probe_retry_timeout = 56, - esp_probe_timeout = 56, - gp_client_version = '', - is_portal = True, - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - pangp_encapsulation = cyperf.models.pangp_encapsulation.PANGPEncapsulation( - esp_over_udp_enabled = True, - esp_over_udp_settings = null, - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - portal_hostname = '02::84', - vpn_gateway = '', - vpn_gateways = [ - '' - ] - ) - else: - return PANGPSettings( - portal_hostname = '02::84', - vpn_gateways = [ - '' - ], - ) - """ - - def testPANGPSettings(self): - """Test PANGPSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata.py b/test/test_param_metadata.py deleted file mode 100644 index 671456e..0000000 --- a/test/test_param_metadata.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata import ParamMetadata - -class TestParamMetadata(unittest.TestCase): - """ParamMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadata: - """Test ParamMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadata` - """ - model = ParamMetadata() - if include_optional: - return ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ) - ) - else: - return ParamMetadata( - ) - """ - - def testParamMetadata(self): - """Test ParamMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info.py b/test/test_param_metadata_type_info.py deleted file mode 100644 index 16afc83..0000000 --- a/test/test_param_metadata_type_info.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo - -class TestParamMetadataTypeInfo(unittest.TestCase): - """ParamMetadataTypeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfo: - """Test ParamMetadataTypeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfo` - """ - model = ParamMetadataTypeInfo() - if include_optional: - return ParamMetadataTypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ) - ) - else: - return ParamMetadataTypeInfo( - ) - """ - - def testParamMetadataTypeInfo(self): - """Test ParamMetadataTypeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2.py b/test/test_param_metadata_type_info_array_v2.py deleted file mode 100644 index 320889d..0000000 --- a/test/test_param_metadata_type_info_array_v2.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_array_v2 import ParamMetadataTypeInfoArrayV2 - -class TestParamMetadataTypeInfoArrayV2(unittest.TestCase): - """ParamMetadataTypeInfoArrayV2 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoArrayV2: - """Test ParamMetadataTypeInfoArrayV2 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoArrayV2` - """ - model = ParamMetadataTypeInfoArrayV2() - if include_optional: - return ParamMetadataTypeInfoArrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ] - ) - else: - return ParamMetadataTypeInfoArrayV2( - ) - """ - - def testParamMetadataTypeInfoArrayV2(self): - """Test ParamMetadataTypeInfoArrayV2""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2_elements_inner.py b/test/test_param_metadata_type_info_array_v2_elements_inner.py deleted file mode 100644 index 78d5d80..0000000 --- a/test/test_param_metadata_type_info_array_v2_elements_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_array_v2_elements_inner import ParamMetadataTypeInfoArrayV2ElementsInner - -class TestParamMetadataTypeInfoArrayV2ElementsInner(unittest.TestCase): - """ParamMetadataTypeInfoArrayV2ElementsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoArrayV2ElementsInner: - """Test ParamMetadataTypeInfoArrayV2ElementsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoArrayV2ElementsInner` - """ - model = ParamMetadataTypeInfoArrayV2ElementsInner() - if include_optional: - return ParamMetadataTypeInfoArrayV2ElementsInner( - id = '', - type = '' - ) - else: - return ParamMetadataTypeInfoArrayV2ElementsInner( - ) - """ - - def testParamMetadataTypeInfoArrayV2ElementsInner(self): - """Test ParamMetadataTypeInfoArrayV2ElementsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_int.py b/test/test_param_metadata_type_info_int.py deleted file mode 100644 index 26867ce..0000000 --- a/test/test_param_metadata_type_info_int.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_int import ParamMetadataTypeInfoInt - -class TestParamMetadataTypeInfoInt(unittest.TestCase): - """ParamMetadataTypeInfoInt unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoInt: - """Test ParamMetadataTypeInfoInt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoInt` - """ - model = ParamMetadataTypeInfoInt() - if include_optional: - return ParamMetadataTypeInfoInt( - max_value = 56, - min_value = 56 - ) - else: - return ParamMetadataTypeInfoInt( - ) - """ - - def testParamMetadataTypeInfoInt(self): - """Test ParamMetadataTypeInfoInt""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_media.py b/test/test_param_metadata_type_info_media.py deleted file mode 100644 index 2c155ab..0000000 --- a/test/test_param_metadata_type_info_media.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_media import ParamMetadataTypeInfoMedia - -class TestParamMetadataTypeInfoMedia(unittest.TestCase): - """ParamMetadataTypeInfoMedia unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoMedia: - """Test ParamMetadataTypeInfoMedia - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoMedia` - """ - model = ParamMetadataTypeInfoMedia() - if include_optional: - return ParamMetadataTypeInfoMedia( - track_id = '', - track_type = '' - ) - else: - return ParamMetadataTypeInfoMedia( - ) - """ - - def testParamMetadataTypeInfoMedia(self): - """Test ParamMetadataTypeInfoMedia""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_string.py b/test/test_param_metadata_type_info_string.py deleted file mode 100644 index 232aa16..0000000 --- a/test/test_param_metadata_type_info_string.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_string import ParamMetadataTypeInfoString - -class TestParamMetadataTypeInfoString(unittest.TestCase): - """ParamMetadataTypeInfoString unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoString: - """Test ParamMetadataTypeInfoString - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoString` - """ - model = ParamMetadataTypeInfoString() - if include_optional: - return ParamMetadataTypeInfoString( - charset = '', - max_length = 56, - min_length = 56 - ) - else: - return ParamMetadataTypeInfoString( - ) - """ - - def testParamMetadataTypeInfoString(self): - """Test ParamMetadataTypeInfoString""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_source_type.py b/test/test_param_source_type.py deleted file mode 100644 index 863519f..0000000 --- a/test/test_param_source_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_source_type import ParamSourceType - -class TestParamSourceType(unittest.TestCase): - """ParamSourceType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testParamSourceType(self): - """Test ParamSourceType""" - # inst = ParamSourceType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_type.py b/test/test_param_type.py deleted file mode 100644 index 74786e6..0000000 --- a/test/test_param_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_type import ParamType - -class TestParamType(unittest.TestCase): - """ParamType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testParamType(self): - """Test ParamType""" - # inst = ParamType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter.py b/test/test_parameter.py deleted file mode 100644 index e1359db..0000000 --- a/test/test_parameter.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter import Parameter - -class TestParameter(unittest.TestCase): - """Parameter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Parameter: - """Test Parameter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Parameter` - """ - model = Parameter() - if include_optional: - return Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - var_field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '' - ) - else: - return Parameter( - ) - """ - - def testParameter(self): - """Test Parameter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter_match.py b/test/test_parameter_match.py deleted file mode 100644 index b365033..0000000 --- a/test/test_parameter_match.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter_match import ParameterMatch - -class TestParameterMatch(unittest.TestCase): - """ParameterMatch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterMatch: - """Test ParameterMatch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParameterMatch` - """ - model = ParameterMatch() - if include_optional: - return ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ) - ) - else: - return ParameterMatch( - ) - """ - - def testParameterMatch(self): - """Test ParameterMatch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter_meta.py b/test/test_parameter_meta.py deleted file mode 100644 index 1052ca1..0000000 --- a/test/test_parameter_meta.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter_meta import ParameterMeta - -class TestParameterMeta(unittest.TestCase): - """ParameterMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterMeta: - """Test ParameterMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParameterMeta` - """ - model = ParameterMeta() - if include_optional: - return ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '' - ) - else: - return ParameterMeta( - ) - """ - - def testParameterMeta(self): - """Test ParameterMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter_metadata.py b/test/test_parameter_metadata.py deleted file mode 100644 index 563d577..0000000 --- a/test/test_parameter_metadata.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter_metadata import ParameterMetadata - -class TestParameterMetadata(unittest.TestCase): - """ParameterMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterMetadata: - """Test ParameterMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParameterMetadata` - """ - model = ParameterMetadata() - if include_optional: - return ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ParameterMetadata( - ) - """ - - def testParameterMetadata(self): - """Test ParameterMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_params.py b/test/test_params.py deleted file mode 100644 index 7bdb54b..0000000 --- a/test/test_params.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.params import Params - -class TestParams(unittest.TestCase): - """Params unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Params: - """Test Params - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Params` - """ - model = Params() - if include_optional: - return Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = cyperf.models.file_value.FileValue( - file_name = '', - md5_sum = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '', ), - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '' - ) - else: - return Params( - id = '', - ) - """ - - def testParams(self): - """Test Params""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_params_enum.py b/test/test_params_enum.py deleted file mode 100644 index 47ac4f7..0000000 --- a/test/test_params_enum.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.params_enum import ParamsEnum - -class TestParamsEnum(unittest.TestCase): - """ParamsEnum unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamsEnum: - """Test ParamsEnum - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamsEnum` - """ - model = ParamsEnum() - if include_optional: - return ParamsEnum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ] - ) - else: - return ParamsEnum( - ) - """ - - def testParamsEnum(self): - """Test ParamsEnum""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payload_meta.py b/test/test_payload_meta.py deleted file mode 100644 index 8a48d0d..0000000 --- a/test/test_payload_meta.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.payload_meta import PayloadMeta - -class TestPayloadMeta(unittest.TestCase): - """PayloadMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PayloadMeta: - """Test PayloadMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PayloadMeta` - """ - model = PayloadMeta() - if include_optional: - return PayloadMeta( - byte_size = 56, - content_file_url = '', - file_name = '', - location = '', - md5sum = '', - resource_url = '' - ) - else: - return PayloadMeta( - ) - """ - - def testPayloadMeta(self): - """Test PayloadMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payload_metadata.py b/test/test_payload_metadata.py deleted file mode 100644 index 6f53040..0000000 --- a/test/test_payload_metadata.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.payload_metadata import PayloadMetadata - -class TestPayloadMetadata(unittest.TestCase): - """PayloadMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PayloadMetadata: - """Test PayloadMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PayloadMetadata` - """ - model = PayloadMetadata() - if include_optional: - return PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '' - ) - else: - return PayloadMetadata( - ) - """ - - def testPayloadMetadata(self): - """Test PayloadMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pep_dut.py b/test/test_pep_dut.py deleted file mode 100644 index ac5940f..0000000 --- a/test/test_pep_dut.py +++ /dev/null @@ -1,372 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pep_dut import PepDUT - -class TestPepDUT(unittest.TestCase): - """PepDUT unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PepDUT: - """Test PepDUT - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PepDUT` - """ - model = PepDUT() - if include_optional: - return PepDUT( - auth_method = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = '252.7.188.200', - idp_type = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - is_explicit_proxy = True, - pep_host = '252.7.188.200', - pep_port = 56, - simulated_id_p = cyperf.models.simulated_id_p.SimulatedIdP( - assertion_signature = True, - audience_uri = '', - cert_config = null, - name_id_format = null, - response_signature = True, - signature_algorithm = null, - single_sign_on_url = '', - xml_metadata = [ - 'YQ==' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PepDUT( - ) - """ - - def testPepDUT(self): - """Test PepDUT""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pfs_p2_group.py b/test/test_pfs_p2_group.py deleted file mode 100644 index fd35cad..0000000 --- a/test/test_pfs_p2_group.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pfs_p2_group import PfsP2Group - -class TestPfsP2Group(unittest.TestCase): - """PfsP2Group unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPfsP2Group(self): - """Test PfsP2Group""" - # inst = PfsP2Group() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_playlist_metadata.py b/test/test_playlist_metadata.py deleted file mode 100644 index f5c3ca0..0000000 --- a/test/test_playlist_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.playlist_metadata import PlaylistMetadata - -class TestPlaylistMetadata(unittest.TestCase): - """PlaylistMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlaylistMetadata: - """Test PlaylistMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlaylistMetadata` - """ - model = PlaylistMetadata() - if include_optional: - return PlaylistMetadata( - column = '', - file_name = '' - ) - else: - return PlaylistMetadata( - ) - """ - - def testPlaylistMetadata(self): - """Test PlaylistMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_plugin.py b/test/test_plugin.py deleted file mode 100644 index 3c160a7..0000000 --- a/test/test_plugin.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.plugin import Plugin - -class TestPlugin(unittest.TestCase): - """Plugin unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Plugin: - """Test Plugin - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Plugin` - """ - model = Plugin() - if include_optional: - return Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '' - ) - else: - return Plugin( - ) - """ - - def testPlugin(self): - """Test Plugin""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_plugin_stats.py b/test/test_plugin_stats.py deleted file mode 100644 index 4eee84e..0000000 --- a/test/test_plugin_stats.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.plugin_stats import PluginStats - -class TestPluginStats(unittest.TestCase): - """PluginStats unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PluginStats: - """Test PluginStats - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PluginStats` - """ - model = PluginStats() - if include_optional: - return PluginStats( - plugin = '', - stats = [ - { - 'key' : null - } - ], - version = '' - ) - else: - return PluginStats( - ) - """ - - def testPluginStats(self): - """Test PluginStats""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_port.py b/test/test_port.py deleted file mode 100644 index 9721884..0000000 --- a/test/test_port.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.port import Port - -class TestPort(unittest.TestCase): - """Port unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Port: - """Test Port - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Port` - """ - model = Port() - if include_optional: - return Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '' - ) - else: - return Port( - ) - """ - - def testPort(self): - """Test Port""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_port_settings.py b/test/test_port_settings.py deleted file mode 100644 index 7960e20..0000000 --- a/test/test_port_settings.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.port_settings import PortSettings - -class TestPortSettings(unittest.TestCase): - """PortSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortSettings: - """Test PortSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortSettings` - """ - model = PortSettings() - if include_optional: - return PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - effective_ports = cyperf.models.effective_ports.EffectivePorts( - effective_destination_port = '', - effective_forward_proxy_port = '', - effective_server_port = '', ), - forward_proxy_port = 56, - readonly = True, - server_listen_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - forward_proxy_port = 56, - server_listen_port = 56, - ) - """ - - def testPortSettings(self): - """Test PortSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ports_by_controller.py b/test/test_ports_by_controller.py deleted file mode 100644 index 931f38b..0000000 --- a/test/test_ports_by_controller.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ports_by_controller import PortsByController - -class TestPortsByController(unittest.TestCase): - """PortsByController unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortsByController: - """Test PortsByController - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortsByController` - """ - model = PortsByController() - if include_optional: - return PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '' - ) - else: - return PortsByController( - ) - """ - - def testPortsByController(self): - """Test PortsByController""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ports_by_node.py b/test/test_ports_by_node.py deleted file mode 100644 index 7c0e989..0000000 --- a/test/test_ports_by_node.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ports_by_node import PortsByNode - -class TestPortsByNode(unittest.TestCase): - """PortsByNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortsByNode: - """Test PortsByNode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortsByNode` - """ - model = PortsByNode() - if include_optional: - return PortsByNode( - compute_node_id = '', - ports = [ - '' - ] - ) - else: - return PortsByNode( - ) - """ - - def testPortsByNode(self): - """Test PortsByNode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prepare_test_operation.py b/test/test_prepare_test_operation.py deleted file mode 100644 index 84a3983..0000000 --- a/test/test_prepare_test_operation.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prepare_test_operation import PrepareTestOperation - -class TestPrepareTestOperation(unittest.TestCase): - """PrepareTestOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PrepareTestOperation: - """Test PrepareTestOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PrepareTestOperation` - """ - model = PrepareTestOperation() - if include_optional: - return PrepareTestOperation( - options = cyperf.models.prepared_test_options.PreparedTestOptions( - add_activity_meta = True, - datasource_for_ui_views = '', - extra_tags = { - 'key' : [ - '' - ] - }, - filter_by_properties = { - 'key' : '' - }, - format_protocol_name = True, - override_properties = { - 'key' : '' - }, ), - message = '', - new_state = '', - old_state = '', - owner = '', - owner_id = '', - reason = '', - test_id = '', - timestamp = 56 - ) - else: - return PrepareTestOperation( - ) - """ - - def testPrepareTestOperation(self): - """Test PrepareTestOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prepared_test_options.py b/test/test_prepared_test_options.py deleted file mode 100644 index 4a09fd5..0000000 --- a/test/test_prepared_test_options.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prepared_test_options import PreparedTestOptions - -class TestPreparedTestOptions(unittest.TestCase): - """PreparedTestOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PreparedTestOptions: - """Test PreparedTestOptions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PreparedTestOptions` - """ - model = PreparedTestOptions() - if include_optional: - return PreparedTestOptions( - add_activity_meta = True, - datasource_for_ui_views = '', - extra_tags = { - 'key' : [ - '' - ] - }, - filter_by_properties = { - 'key' : '' - }, - format_protocol_name = True, - override_properties = { - 'key' : '' - } - ) - else: - return PreparedTestOptions( - ) - """ - - def testPreparedTestOptions(self): - """Test PreparedTestOptions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prf_p1_algorithm.py b/test/test_prf_p1_algorithm.py deleted file mode 100644 index 7767976..0000000 --- a/test/test_prf_p1_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prf_p1_algorithm import PrfP1Algorithm - -class TestPrfP1Algorithm(unittest.TestCase): - """PrfP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPrfP1Algorithm(self): - """Test PrfP1Algorithm""" - # inst = PrfP1Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_protected_subnet_config.py b/test/test_protected_subnet_config.py deleted file mode 100644 index f9d0eff..0000000 --- a/test/test_protected_subnet_config.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.protected_subnet_config import ProtectedSubnetConfig - -class TestProtectedSubnetConfig(unittest.TestCase): - """ProtectedSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProtectedSubnetConfig: - """Test ProtectedSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProtectedSubnetConfig` - """ - model = ProtectedSubnetConfig() - if include_optional: - return ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf' - ) - else: - return ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf', - ) - """ - - def testProtectedSubnetConfig(self): - """Test ProtectedSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_quic_profile.py b/test/test_quic_profile.py deleted file mode 100644 index 904dfe4..0000000 --- a/test/test_quic_profile.py +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.quic_profile import QUICProfile - -class TestQUICProfile(unittest.TestCase): - """QUICProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QUICProfile: - """Test QUICProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QUICProfile` - """ - model = QUICProfile() - if include_optional: - return QUICProfile( - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - min_rto = 56, - name = '', - quic_version = 'Q043', - rx_buffer = 56, - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return QUICProfile( - ) - """ - - def testQUICProfile(self): - """Test QUICProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_quic_version.py b/test/test_quic_version.py deleted file mode 100644 index 274a51c..0000000 --- a/test/test_quic_version.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.quic_version import QUICVersion - -class TestQUICVersion(unittest.TestCase): - """QUICVersion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testQUICVersion(self): - """Test QUICVersion""" - # inst = QUICVersion() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reboot_operation_input.py b/test/test_reboot_operation_input.py deleted file mode 100644 index 272a6d0..0000000 --- a/test/test_reboot_operation_input.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reboot_operation_input import RebootOperationInput - -class TestRebootOperationInput(unittest.TestCase): - """RebootOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RebootOperationInput: - """Test RebootOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RebootOperationInput` - """ - model = RebootOperationInput() - if include_optional: - return RebootOperationInput( - agents = [ - cyperf.models.agent_to_be_rebooted.AgentToBeRebooted( - agent_id = '', ) - ], - soft_reboot = True - ) - else: - return RebootOperationInput( - ) - """ - - def testRebootOperationInput(self): - """Test RebootOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reboot_ports_operation.py b/test/test_reboot_ports_operation.py deleted file mode 100644 index a59b4a6..0000000 --- a/test/test_reboot_ports_operation.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reboot_ports_operation import RebootPortsOperation - -class TestRebootPortsOperation(unittest.TestCase): - """RebootPortsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RebootPortsOperation: - """Test RebootPortsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RebootPortsOperation` - """ - model = RebootPortsOperation() - if include_optional: - return RebootPortsOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ] - ) - else: - return RebootPortsOperation( - ) - """ - - def testRebootPortsOperation(self): - """Test RebootPortsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reference.py b/test/test_reference.py deleted file mode 100644 index b0e506d..0000000 --- a/test/test_reference.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reference import Reference - -class TestReference(unittest.TestCase): - """Reference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Reference: - """Test Reference - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Reference` - """ - model = Reference() - if include_optional: - return Reference( - type = '', - value = '' - ) - else: - return Reference( - ) - """ - - def testReference(self): - """Test Reference""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_regex_match.py b/test/test_regex_match.py deleted file mode 100644 index b7348ba..0000000 --- a/test/test_regex_match.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.regex_match import RegexMatch - -class TestRegexMatch(unittest.TestCase): - """RegexMatch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RegexMatch: - """Test RegexMatch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RegexMatch` - """ - model = RegexMatch() - if include_optional: - return RegexMatch( - patterns = [ - '' - ] - ) - else: - return RegexMatch( - ) - """ - - def testRegexMatch(self): - """Test RegexMatch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_release_operation_input.py b/test/test_release_operation_input.py deleted file mode 100644 index ed92eff..0000000 --- a/test/test_release_operation_input.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.release_operation_input import ReleaseOperationInput - -class TestReleaseOperationInput(unittest.TestCase): - """ReleaseOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReleaseOperationInput: - """Test ReleaseOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReleaseOperationInput` - """ - model = ReleaseOperationInput() - if include_optional: - return ReleaseOperationInput( - agents_data = [ - cyperf.models.agent_release.AgentRelease( - agent_id = '', ) - ], - session_id = '' - ) - else: - return ReleaseOperationInput( - ) - """ - - def testReleaseOperationInput(self): - """Test ReleaseOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_remote_access.py b/test/test_remote_access.py deleted file mode 100644 index d6e9077..0000000 --- a/test/test_remote_access.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.remote_access import RemoteAccess - -class TestRemoteAccess(unittest.TestCase): - """RemoteAccess unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RemoteAccess: - """Test RemoteAccess - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RemoteAccess` - """ - model = RemoteAccess() - if include_optional: - return RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_start = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56 - ) - else: - return RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56, - ) - """ - - def testRemoteAccess(self): - """Test RemoteAccess""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_remote_subnet_config.py b/test/test_remote_subnet_config.py deleted file mode 100644 index 14424a9..0000000 --- a/test/test_remote_subnet_config.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.remote_subnet_config import RemoteSubnetConfig - -class TestRemoteSubnetConfig(unittest.TestCase): - """RemoteSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RemoteSubnetConfig: - """Test RemoteSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RemoteSubnetConfig` - """ - model = RemoteSubnetConfig() - if include_optional: - return RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf' - ) - else: - return RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf', - ) - """ - - def testRemoteSubnetConfig(self): - """Test RemoteSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rename_input.py b/test/test_rename_input.py deleted file mode 100644 index c21c1bd..0000000 --- a/test/test_rename_input.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rename_input import RenameInput - -class TestRenameInput(unittest.TestCase): - """RenameInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RenameInput: - """Test RenameInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RenameInput` - """ - model = RenameInput() - if include_optional: - return RenameInput( - new_action_name = '', - old_action_name = '' - ) - else: - return RenameInput( - ) - """ - - def testRenameInput(self): - """Test RenameInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reorder_action_input.py b/test/test_reorder_action_input.py deleted file mode 100644 index 6a09a71..0000000 --- a/test/test_reorder_action_input.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reorder_action_input import ReorderActionInput - -class TestReorderActionInput(unittest.TestCase): - """ReorderActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReorderActionInput: - """Test ReorderActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReorderActionInput` - """ - model = ReorderActionInput() - if include_optional: - return ReorderActionInput( - action_idx = 56, - action_name = '' - ) - else: - return ReorderActionInput( - ) - """ - - def testReorderActionInput(self): - """Test ReorderActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reorder_exchanges_input.py b/test/test_reorder_exchanges_input.py deleted file mode 100644 index e39345a..0000000 --- a/test/test_reorder_exchanges_input.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reorder_exchanges_input import ReorderExchangesInput - -class TestReorderExchangesInput(unittest.TestCase): - """ReorderExchangesInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReorderExchangesInput: - """Test ReorderExchangesInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReorderExchangesInput` - """ - model = ReorderExchangesInput() - if include_optional: - return ReorderExchangesInput( - action_name = '', - exchanges_order = [ - cyperf.models.exchange_order.ExchangeOrder( - exchange_id = '', - exchange_idx = 56, ) - ], - flow_idx = 56 - ) - else: - return ReorderExchangesInput( - ) - """ - - def testReorderExchangesInput(self): - """Test ReorderExchangesInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_replay_capture.py b/test/test_replay_capture.py deleted file mode 100644 index d4f9440..0000000 --- a/test/test_replay_capture.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.replay_capture import ReplayCapture - -class TestReplayCapture(unittest.TestCase): - """ReplayCapture unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReplayCapture: - """Test ReplayCapture - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReplayCapture` - """ - model = ReplayCapture() - if include_optional: - return ReplayCapture( - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - owner = '', - owner_id = '' - ) - else: - return ReplayCapture( - ) - """ - - def testReplayCapture(self): - """Test ReplayCapture""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reports_api.py b/test/test_reports_api.py deleted file mode 100644 index d193b45..0000000 --- a/test/test_reports_api.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.reports_api import ReportsApi - - -class TestReportsApi(unittest.TestCase): - """ReportsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ReportsApi() - - def tearDown(self) -> None: - pass - - - def test_download_pdf(self) -> None: - """Test case for download_pdf - - """ - pass - - def test_get_result_download_csv_by_id(self) -> None: - """Test case for get_result_download_csv_by_id - - """ - pass - - - - def test_start_result_generate_csv(self) -> None: - """Test case for start_result_generate_csv - - """ - pass - - def test_start_result_generate_pdf(self) -> None: - """Test case for start_result_generate_pdf - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_required_file_types.py b/test/test_required_file_types.py deleted file mode 100644 index ccfeeba..0000000 --- a/test/test_required_file_types.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.required_file_types import RequiredFileTypes - -class TestRequiredFileTypes(unittest.TestCase): - """RequiredFileTypes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RequiredFileTypes: - """Test RequiredFileTypes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RequiredFileTypes` - """ - model = RequiredFileTypes() - if include_optional: - return RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True - ) - else: - return RequiredFileTypes( - ) - """ - - def testRequiredFileTypes(self): - """Test RequiredFileTypes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reserve_operation_input.py b/test/test_reserve_operation_input.py deleted file mode 100644 index 24be352..0000000 --- a/test/test_reserve_operation_input.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reserve_operation_input import ReserveOperationInput - -class TestReserveOperationInput(unittest.TestCase): - """ReserveOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReserveOperationInput: - """Test ReserveOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReserveOperationInput` - """ - model = ReserveOperationInput() - if include_optional: - return ReserveOperationInput( - agents_data = [ - cyperf.models.agent_reservation.AgentReservation( - agent_id = '', - agent_payload_names = [ - '' - ], - general_purpose_cpu_percent = 56, - interfaces = [ - '' - ], - ip_address_version_used = '', - optimization_mode = '', ) - ], - force = True, - owner = '', - owner_id = '', - payloads = { - 'key' : cyperf.models.payload_meta.PayloadMeta( - byte_size = 56, - content_file_url = '', - file_name = '', - location = '', - md5sum = '', - resource_url = '', ) - }, - session_id = '', - session_name = '' - ) - else: - return ReserveOperationInput( - ) - """ - - def testReserveOperationInput(self): - """Test ReserveOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_result_file_metadata.py b/test/test_result_file_metadata.py deleted file mode 100644 index e9b71f8..0000000 --- a/test/test_result_file_metadata.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.result_file_metadata import ResultFileMetadata - -class TestResultFileMetadata(unittest.TestCase): - """ResultFileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultFileMetadata: - """Test ResultFileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultFileMetadata` - """ - model = ResultFileMetadata() - if include_optional: - return ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '' - ) - else: - return ResultFileMetadata( - ) - """ - - def testResultFileMetadata(self): - """Test ResultFileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_result_metadata.py b/test/test_result_metadata.py deleted file mode 100644 index f11cd7e..0000000 --- a/test/test_result_metadata.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.result_metadata import ResultMetadata - -class TestResultMetadata(unittest.TestCase): - """ResultMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultMetadata: - """Test ResultMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultMetadata` - """ - model = ResultMetadata() - if include_optional: - return ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = None, - download_diagnostic = None, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - report_types = [ - '' - ], - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ] - ) - else: - return ResultMetadata( - ) - """ - - def testResultMetadata(self): - """Test ResultMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_results_group.py b/test/test_results_group.py deleted file mode 100644 index 87f4108..0000000 --- a/test/test_results_group.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.results_group import ResultsGroup - -class TestResultsGroup(unittest.TestCase): - """ResultsGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultsGroup: - """Test ResultsGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultsGroup` - """ - model = ResultsGroup() - if include_optional: - return ResultsGroup( - name = '', - results = [ - '' - ] - ) - else: - return ResultsGroup( - ) - """ - - def testResultsGroup(self): - """Test ResultsGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_encryption_mode.py b/test/test_rtp_encryption_mode.py deleted file mode 100644 index d1bd493..0000000 --- a/test/test_rtp_encryption_mode.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_encryption_mode import RTPEncryptionMode - -class TestRTPEncryptionMode(unittest.TestCase): - """RTPEncryptionMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRTPEncryptionMode(self): - """Test RTPEncryptionMode""" - # inst = RTPEncryptionMode() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_profile.py b/test/test_rtp_profile.py deleted file mode 100644 index 0916121..0000000 --- a/test/test_rtp_profile.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_profile import RTPProfile - -class TestRTPProfile(unittest.TestCase): - """RTPProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RTPProfile: - """Test RTPProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RTPProfile` - """ - model = RTPProfile() - if include_optional: - return RTPProfile( - encryption_mode = 'ZOOM', - mos_mode = 'DISABLED', - profile_id = '' - ) - else: - return RTPProfile( - encryption_mode = 'ZOOM', - mos_mode = 'DISABLED', - profile_id = '', - ) - """ - - def testRTPProfile(self): - """Test RTPProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_profile_meta.py b/test/test_rtp_profile_meta.py deleted file mode 100644 index 6b48767..0000000 --- a/test/test_rtp_profile_meta.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_profile_meta import RTPProfileMeta - -class TestRTPProfileMeta(unittest.TestCase): - """RTPProfileMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RTPProfileMeta: - """Test RTPProfileMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RTPProfileMeta` - """ - model = RTPProfileMeta() - if include_optional: - return RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True - ) - else: - return RTPProfileMeta( - ) - """ - - def testRTPProfileMeta(self): - """Test RTPProfileMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_save_config_operation.py b/test/test_save_config_operation.py deleted file mode 100644 index ab5c4ad..0000000 --- a/test/test_save_config_operation.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.save_config_operation import SaveConfigOperation - -class TestSaveConfigOperation(unittest.TestCase): - """SaveConfigOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SaveConfigOperation: - """Test SaveConfigOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SaveConfigOperation` - """ - model = SaveConfigOperation() - if include_optional: - return SaveConfigOperation( - name = '' - ) - else: - return SaveConfigOperation( - ) - """ - - def testSaveConfigOperation(self): - """Test SaveConfigOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_scenario.py b/test/test_scenario.py deleted file mode 100644 index 9a20c65..0000000 --- a/test/test_scenario.py +++ /dev/null @@ -1,489 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.scenario import Scenario - -class TestScenario(unittest.TestCase): - """Scenario unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Scenario: - """Test Scenario - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Scenario` - """ - model = Scenario() - if include_optional: - return Scenario( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - inherit_quic_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Scenario( - ) - """ - - def testScenario(self): - """Test Scenario""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_secondary_objective.py b/test/test_secondary_objective.py deleted file mode 100644 index 871bee3..0000000 --- a/test/test_secondary_objective.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.secondary_objective import SecondaryObjective - -class TestSecondaryObjective(unittest.TestCase): - """SecondaryObjective unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecondaryObjective: - """Test SecondaryObjective - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SecondaryObjective` - """ - model = SecondaryObjective() - if include_optional: - return SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - max_simulated_users_per_interval = 56, - objective_unit = '', - objective_value = 1.337, - type = 'Simulated users' - ) - else: - return SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - objective_unit = '', - objective_value = 1.337, - type = 'Simulated users', - ) - """ - - def testSecondaryObjective(self): - """Test SecondaryObjective""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_segment_type.py b/test/test_segment_type.py deleted file mode 100644 index 6deee34..0000000 --- a/test/test_segment_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.segment_type import SegmentType - -class TestSegmentType(unittest.TestCase): - """SegmentType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSegmentType(self): - """Test SegmentType""" - # inst = SegmentType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_selected_env.py b/test/test_selected_env.py deleted file mode 100644 index bce8dce..0000000 --- a/test/test_selected_env.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.selected_env import SelectedEnv - -class TestSelectedEnv(unittest.TestCase): - """SelectedEnv unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelectedEnv: - """Test SelectedEnv - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SelectedEnv` - """ - model = SelectedEnv() - if include_optional: - return SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - token = '' - ) - else: - return SelectedEnv( - ) - """ - - def testSelectedEnv(self): - """Test SelectedEnv""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session.py b/test/test_session.py deleted file mode 100644 index c02176a..0000000 --- a/test/test_session.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session import Session - -class TestSession(unittest.TestCase): - """Session unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Session: - """Test Session - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Session` - """ - model = Session() - if include_optional: - return Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = null, - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ) - ) - else: - return Session( - ) - """ - - def testSession(self): - """Test Session""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session_reuse_method_tls12.py b/test/test_session_reuse_method_tls12.py deleted file mode 100644 index cba922c..0000000 --- a/test/test_session_reuse_method_tls12.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 - -class TestSessionReuseMethodTLS12(unittest.TestCase): - """SessionReuseMethodTLS12 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSessionReuseMethodTLS12(self): - """Test SessionReuseMethodTLS12""" - # inst = SessionReuseMethodTLS12() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session_reuse_method_tls13.py b/test/test_session_reuse_method_tls13.py deleted file mode 100644 index da12401..0000000 --- a/test/test_session_reuse_method_tls13.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 - -class TestSessionReuseMethodTLS13(unittest.TestCase): - """SessionReuseMethodTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSessionReuseMethodTLS13(self): - """Test SessionReuseMethodTLS13""" - # inst = SessionReuseMethodTLS13() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sessions_api.py b/test/test_sessions_api.py deleted file mode 100644 index 28b8619..0000000 --- a/test/test_sessions_api.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.sessions_api import SessionsApi - - -class TestSessionsApi(unittest.TestCase): - """SessionsApi unit test stubs""" - - def setUp(self) -> None: - self.api = SessionsApi() - - def tearDown(self) -> None: - pass - - - def test_create_session_meta(self) -> None: - """Test case for create_session_meta - - """ - pass - - def test_create_sessions(self) -> None: - """Test case for create_sessions - - """ - pass - - def test_delete_session(self) -> None: - """Test case for delete_session - - """ - pass - - def test_delete_session_meta(self) -> None: - """Test case for delete_session_meta - - """ - pass - - def test_get_config_docs(self) -> None: - """Test case for get_config_docs - - """ - pass - - def test_get_config_granular_stats(self) -> None: - """Test case for get_config_granular_stats - - """ - pass - - def test_get_config_granular_stats_filters(self) -> None: - """Test case for get_config_granular_stats_filters - - """ - pass - - def test_get_session_by_id(self) -> None: - """Test case for get_session_by_id - - """ - pass - - def test_get_session_config(self) -> None: - """Test case for get_session_config - - """ - pass - - def test_get_session_meta(self) -> None: - """Test case for get_session_meta - - """ - pass - - def test_get_session_meta_by_id(self) -> None: - """Test case for get_session_meta_by_id - - """ - pass - - def test_get_session_test(self) -> None: - """Test case for get_session_test - - """ - pass - - def test_get_sessions(self) -> None: - """Test case for get_sessions - - """ - pass - - def test_patch_session(self) -> None: - """Test case for patch_session - - """ - pass - - def test_patch_session_meta(self) -> None: - """Test case for patch_session_meta - - """ - pass - - def test_patch_session_test(self) -> None: - """Test case for patch_session_test - - """ - pass - - - - - - - - - - - def test_start_config_add_applications(self) -> None: - """Test case for start_config_add_applications - - """ - pass - - def test_start_session_config_granular_stats_default_dashboards(self) -> None: - """Test case for start_session_config_granular_stats_default_dashboards - - """ - pass - - def test_start_session_config_save(self) -> None: - """Test case for start_session_config_save - - """ - pass - - def test_start_session_load_config(self) -> None: - """Test case for start_session_load_config - - """ - pass - - def test_start_session_prepare_test(self) -> None: - """Test case for start_session_prepare_test - - """ - pass - - def test_start_session_test_end(self) -> None: - """Test case for start_session_test_end - - """ - pass - - def test_start_session_test_init(self) -> None: - """Test case for start_session_test_init - - """ - pass - - def test_start_session_touch(self) -> None: - """Test case for start_session_touch - - """ - pass - - def test_start_sessions_batch_delete(self) -> None: - """Test case for start_sessions_batch_delete - - """ - pass - - def test_update_session(self) -> None: - """Test case for update_session - - """ - pass - - def test_update_session_config(self) -> None: - """Test case for update_session_config - - """ - pass - - def test_update_session_meta(self) -> None: - """Test case for update_session_meta - - """ - pass - - def test_update_session_test(self) -> None: - """Test case for update_session_test - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_aggregation_mode_operation.py b/test/test_set_aggregation_mode_operation.py deleted file mode 100644 index 5a26a7e..0000000 --- a/test/test_set_aggregation_mode_operation.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation - -class TestSetAggregationModeOperation(unittest.TestCase): - """SetAggregationModeOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetAggregationModeOperation: - """Test SetAggregationModeOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetAggregationModeOperation` - """ - model = SetAggregationModeOperation() - if include_optional: - return SetAggregationModeOperation( - aggregated = True, - controllers = [ - cyperf.models.nodes_by_controller.NodesByController( - compute_nodes = [ - '' - ], - controller_id = '', ) - ] - ) - else: - return SetAggregationModeOperation( - ) - """ - - def testSetAggregationModeOperation(self): - """Test SetAggregationModeOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_app_operation.py b/test/test_set_app_operation.py deleted file mode 100644 index eb8b9c8..0000000 --- a/test/test_set_app_operation.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_app_operation import SetAppOperation - -class TestSetAppOperation(unittest.TestCase): - """SetAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetAppOperation: - """Test SetAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetAppOperation` - """ - model = SetAppOperation() - if include_optional: - return SetAppOperation( - app_id = '', - controllers = [ - '' - ], - force = True - ) - else: - return SetAppOperation( - ) - """ - - def testSetAppOperation(self): - """Test SetAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_dpdk_mode_operation_input.py b/test/test_set_dpdk_mode_operation_input.py deleted file mode 100644 index 511a024..0000000 --- a/test/test_set_dpdk_mode_operation_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput - -class TestSetDpdkModeOperationInput(unittest.TestCase): - """SetDpdkModeOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetDpdkModeOperationInput: - """Test SetDpdkModeOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetDpdkModeOperationInput` - """ - model = SetDpdkModeOperationInput() - if include_optional: - return SetDpdkModeOperationInput( - agent_ids = [ - '' - ], - enabled = True - ) - else: - return SetDpdkModeOperationInput( - ) - """ - - def testSetDpdkModeOperationInput(self): - """Test SetDpdkModeOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_link_state_operation.py b/test/test_set_link_state_operation.py deleted file mode 100644 index 3be18a3..0000000 --- a/test/test_set_link_state_operation.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_link_state_operation import SetLinkStateOperation - -class TestSetLinkStateOperation(unittest.TestCase): - """SetLinkStateOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetLinkStateOperation: - """Test SetLinkStateOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetLinkStateOperation` - """ - model = SetLinkStateOperation() - if include_optional: - return SetLinkStateOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ], - link = 'DOWN' - ) - else: - return SetLinkStateOperation( - ) - """ - - def testSetLinkStateOperation(self): - """Test SetLinkStateOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_ntp_operation_input.py b/test/test_set_ntp_operation_input.py deleted file mode 100644 index f30d79f..0000000 --- a/test/test_set_ntp_operation_input.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_ntp_operation_input import SetNtpOperationInput - -class TestSetNtpOperationInput(unittest.TestCase): - """SetNtpOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetNtpOperationInput: - """Test SetNtpOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetNtpOperationInput` - """ - model = SetNtpOperationInput() - if include_optional: - return SetNtpOperationInput( - agent_ids = [ - '' - ], - servers = [ - '' - ] - ) - else: - return SetNtpOperationInput( - ) - """ - - def testSetNtpOperationInput(self): - """Test SetNtpOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_simulated_id_p.py b/test/test_simulated_id_p.py deleted file mode 100644 index 2eee503..0000000 --- a/test/test_simulated_id_p.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.simulated_id_p import SimulatedIdP - -class TestSimulatedIdP(unittest.TestCase): - """SimulatedIdP unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimulatedIdP: - """Test SimulatedIdP - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SimulatedIdP` - """ - model = SimulatedIdP() - if include_optional: - return SimulatedIdP( - assertion_signature = True, - audience_uri = '', - cert_config = cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ), - name_id_format = 'emailAddress', - response_signature = True, - signature_algorithm = 'SHA256_SIGN', - single_sign_on_url = '', - xml_metadata = [ - 'YQ==' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return SimulatedIdP( - assertion_signature = True, - audience_uri = '', - name_id_format = 'emailAddress', - response_signature = True, - single_sign_on_url = '', - ) - """ - - def testSimulatedIdP(self): - """Test SimulatedIdP""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_snapshot.py b/test/test_snapshot.py deleted file mode 100644 index 9fff965..0000000 --- a/test/test_snapshot.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.snapshot import Snapshot - -class TestSnapshot(unittest.TestCase): - """Snapshot unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Snapshot: - """Test Snapshot - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Snapshot` - """ - model = Snapshot() - if include_optional: - return Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ] - ) - else: - return Snapshot( - ) - """ - - def testSnapshot(self): - """Test Snapshot""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_snowflake_exporter.py b/test/test_snowflake_exporter.py deleted file mode 100644 index 7875924..0000000 --- a/test/test_snowflake_exporter.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.snowflake_exporter import SnowflakeExporter - -class TestSnowflakeExporter(unittest.TestCase): - """SnowflakeExporter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SnowflakeExporter: - """Test SnowflakeExporter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SnowflakeExporter` - """ - model = SnowflakeExporter() - if include_optional: - return SnowflakeExporter( - active = True, - polling_interval = 56, - profile = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - server_url = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return SnowflakeExporter( - active = True, - server_url = '', - ) - """ - - def testSnowflakeExporter(self): - """Test SnowflakeExporter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sort_body_field.py b/test/test_sort_body_field.py deleted file mode 100644 index 286e0d0..0000000 --- a/test/test_sort_body_field.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.sort_body_field import SortBodyField - -class TestSortBodyField(unittest.TestCase): - """SortBodyField unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SortBodyField: - """Test SortBodyField - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SortBodyField` - """ - model = SortBodyField() - if include_optional: - return SortBodyField( - var_field = '', - order = '' - ) - else: - return SortBodyField( - ) - """ - - def testSortBodyField(self): - """Test SortBodyField""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_specific_objective.py b/test/test_specific_objective.py deleted file mode 100644 index 6e26e9e..0000000 --- a/test/test_specific_objective.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.specific_objective import SpecificObjective - -class TestSpecificObjective(unittest.TestCase): - """SpecificObjective unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SpecificObjective: - """Test SpecificObjective - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SpecificObjective` - """ - model = SpecificObjective() - if include_optional: - return SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return SpecificObjective( - max_pending_simulated_users = '80728', - type = 'Simulated users', - unit = '', - id = '', - ) - """ - - def testSpecificObjective(self): - """Test SpecificObjective""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_agents_batch_delete_request_inner.py b/test/test_start_agents_batch_delete_request_inner.py deleted file mode 100644 index d634b29..0000000 --- a/test/test_start_agents_batch_delete_request_inner.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner - -class TestStartAgentsBatchDeleteRequestInner(unittest.TestCase): - """StartAgentsBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartAgentsBatchDeleteRequestInner: - """Test StartAgentsBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartAgentsBatchDeleteRequestInner` - """ - model = StartAgentsBatchDeleteRequestInner() - if include_optional: - return StartAgentsBatchDeleteRequestInner( - id = '' - ) - else: - return StartAgentsBatchDeleteRequestInner( - ) - """ - - def testStartAgentsBatchDeleteRequestInner(self): - """Test StartAgentsBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_batch_delete_request_inner.py b/test/test_start_batch_delete_request_inner.py deleted file mode 100644 index 6a3f5b1..0000000 --- a/test/test_start_batch_delete_request_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_batch_delete_request_inner import StartBatchDeleteRequestInner - -class TestStartBatchDeleteRequestInner(unittest.TestCase): - """StartBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartBatchDeleteRequestInner: - """Test StartBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartBatchDeleteRequestInner` - """ - model = StartBatchDeleteRequestInner() - if include_optional: - return StartBatchDeleteRequestInner( - id = '' - ) - else: - return StartBatchDeleteRequestInner( - ) - """ - - def testStartBatchDeleteRequestInner(self): - """Test StartBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_root_batch_delete_request_inner.py b/test/test_start_root_batch_delete_request_inner.py deleted file mode 100644 index fa328f2..0000000 --- a/test/test_start_root_batch_delete_request_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_root_batch_delete_request_inner import StartRootBatchDeleteRequestInner - -class TestStartRootBatchDeleteRequestInner(unittest.TestCase): - """StartRootBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartRootBatchDeleteRequestInner: - """Test StartRootBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartRootBatchDeleteRequestInner` - """ - model = StartRootBatchDeleteRequestInner() - if include_optional: - return StartRootBatchDeleteRequestInner( - id = '' - ) - else: - return StartRootBatchDeleteRequestInner( - ) - """ - - def testStartRootBatchDeleteRequestInner(self): - """Test StartRootBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stateless_stream.py b/test/test_stateless_stream.py deleted file mode 100644 index a6f22ae..0000000 --- a/test/test_stateless_stream.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stateless_stream import StatelessStream - -class TestStatelessStream(unittest.TestCase): - """StatelessStream unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StatelessStream: - """Test StatelessStream - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StatelessStream` - """ - model = StatelessStream() - if include_optional: - return StatelessStream( - client_stream_profile = cyperf.models.stream_profile.StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = null, - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56, ), - direction = 'ClientToServer', - is_flood_stream = True, - server_stream_profile = cyperf.models.stream_profile.StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = null, - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return StatelessStream( - ) - """ - - def testStatelessStream(self): - """Test StatelessStream""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_static_arp_entry.py b/test/test_static_arp_entry.py deleted file mode 100644 index c7d3f71..0000000 --- a/test/test_static_arp_entry.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.static_arp_entry import StaticARPEntry - -class TestStaticARPEntry(unittest.TestCase): - """StaticARPEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StaticARPEntry: - """Test StaticARPEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StaticARPEntry` - """ - model = StaticARPEntry() - if include_optional: - return StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '' - ) - else: - return StaticARPEntry( - static_arp_entry_name = 'YBuLd', - id = '', - ) - """ - - def testStaticARPEntry(self): - """Test StaticARPEntry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_statistics_api.py b/test/test_statistics_api.py deleted file mode 100644 index 7ffc06e..0000000 --- a/test/test_statistics_api.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.statistics_api import StatisticsApi - - -class TestStatisticsApi(unittest.TestCase): - """StatisticsApi unit test stubs""" - - def setUp(self) -> None: - self.api = StatisticsApi() - - def tearDown(self) -> None: - pass - - - def test_create_stats_plugins(self) -> None: - """Test case for create_stats_plugins - - """ - pass - - def test_delete_stats_plugin(self) -> None: - """Test case for delete_stats_plugin - - """ - pass - - def test_get_result_stat_by_id(self) -> None: - """Test case for get_result_stat_by_id - - """ - pass - - def test_get_result_stats(self) -> None: - """Test case for get_result_stats - - """ - pass - - def test_get_stats_plugins(self) -> None: - """Test case for get_stats_plugins - - """ - pass - - - def test_start_stats_plugins_ingest(self) -> None: - """Test case for start_stats_plugins_ingest - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stats_result.py b/test/test_stats_result.py deleted file mode 100644 index e1e4aa4..0000000 --- a/test/test_stats_result.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stats_result import StatsResult - -class TestStatsResult(unittest.TestCase): - """StatsResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StatsResult: - """Test StatsResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StatsResult` - """ - model = StatsResult() - if include_optional: - return StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ] - ) - else: - return StatsResult( - ) - """ - - def testStatsResult(self): - """Test StatsResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_steady_segment.py b/test/test_steady_segment.py deleted file mode 100644 index 7dcbfbb..0000000 --- a/test/test_steady_segment.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.steady_segment import SteadySegment - -class TestSteadySegment(unittest.TestCase): - """SteadySegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SteadySegment: - """Test SteadySegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SteadySegment` - """ - model = SteadySegment() - if include_optional: - return SteadySegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337 - ) - else: - return SteadySegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - objective_unit = '', - objective_value = 1.337, - ) - """ - - def testSteadySegment(self): - """Test SteadySegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_step_segment.py b/test/test_step_segment.py deleted file mode 100644 index c7c6c6f..0000000 --- a/test/test_step_segment.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.step_segment import StepSegment - -class TestStepSegment(unittest.TestCase): - """StepSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StepSegment: - """Test StepSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StepSegment` - """ - model = StepSegment() - if include_optional: - return StepSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - enabled = True, - number_of_steps = 56 - ) - else: - return StepSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - enabled = True, - number_of_steps = 56, - ) - """ - - def testStepSegment(self): - """Test StepSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_direction.py b/test/test_stream_direction.py deleted file mode 100644 index 1674185..0000000 --- a/test/test_stream_direction.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_direction import StreamDirection - -class TestStreamDirection(unittest.TestCase): - """StreamDirection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStreamDirection(self): - """Test StreamDirection""" - # inst = StreamDirection() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_payload_type.py b/test/test_stream_payload_type.py deleted file mode 100644 index 4393a67..0000000 --- a/test/test_stream_payload_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_payload_type import StreamPayloadType - -class TestStreamPayloadType(unittest.TestCase): - """StreamPayloadType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStreamPayloadType(self): - """Test StreamPayloadType""" - # inst = StreamPayloadType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_profile.py b/test/test_stream_profile.py deleted file mode 100644 index 0036cd3..0000000 --- a/test/test_stream_profile.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_profile import StreamProfile - -class TestStreamProfile(unittest.TestCase): - """StreamProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StreamProfile: - """Test StreamProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StreamProfile` - """ - model = StreamProfile() - if include_optional: - return StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = 'RANDOM', - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56 - ) - else: - return StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = 'RANDOM', - ) - """ - - def testStreamProfile(self): - """Test StreamProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_supported_group_tls13.py b/test/test_supported_group_tls13.py deleted file mode 100644 index a67e43a..0000000 --- a/test/test_supported_group_tls13.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 - -class TestSupportedGroupTLS13(unittest.TestCase): - """SupportedGroupTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSupportedGroupTLS13(self): - """Test SupportedGroupTLS13""" - # inst = SupportedGroupTLS13() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_switch_app_operation.py b/test/test_switch_app_operation.py deleted file mode 100644 index 249f93c..0000000 --- a/test/test_switch_app_operation.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.switch_app_operation import SwitchAppOperation - -class TestSwitchAppOperation(unittest.TestCase): - """SwitchAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SwitchAppOperation: - """Test SwitchAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SwitchAppOperation` - """ - model = SwitchAppOperation() - if include_optional: - return SwitchAppOperation( - app_id = '' - ) - else: - return SwitchAppOperation( - ) - """ - - def testSwitchAppOperation(self): - """Test SwitchAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_system_info.py b/test/test_system_info.py deleted file mode 100644 index 37e5280..0000000 --- a/test/test_system_info.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.system_info import SystemInfo - -class TestSystemInfo(unittest.TestCase): - """SystemInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SystemInfo: - """Test SystemInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SystemInfo` - """ - model = SystemInfo() - if include_optional: - return SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ] - ) - else: - return SystemInfo( - ) - """ - - def testSystemInfo(self): - """Test SystemInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tcp_profile.py b/test/test_tcp_profile.py deleted file mode 100644 index fd8a9b7..0000000 --- a/test/test_tcp_profile.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tcp_profile import TcpProfile - -class TestTcpProfile(unittest.TestCase): - """TcpProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TcpProfile: - """Test TcpProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TcpProfile` - """ - model = TcpProfile() - if include_optional: - return TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True - ) - else: - return TcpProfile( - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - rx_buffer = 56, - tx_buffer = 56, - ) - """ - - def testTcpProfile(self): - """Test TcpProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_info.py b/test/test_test_info.py deleted file mode 100644 index f4c4c2d..0000000 --- a/test/test_test_info.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.test_info import TestInfo - -class TestTestInfo(unittest.TestCase): - """TestInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestInfo: - """Test TestInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestInfo` - """ - model = TestInfo() - if include_optional: - return TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56 - ) - else: - return TestInfo( - ) - """ - - def testTestInfo(self): - """Test TestInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_operations_api.py b/test/test_test_operations_api.py deleted file mode 100644 index 3983674..0000000 --- a/test/test_test_operations_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.test_operations_api import TestOperationsApi - - -class TestTestOperationsApi(unittest.TestCase): - """TestOperationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = TestOperationsApi() - - def tearDown(self) -> None: - pass - - - - - - - - def test_start_test_calibrate_start(self) -> None: - """Test case for start_test_calibrate_start - - """ - pass - - def test_start_test_calibrate_stop(self) -> None: - """Test case for start_test_calibrate_stop - - """ - pass - - def test_start_test_run_abort(self) -> None: - """Test case for start_test_run_abort - - """ - pass - - def test_start_test_run_start(self) -> None: - """Test case for start_test_run_start - - """ - pass - - def test_start_test_run_stop(self) -> None: - """Test case for start_test_run_stop - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_results_api.py b/test/test_test_results_api.py deleted file mode 100644 index 7384694..0000000 --- a/test/test_test_results_api.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.test_results_api import TestResultsApi - - -class TestTestResultsApi(unittest.TestCase): - """TestResultsApi unit test stubs""" - - def setUp(self) -> None: - self.api = TestResultsApi() - - def tearDown(self) -> None: - pass - - - def test_delete_result(self) -> None: - """Test case for delete_result - - """ - pass - - def test_delete_result_file(self) -> None: - """Test case for delete_result_file - - """ - pass - - def test_get_result_by_id(self) -> None: - """Test case for get_result_by_id - - """ - pass - - def test_get_result_download_all_by_id(self) -> None: - """Test case for get_result_download_all_by_id - - """ - pass - - def test_get_result_download_result_config(self) -> None: - """Test case for get_result_download_result_config - - """ - pass - - def test_get_result_file_by_id(self) -> None: - """Test case for get_result_file_by_id - - """ - pass - - def test_get_result_file_content(self) -> None: - """Test case for get_result_file_content - - """ - pass - - def test_get_result_files(self) -> None: - """Test case for get_result_files - - """ - pass - - def test_get_results(self) -> None: - """Test case for get_results - - """ - pass - - def test_get_results_tags(self) -> None: - """Test case for get_results_tags - - """ - pass - - - - - - - def test_start_result_export_events(self) -> None: - """Test case for start_result_export_events - - """ - pass - - def test_start_result_generate_all(self) -> None: - """Test case for start_result_generate_all - - """ - pass - - def test_start_result_generate_results(self) -> None: - """Test case for start_result_generate_results - - """ - pass - - def test_start_result_load(self) -> None: - """Test case for start_result_load - - """ - pass - - def test_start_results_batch_delete(self) -> None: - """Test case for start_results_batch_delete - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_state_changed_operation.py b/test/test_test_state_changed_operation.py deleted file mode 100644 index 1b704a4..0000000 --- a/test/test_test_state_changed_operation.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.test_state_changed_operation import TestStateChangedOperation - -class TestTestStateChangedOperation(unittest.TestCase): - """TestStateChangedOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestStateChangedOperation: - """Test TestStateChangedOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestStateChangedOperation` - """ - model = TestStateChangedOperation() - if include_optional: - return TestStateChangedOperation( - message = '', - new_state = '', - old_state = '', - owner = '', - owner_id = '', - reason = '', - test_id = '', - timestamp = 56 - ) - else: - return TestStateChangedOperation( - ) - """ - - def testTestStateChangedOperation(self): - """Test TestStateChangedOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_time_value.py b/test/test_time_value.py deleted file mode 100644 index 7722e44..0000000 --- a/test/test_time_value.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.time_value import TimeValue - -class TestTimeValue(unittest.TestCase): - """TimeValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimeValue: - """Test TimeValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimeValue` - """ - model = TimeValue() - if include_optional: - return TimeValue( - now = 56 - ) - else: - return TimeValue( - ) - """ - - def testTimeValue(self): - """Test TimeValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment.py b/test/test_timeline_segment.py deleted file mode 100644 index 57e53ce..0000000 --- a/test/test_timeline_segment.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment import TimelineSegment - -class TestTimelineSegment(unittest.TestCase): - """TimelineSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegment: - """Test TimelineSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegment` - """ - model = TimelineSegment() - if include_optional: - return TimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337, - primary_objective_unit = '', - primary_objective_value = 1.337, - secondary_objective_values = [ - cyperf.models.objective_value_entry.ObjectiveValueEntry( - unit = '', - value = 1.337, - id = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - primary_objective_unit = '', - primary_objective_value = 1.337, - ) - """ - - def testTimelineSegment(self): - """Test TimelineSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment_base.py b/test/test_timeline_segment_base.py deleted file mode 100644 index fe3ec69..0000000 --- a/test/test_timeline_segment_base.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment_base import TimelineSegmentBase - -class TestTimelineSegmentBase(unittest.TestCase): - """TimelineSegmentBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegmentBase: - """Test TimelineSegmentBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegmentBase` - """ - model = TimelineSegmentBase() - if include_optional: - return TimelineSegmentBase( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '' - ) - else: - return TimelineSegmentBase( - duration = 56, - segment_type = 'SteadySegment', - id = '', - ) - """ - - def testTimelineSegmentBase(self): - """Test TimelineSegmentBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment_union.py b/test/test_timeline_segment_union.py deleted file mode 100644 index 451bd08..0000000 --- a/test/test_timeline_segment_union.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment_union import TimelineSegmentUnion - -class TestTimelineSegmentUnion(unittest.TestCase): - """TimelineSegmentUnion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegmentUnion: - """Test TimelineSegmentUnion - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegmentUnion` - """ - model = TimelineSegmentUnion() - if include_optional: - return TimelineSegmentUnion( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337, - enabled = True, - number_of_steps = 56 - ) - else: - return TimelineSegmentUnion( - duration = 56, - segment_type = 'SteadySegment', - id = '', - objective_unit = '', - objective_value = 1.337, - enabled = True, - number_of_steps = 56, - ) - """ - - def testTimelineSegmentUnion(self): - """Test TimelineSegmentUnion""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timers.py b/test/test_timers.py deleted file mode 100644 index 2ac147f..0000000 --- a/test/test_timers.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timers import Timers - -class TestTimers(unittest.TestCase): - """Timers unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Timers: - """Test Timers - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Timers` - """ - model = Timers() - if include_optional: - return Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56 - ) - else: - return Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56, - ) - """ - - def testTimers(self): - """Test Timers""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tls_profile.py b/test/test_tls_profile.py deleted file mode 100644 index 8d807fc..0000000 --- a/test/test_tls_profile.py +++ /dev/null @@ -1,420 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tls_profile import TLSProfile - -class TestTLSProfile(unittest.TestCase): - """TLSProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TLSProfile: - """Test TLSProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TLSProfile` - """ - model = TLSProfile() - if include_optional: - return TLSProfile( - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - cipher = 'ECDHE-RSA-AES256-GCM-SHA384', - cipher12 = 'ECDHE-RSA-AES256-GCM-SHA384', - cipher13 = 'AES-256-GCM-SHA384', - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = 'DISABLE', - session_reuse_method12 = 'DISABLE', - session_reuse_method13 = 'DISABLE', - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE' - ) - else: - return TLSProfile( - profile_id = '', - sni_enabled = True, - tls12_enabled = True, - version = 'NONE', - ) - """ - - def testTLSProfile(self): - """Test TLSProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_track.py b/test/test_track.py deleted file mode 100644 index b440b47..0000000 --- a/test/test_track.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.track import Track - -class TestTrack(unittest.TestCase): - """Track unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Track: - """Test Track - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Track` - """ - model = Track() - if include_optional: - return Track( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Track( - id = '', - ) - """ - - def testTrack(self): - """Test Track""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_track_type.py b/test/test_track_type.py deleted file mode 100644 index 7f080ac..0000000 --- a/test/test_track_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.track_type import TrackType - -class TestTrackType(unittest.TestCase): - """TrackType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTrackType(self): - """Test TrackType""" - # inst = TrackType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_agent_info.py b/test/test_traffic_agent_info.py deleted file mode 100644 index d3e9933..0000000 --- a/test/test_traffic_agent_info.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_agent_info import TrafficAgentInfo - -class TestTrafficAgentInfo(unittest.TestCase): - """TrafficAgentInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficAgentInfo: - """Test TrafficAgentInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficAgentInfo` - """ - model = TrafficAgentInfo() - if include_optional: - return TrafficAgentInfo( - type = '', - version = '' - ) - else: - return TrafficAgentInfo( - ) - """ - - def testTrafficAgentInfo(self): - """Test TrafficAgentInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_profile_base.py b/test/test_traffic_profile_base.py deleted file mode 100644 index 40e3173..0000000 --- a/test/test_traffic_profile_base.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_profile_base import TrafficProfileBase - -class TestTrafficProfileBase(unittest.TestCase): - """TrafficProfileBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficProfileBase: - """Test TrafficProfileBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficProfileBase` - """ - model = TrafficProfileBase() - if include_optional: - return TrafficProfileBase( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - use_all_source_ips_per_user = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TrafficProfileBase( - ) - """ - - def testTrafficProfileBase(self): - """Test TrafficProfileBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_settings.py b/test/test_traffic_settings.py deleted file mode 100644 index a3a70ed..0000000 --- a/test/test_traffic_settings.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_settings import TrafficSettings - -class TestTrafficSettings(unittest.TestCase): - """TrafficSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficSettings: - """Test TrafficSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficSettings` - """ - model = TrafficSettings() - if include_optional: - return TrafficSettings( - default_transport_profile = None, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TrafficSettings( - ) - """ - - def testTrafficSettings(self): - """Test TrafficSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py deleted file mode 100644 index e299cd7..0000000 --- a/test/test_transport_profile.py +++ /dev/null @@ -1,526 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.transport_profile import TransportProfile - -class TestTransportProfile(unittest.TestCase): - """TransportProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TransportProfile: - """Test TransportProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TransportProfile` - """ - model = TransportProfile() - if include_optional: - return TransportProfile( - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - client_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - ip_tos = 56, - rtp_profile = cyperf.models.rtp_profile.RTPProfile( - encryption_mode = null, - mos_mode = null, - profile_id = '', ), - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - server_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - vlan_prio = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - l4_profile_name = '' - ) - else: - return TransportProfile( - l4_profile_name = '', - ) - """ - - def testTransportProfile(self): - """Test TransportProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py deleted file mode 100644 index 4e9641e..0000000 --- a/test/test_transport_profile_base.py +++ /dev/null @@ -1,524 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.transport_profile_base import TransportProfileBase - -class TestTransportProfileBase(unittest.TestCase): - """TransportProfileBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TransportProfileBase: - """Test TransportProfileBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TransportProfileBase` - """ - model = TransportProfileBase() - if include_optional: - return TransportProfileBase( - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - client_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - ip_tos = 56, - rtp_profile = cyperf.models.rtp_profile.RTPProfile( - encryption_mode = null, - mos_mode = null, - profile_id = '', ), - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - server_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - vlan_prio = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TransportProfileBase( - ) - """ - - def testTransportProfileBase(self): - """Test TransportProfileBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_range.py b/test/test_tunnel_range.py deleted file mode 100644 index fadb734..0000000 --- a/test/test_tunnel_range.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_range import TunnelRange - -class TestTunnelRange(unittest.TestCase): - """TunnelRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelRange: - """Test TunnelRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelRange` - """ - model = TunnelRange() - if include_optional: - return TunnelRange( - cisco_any_connect_settings = None, - dcp_request_timeout = 56, - dns_resolver = cyperf.models.dns_resolver.DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ], ), - f5_settings = None, - fortinet_settings = None, - pangp_settings = None, - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - tunnel_establishment_timeout = 56, - vendor_type = 'CISCO_ANY_CONNECT', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelRange( - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - vendor_type = 'CISCO_ANY_CONNECT', - ) - """ - - def testTunnelRange(self): - """Test TunnelRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_settings.py b/test/test_tunnel_settings.py deleted file mode 100644 index 0bb97f3..0000000 --- a/test/test_tunnel_settings.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_settings import TunnelSettings - -class TestTunnelSettings(unittest.TestCase): - """TunnelSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelSettings: - """Test TunnelSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelSettings` - """ - model = TunnelSettings() - if include_optional: - return TunnelSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelSettings( - ) - """ - - def testTunnelSettings(self): - """Test TunnelSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_stack.py b/test/test_tunnel_stack.py deleted file mode 100644 index fc4c8ba..0000000 --- a/test/test_tunnel_stack.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_stack import TunnelStack - -class TestTunnelStack(unittest.TestCase): - """TunnelStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelStack: - """Test TunnelStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelStack` - """ - model = TunnelStack() - if include_optional: - return TunnelStack( - inner_ip_range = cyperf.models.inner_ip_range.InnerIPRange( - network_tags = [ - '' - ], ), - outer_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - tunnel_range = cyperf.models.tunnel_range.TunnelRange( - cisco_any_connect_settings = null, - dcp_request_timeout = 56, - dns_resolver = null, - f5_settings = null, - fortinet_settings = null, - pangp_settings = null, - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - tunnel_establishment_timeout = 56, - vendor_type = 'CISCO_ANY_CONNECT', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - tunnel_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelStack( - tunnel_stack_name = 'YBuLd', - id = '', - ) - """ - - def testTunnelStack(self): - """Test TunnelStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_array_v2_metadata.py b/test/test_type_array_v2_metadata.py deleted file mode 100644 index 06b7249..0000000 --- a/test/test_type_array_v2_metadata.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_array_v2_metadata import TypeArrayV2Metadata - -class TestTypeArrayV2Metadata(unittest.TestCase): - """TypeArrayV2Metadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeArrayV2Metadata: - """Test TypeArrayV2Metadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeArrayV2Metadata` - """ - model = TypeArrayV2Metadata() - if include_optional: - return TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ] - ) - else: - return TypeArrayV2Metadata( - ) - """ - - def testTypeArrayV2Metadata(self): - """Test TypeArrayV2Metadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_info_metadata.py b/test/test_type_info_metadata.py deleted file mode 100644 index 16c248c..0000000 --- a/test/test_type_info_metadata.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_info_metadata import TypeInfoMetadata - -class TestTypeInfoMetadata(unittest.TestCase): - """TypeInfoMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeInfoMetadata: - """Test TypeInfoMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeInfoMetadata` - """ - model = TypeInfoMetadata() - if include_optional: - return TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ) - ) - else: - return TypeInfoMetadata( - ) - """ - - def testTypeInfoMetadata(self): - """Test TypeInfoMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_int_metadata.py b/test/test_type_int_metadata.py deleted file mode 100644 index 2b800c6..0000000 --- a/test/test_type_int_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_int_metadata import TypeIntMetadata - -class TestTypeIntMetadata(unittest.TestCase): - """TypeIntMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeIntMetadata: - """Test TypeIntMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeIntMetadata` - """ - model = TypeIntMetadata() - if include_optional: - return TypeIntMetadata( - max_value = 56, - min_value = 56 - ) - else: - return TypeIntMetadata( - ) - """ - - def testTypeIntMetadata(self): - """Test TypeIntMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_media_metadata.py b/test/test_type_media_metadata.py deleted file mode 100644 index d9cbce2..0000000 --- a/test/test_type_media_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_media_metadata import TypeMediaMetadata - -class TestTypeMediaMetadata(unittest.TestCase): - """TypeMediaMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeMediaMetadata: - """Test TypeMediaMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeMediaMetadata` - """ - model = TypeMediaMetadata() - if include_optional: - return TypeMediaMetadata( - track_id = '', - track_type = '' - ) - else: - return TypeMediaMetadata( - ) - """ - - def testTypeMediaMetadata(self): - """Test TypeMediaMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_string_metadata.py b/test/test_type_string_metadata.py deleted file mode 100644 index 91468e1..0000000 --- a/test/test_type_string_metadata.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_string_metadata import TypeStringMetadata - -class TestTypeStringMetadata(unittest.TestCase): - """TypeStringMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeStringMetadata: - """Test TypeStringMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeStringMetadata` - """ - model = TypeStringMetadata() - if include_optional: - return TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56 - ) - else: - return TypeStringMetadata( - ) - """ - - def testTypeStringMetadata(self): - """Test TypeStringMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_udp_profile.py b/test/test_udp_profile.py deleted file mode 100644 index a68e473..0000000 --- a/test/test_udp_profile.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.udp_profile import UdpProfile - -class TestUdpProfile(unittest.TestCase): - """UdpProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UdpProfile: - """Test UdpProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UdpProfile` - """ - model = UdpProfile() - if include_optional: - return UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56 - ) - else: - return UdpProfile( - ) - """ - - def testUdpProfile(self): - """Test UdpProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_network_mapping.py b/test/test_update_network_mapping.py deleted file mode 100644 index ca2dc09..0000000 --- a/test/test_update_network_mapping.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.update_network_mapping import UpdateNetworkMapping - -class TestUpdateNetworkMapping(unittest.TestCase): - """UpdateNetworkMapping unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdateNetworkMapping: - """Test UpdateNetworkMapping - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdateNetworkMapping` - """ - model = UpdateNetworkMapping() - if include_optional: - return UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ] - ) - else: - return UpdateNetworkMapping( - ) - """ - - def testUpdateNetworkMapping(self): - """Test UpdateNetworkMapping""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_port_tags_operation.py b/test/test_update_port_tags_operation.py deleted file mode 100644 index 54d34b9..0000000 --- a/test/test_update_port_tags_operation.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation - -class TestUpdatePortTagsOperation(unittest.TestCase): - """UpdatePortTagsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdatePortTagsOperation: - """Test UpdatePortTagsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdatePortTagsOperation` - """ - model = UpdatePortTagsOperation() - if include_optional: - return UpdatePortTagsOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ], - tags_to_add = [ - '' - ], - tags_to_remove = [ - '' - ] - ) - else: - return UpdatePortTagsOperation( - ) - """ - - def testUpdatePortTagsOperation(self): - """Test UpdatePortTagsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_utils_api.py b/test/test_utils_api.py deleted file mode 100644 index 1e32d81..0000000 --- a/test/test_utils_api.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.utils_api import UtilsApi - - -class TestUtilsApi(unittest.TestCase): - """UtilsApi unit test stubs""" - - def setUp(self) -> None: - self.api = UtilsApi() - - def tearDown(self) -> None: - pass - - - def test_check_eulas(self) -> None: - """Test case for check_eulas - - Check if all EULAs are accepted - """ - pass - - def test_get_cert_manager_certificate(self) -> None: - """Test case for get_cert_manager_certificate - - """ - pass - - def test_get_disk_usage(self) -> None: - """Test case for get_disk_usage - - """ - pass - - def test_get_disk_usage_consumer_by_id(self) -> None: - """Test case for get_disk_usage_consumer_by_id - - """ - pass - - def test_get_disk_usage_consumers(self) -> None: - """Test case for get_disk_usage_consumers - - """ - pass - - def test_get_docs(self) -> None: - """Test case for get_docs - - """ - pass - - def test_get_docs_json(self) -> None: - """Test case for get_docs_json - - """ - pass - - def test_get_docs_yaml(self) -> None: - """Test case for get_docs_yaml - - """ - pass - - def test_get_eula(self) -> None: - """Test case for get_eula - - Retrieve EULA detail - """ - pass - - def test_get_log_config(self) -> None: - """Test case for get_log_config - - """ - pass - - def test_get_time(self) -> None: - """Test case for get_time - - """ - pass - - def test_list_eulas(self) -> None: - """Test case for list_eulas - - list of EULAs - """ - pass - - - - - - - - - def test_post_eula(self) -> None: - """Test case for post_eula - - Update properties an EULA - """ - pass - - def test_start_cert_manager_generate(self) -> None: - """Test case for start_cert_manager_generate - - """ - pass - - def test_start_cert_manager_upload(self) -> None: - """Test case for start_cert_manager_upload - - """ - pass - - def test_start_disk_usage_cleanup_diagnostics(self) -> None: - """Test case for start_disk_usage_cleanup_diagnostics - - """ - pass - - def test_start_disk_usage_cleanup_logs(self) -> None: - """Test case for start_disk_usage_cleanup_logs - - """ - pass - - def test_start_disk_usage_cleanup_migration(self) -> None: - """Test case for start_disk_usage_cleanup_migration - - """ - pass - - def test_start_disk_usage_cleanup_notifications(self) -> None: - """Test case for start_disk_usage_cleanup_notifications - - """ - pass - - def test_start_disk_usage_cleanup_results(self) -> None: - """Test case for start_disk_usage_cleanup_results - - """ - pass - - def test_update_log_config(self) -> None: - """Test case for update_log_config - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_validation_message.py b/test/test_validation_message.py deleted file mode 100644 index ed38104..0000000 --- a/test/test_validation_message.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.validation_message import ValidationMessage - -class TestValidationMessage(unittest.TestCase): - """ValidationMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ValidationMessage: - """Test ValidationMessage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ValidationMessage` - """ - model = ValidationMessage() - if include_optional: - return ValidationMessage( - message = '', - severity = 'WARNING' - ) - else: - return ValidationMessage( - message = '', - severity = 'WARNING', - ) - """ - - def testValidationMessage(self): - """Test ValidationMessage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_version.py b/test/test_version.py deleted file mode 100644 index e2b6089..0000000 --- a/test/test_version.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.version import Version - -class TestVersion(unittest.TestCase): - """Version unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Version: - """Test Version - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Version` - """ - model = Version() - if include_optional: - return Version( - config_service_version = '', - data_model_version = '' - ) - else: - return Version( - ) - """ - - def testVersion(self): - """Test Version""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vlan_range.py b/test/test_vlan_range.py deleted file mode 100644 index ddc7df5..0000000 --- a/test/test_vlan_range.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vlan_range import VLANRange - -class TestVLANRange(unittest.TestCase): - """VLANRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VLANRange: - """Test VLANRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VLANRange` - """ - model = VLANRange() - if include_optional: - return VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return VLANRange( - vlan_auto = True, - ) - """ - - def testVLANRange(self): - """Test VLANRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vx_lan_range.py b/test/test_vx_lan_range.py deleted file mode 100644 index 8511ecf..0000000 --- a/test/test_vx_lan_range.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vx_lan_range import VxLANRange - -class TestVxLANRange(unittest.TestCase): - """VxLANRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VxLANRange: - """Test VxLANRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VxLANRange` - """ - model = VxLANRange() - if include_optional: - return VxLANRange( - hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', - hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', - md2_tlvs = [ - cyperf.models.md2_tlv.Md2Tlv( - md2_class = 56, - md2_type = 56, - md2_value = 56, - id = '', ) - ], - remote_vtep_ip_local_count = 56, - remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', - total_tunnel_count = 56, - use_vx_lan_ids = True, - vx_lanid_incr = 56, - vx_lanid_per_vtep_pair_count = 56, - vx_lanid_start = 56, - vx_lan_ids = [ - cyperf.models.vx_lanid.VxLANId( - vx_lan_id = 56, - id = '', ) - ], - vx_lan_range_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return VxLANRange( - hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', - hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_local_count = 56, - remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', - total_tunnel_count = 56, - use_vx_lan_ids = True, - vx_lanid_incr = 56, - vx_lanid_per_vtep_pair_count = 56, - vx_lanid_start = 56, - vx_lan_range_name = 'YBuLd', - id = '', - ) - """ - - def testVxLANRange(self): - """Test VxLANRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vx_lan_stack.py b/test/test_vx_lan_stack.py deleted file mode 100644 index 18232fa..0000000 --- a/test/test_vx_lan_stack.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vx_lan_stack import VxLANStack - -class TestVxLANStack(unittest.TestCase): - """VxLANStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VxLANStack: - """Test VxLANStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VxLANStack` - """ - model = VxLANStack() - if include_optional: - return VxLANStack( - inner_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - outer_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - vx_lan_range = cyperf.models.vx_lan_range.VxLANRange( - hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', - hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', - md2_tlvs = [ - cyperf.models.md2_tlv.Md2Tlv( - md2_class = 56, - md2_type = 56, - md2_value = 56, - id = '', ) - ], - remote_vtep_ip_local_count = 56, - remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', - total_tunnel_count = 56, - use_vx_lan_ids = True, - vx_lanid_incr = 56, - vx_lanid_per_vtep_pair_count = 56, - vx_lanid_start = 56, - vx_lan_ids = [ - cyperf.models.vx_lanid.VxLANId( - vx_lan_id = 56, - id = '', ) - ], - vx_lan_range_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - vx_lan_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return VxLANStack( - vx_lan_stack_name = 'YBuLd', - id = '', - ) - """ - - def testVxLANStack(self): - """Test VxLANStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vx_lanid.py b/test/test_vx_lanid.py deleted file mode 100644 index 9e71968..0000000 --- a/test/test_vx_lanid.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vx_lanid import VxLANId - -class TestVxLANId(unittest.TestCase): - """VxLANId unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VxLANId: - """Test VxLANId - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VxLANId` - """ - model = VxLANId() - if include_optional: - return VxLANId( - vx_lan_id = 56, - id = '' - ) - else: - return VxLANId( - vx_lan_id = 56, - id = '', - ) - """ - - def testVxLANId(self): - """Test VxLANId""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() From 5a933d4eb149b0327b59619b288300813d31cc6a Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 19 Feb 2026 07:51:25 -0700 Subject: [PATCH 17/20] Pull request #57: ISGAPPSEC2-36897 added wrapper support for prisma airs and model armor (wrapper) Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-36897-wrapper-integrate-model-armor-and-prisma-airs-params to main Squashed commit of the following: commit a5d6d9b7c606758389de6cc0bc4dbcaf8af88701 Author: iustmitu Date: Wed Feb 18 15:59:43 2026 +0200 regenerated wrapper commit 2f2dce98568d02becb495345be221ae811656ba2 Author: iustmitu Date: Wed Feb 18 15:49:54 2026 +0200 model armor and prisma airs utils methods --- cyperf/utils.py | 130 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 129 insertions(+), 1 deletion(-) diff --git a/cyperf/utils.py b/cyperf/utils.py index 3d09251..07e342e 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -350,7 +350,135 @@ def format_stats_dict_as_table(self, stats_dict={}): lines = ['|'.join([f'{val:^{col_width}}' for val, col_width in zip(item, col_widths)]) for item in zip(*stats_dict.values())] return [line_delim, header, line_delim] + lines + [line_delim] - + + def set_prisma_airs_params(self, session, pan_auth_token, airs_profile_name = None, airs_profile_id = None): + # Update Attacks + prisma_airs_attacks_found = False + try: + attack_profiles = session.config.config.attack_profiles + if not attack_profiles: + raise ValueError("No attack profiles found in the session configuration.") + for attack in attack_profiles[0].attacks: + if "Prisma AIRS" not in attack.name: + continue + for track in attack.tracks: + for action in track.actions: + for param in action.params: + if param.name == "PAN auth token": + prisma_airs_attacks_found = True + param.value = pan_auth_token + print(f"Updated PAN auth token for attack: {attack.name}") + elif param.name == "AIRS Profile Name" and airs_profile_name: + param.value = airs_profile_name + print(f"Updated AIRS Profile Name for attack: {attack.name}") + elif param.name == "AIRS Profile ID" and airs_profile_id: + param.value = airs_profile_id + print(f"Updated AIRS Profile ID for attack: {attack.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Prisma AIRS params: {e}") + except Exception as e: + print(f"Unexpected error while setting Prisma AIRS params: {e}") + if not prisma_airs_attacks_found: + print("No Prisma AIRS Attacks found in the provided session.") + + # Update Applications + prisma_airs_applications_found = False + try: + traffic_profiles = session.config.config.traffic_profiles + if not traffic_profiles: + raise ValueError("No application profiles found in the session configuration.") + for application in traffic_profiles[0].applications: + if "Prisma AIRS" not in application.name: + continue + for track in application.tracks: + for action in track.actions: + for param in action.params: + if param.name == "PAN Auth Token": + prisma_airs_applications_found = True + param.value = pan_auth_token + print(f"Updated PAN auth token for Application: {application.name}") + elif param.name == "AIRS Profile Name" and airs_profile_name: + param.value = airs_profile_name + print(f"Updated AIRS Profile Name for Application: {application.name}") + elif param.name == "AIRS Profile ID" and airs_profile_id: + param.value = airs_profile_id + print(f"Updated AIRS Profile ID for Application: {application.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Prisma AIRS params: {e}") + except Exception as e: + print(f"Unexpected error while setting Prisma AIRS params: {e}") + if not prisma_airs_applications_found: + print("No Prisma AIRS Applications found in the provided session.") + + def set_model_armor_params(self, session, template_id, location, project_id, access_token): + # Update Attacks + model_armor_attacks_found = False + try: + attack_profiles = session.config.config.attack_profiles + if not attack_profiles: + raise ValueError("No attack profiles found in the session configuration.") + for attack in attack_profiles[0].attacks: + if "Model Armor" not in attack.name: + continue + for track in attack.tracks: + for action in track.actions: + params = action.params + for param in params: + if param.name == "Template ID": + model_armor_attacks_found = True + param.value = template_id + print(f"Updated Template ID for attack: {attack.name}") + elif param.name == "Project ID": + param.value = project_id + print(f"Updated Project ID for attack: {attack.name}") + elif param.name == "Location": + param.value = location + print(f"Updated Location for attack: {attack.name}") + elif param.name == "Access Token": + param.value = access_token + print(f"Updated Access Token for attack: {attack.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Model Armor params: {e}") + except Exception as e: + print(f"Unexpected error while setting Model Armor params: {e}") + if not model_armor_attacks_found: + print("No Model Armor Attacks found in the provided session.") + + # Update Applications + model_armor_applications_found = False + try: + traffic_profiles = session.config.config.traffic_profiles + if not traffic_profiles: + raise ValueError("No application profiles found in the session configuration.") + for application in traffic_profiles[0].applications: + if "Model Armor" not in application.name: + continue + for track in application.tracks: + for action in track.actions: + for param in action.params: + if param.name == "Template ID": + model_armor_applications_found = True + param.value = template_id + print(f"Updated Template ID for Application: {application.name}") + elif param.name == "Project ID": + param.value = project_id + print(f"Updated Project ID for Application: {application.name}") + elif param.name == "Location": + param.value = location + print(f"Updated Location for Application: {application.name}") + elif param.name == "Access Token": + param.value = access_token + print(f"Updated Access Token for Application: {application.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Model Armor params: {e}") + except Exception as e: + print(f"Unexpected error while setting Model Armor params: {e}") + if not model_armor_applications_found: + print("No Model Armor Applications found in the provided session.") def parse_cli_options(extra_options=[]): """Can be used to get parameters from the CLI or env vars that are broadly useful for CLI tests""" From fe6a712ca48172f955f748fd7767f065534970ea Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Fri, 13 Mar 2026 07:08:28 -0600 Subject: [PATCH 18/20] Pull request #59: fix version format Merge in ISGAPPSEC/cyperf-api-wrapper from fix-cyperf-new-version-format to release/26.0.0 Squashed commit of the following: commit d2bdad3c56c4101213e3b6a79be6671384eb8df1 Author: iustmitu Date: Fri Mar 13 14:44:41 2026 +0200 deleted python 3.7 dependencies commit f254f9fa59cfa6b3f9ef167af999575d4ba142ab Author: iustmitu Date: Fri Mar 13 14:29:36 2026 +0200 fix version format --- .gitlab-ci.yml | 3 --- jenkins/JenkinsFile | 6 +++--- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57724cd..17c1f15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,9 +14,6 @@ stages: - pip install -r test-requirements.txt - pytest --cov=cyperf -pytest-3.7: - extends: .pytest - image: python:3.7-alpine pytest-3.8: extends: .pytest image: python:3.8-alpine diff --git a/jenkins/JenkinsFile b/jenkins/JenkinsFile index bc0fd6c..3f7e4e3 100644 --- a/jenkins/JenkinsFile +++ b/jenkins/JenkinsFile @@ -38,16 +38,16 @@ def do_publish = params.publish_pypi @NonCPS boolean setDisplayVersion(publish) { branch_sanitized = branch.replaceAll('-', '.').replaceAll('_', '.').replaceAll('%2F', '-') - def matcher = Pattern.compile("^release%2F([0-9]+)\\.([0-9]+)\$").matcher(branch) + def matcher = Pattern.compile("^release%2F([0-9]+)\\.([0-9]+)\\.([0-9]+)\$").matcher(branch) if (matcher.matches()) { build_number = "dev${env.BUILD_NUMBER}+${branch_sanitized}" if (publish) { build_number = "${env.BUILD_NUMBER}" } - env.PIP_VERSION = "${matcher.group(1).toString()}.${matcher.group(2).toString()}.${build_number}" + env.PIP_VERSION = "${matcher.group(1).toString()}.${matcher.group(2).toString()}.${build_number}" env.DOCKER_VERSION = env.PIP_VERSION.replaceAll('\\+', '-') } else if (branch.startsWith("release%2F")) { - throw new Exception("Unexpected release branch format ${branch}, expected 'release%2fNUMBER.NUMBER'") + throw new Exception("Unexpected release branch format ${branch}, expected 'release%2fNUMBER.NUMBER.NUMBER'") } else { env.PIP_VERSION = "0.0.dev${env.BUILD_NUMBER}+${branch_sanitized}" env.DOCKER_VERSION = env.PIP_VERSION.replaceAll('\\+', '-') diff --git a/pyproject.toml b/pyproject.toml index 829fad5..8c74be2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "CyPerf Application API"] include = ["cyperf/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" From a00737f7e19fe20b263a4ed728eeae70b222dff2 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 25 Mar 2026 08:32:13 -0600 Subject: [PATCH 19/20] Pull request #63: (CW) - patch wrapper release branch Merge in ISGAPPSEC/cyperf-api-wrapper from patch-wrapper-with-prompts-per-second to release/26.0.0 Squashed commit of the following: commit 2201585a5cf638a700dda5d8e3b88fb03da82ed6 Author: iustmitu Date: Wed Mar 25 16:31:30 2026 +0200 python 3.7 -> python 3.8 commit 74b63d5da77bef8b839feb37d72f2eca891a41fc Author: iustmitu Date: Wed Mar 25 15:09:39 2026 +0200 regenerated wrapper --- README.md | 11 +- cyperf/__init__.py | 4 +- cyperf/api/agents_api.py | 308 +- cyperf/api/application_resources_api.py | 3206 ++++++++++++----- cyperf/dynamic_models/__init__.py | 4 +- cyperf/models/__init__.py | 4 +- cyperf/models/command_metadata.py | 4 +- cyperf/models/http_profile.py | 4 +- cyperf/models/objective_type.py | 1 + cyperf/models/set_controller_app_operation.py | 97 + cyperf/models/set_nodes_app_operation.py | 105 + cyperf/models/system_info.py | 8 +- cyperf/models/test_info.py | 10 +- cyperf/models/test_usage.py | 95 + docs/AgentsApi.md | 89 +- docs/ApplicationResourcesApi.md | 471 +++ docs/CommandMetadata.md | 1 - docs/HTTPProfile.md | 1 - docs/ObjectiveType.md | 2 + docs/SetControllerAppOperation.md | 31 + docs/SetNodesAppOperation.md | 31 + docs/SystemInfo.md | 1 + docs/TestInfo.md | 1 + docs/TestUsage.md | 30 + 24 files changed, 3673 insertions(+), 846 deletions(-) create mode 100644 cyperf/models/set_controller_app_operation.py create mode 100644 cyperf/models/set_nodes_app_operation.py create mode 100644 cyperf/models/test_usage.py create mode 100644 docs/SetControllerAppOperation.md create mode 100644 docs/SetNodesAppOperation.md create mode 100644 docs/TestUsage.md diff --git a/README.md b/README.md index 7fbfce4..54a6144 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ Class | Method | HTTP request | Description *AgentsApi* | [**start_controllers_reboot_port**](docs/AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | *AgentsApi* | [**start_controllers_set_app**](docs/AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | *AgentsApi* | [**start_controllers_set_node_aggregation**](docs/AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | +*AgentsApi* | [**start_controllers_set_node_app**](docs/AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | *AgentsApi* | [**start_controllers_set_port_link_state**](docs/AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | *AgentsApi* | [**start_controllers_update_port_tags**](docs/AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | *ApplicationResourcesApi* | [**delete_resources_capture**](docs/ApplicationResourcesApi.md#delete_resources_capture) | **DELETE** /api/v2/resources/captures/{captureId} | @@ -117,6 +118,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**delete_resources_tls_dh**](docs/ApplicationResourcesApi.md#delete_resources_tls_dh) | **DELETE** /api/v2/resources/tls-dhs/{tlsDhId} | *ApplicationResourcesApi* | [**delete_resources_tls_key**](docs/ApplicationResourcesApi.md#delete_resources_tls_key) | **DELETE** /api/v2/resources/tls-keys/{tlsKeyId} | *ApplicationResourcesApi* | [**delete_resources_user_defined_app**](docs/ApplicationResourcesApi.md#delete_resources_user_defined_app) | **DELETE** /api/v2/resources/user-defined-apps/{userDefinedAppId} | +*ApplicationResourcesApi* | [**delete_resources_voice_custom_flow**](docs/ApplicationResourcesApi.md#delete_resources_voice_custom_flow) | **DELETE** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | *ApplicationResourcesApi* | [**get_capture_flows**](docs/ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | *ApplicationResourcesApi* | [**get_flow_exchanges**](docs/ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | *ApplicationResourcesApi* | [**get_resources_app_by_id**](docs/ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | @@ -205,6 +207,10 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_tls_keys_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_user_defined_apps**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | *ApplicationResourcesApi* | [**get_resources_user_defined_apps_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flow_by_id**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flow_by_id) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flow_content_file**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flow_content_file) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId}/contentFile | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flows**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flows) | **GET** /api/v2/resources/voice-custom-flows | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flows_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flows_upload_file_result) | **GET** /api/v2/resources/voice-custom-flows/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**start_resources_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | *ApplicationResourcesApi* | [**start_resources_captures_encrypted_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | @@ -237,6 +243,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} | @@ -709,9 +716,10 @@ Class | Method | HTTP request | Description - [SessionReuseMethodTLS12](docs/SessionReuseMethodTLS12.md) - [SessionReuseMethodTLS13](docs/SessionReuseMethodTLS13.md) - [SetAggregationModeOperation](docs/SetAggregationModeOperation.md) - - [SetAppOperation](docs/SetAppOperation.md) + - [SetControllerAppOperation](docs/SetControllerAppOperation.md) - [SetDpdkModeOperationInput](docs/SetDpdkModeOperationInput.md) - [SetLinkStateOperation](docs/SetLinkStateOperation.md) + - [SetNodesAppOperation](docs/SetNodesAppOperation.md) - [SetNtpOperationInput](docs/SetNtpOperationInput.md) - [SimulatedIdP](docs/SimulatedIdP.md) - [Snapshot](docs/Snapshot.md) @@ -733,6 +741,7 @@ Class | Method | HTTP request | Description - [TcpProfile](docs/TcpProfile.md) - [TestInfo](docs/TestInfo.md) - [TestStateChangedOperation](docs/TestStateChangedOperation.md) + - [TestUsage](docs/TestUsage.md) - [TimeValue](docs/TimeValue.md) - [TimelineSegment](docs/TimelineSegment.md) - [TimelineSegmentBase](docs/TimelineSegmentBase.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 62104c3..2975709 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -381,9 +381,10 @@ from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot @@ -405,6 +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 diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 03005f5..58b5f49 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -36,9 +36,10 @@ from cyperf.models.release_operation_input import ReleaseOperationInput from cyperf.models.reserve_operation_input import ReserveOperationInput from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation @@ -3324,6 +3325,16 @@ def _patch_agent_serialize( + + + + + + + + + + @@ -6226,7 +6237,7 @@ def _start_controllers_reboot_port_serialize( @validate_call def start_controllers_set_app( self, - set_app_operation: Optional[SetAppOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6244,8 +6255,8 @@ def start_controllers_set_app( Set the active app of the controllers. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6269,7 +6280,7 @@ def start_controllers_set_app( """ # noqa: E501 _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6289,7 +6300,7 @@ def start_controllers_set_app( @validate_call def start_controllers_set_app_with_http_info( self, - set_app_operation: Optional[SetAppOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6307,8 +6318,8 @@ def start_controllers_set_app_with_http_info( Set the active app of the controllers. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6332,7 +6343,7 @@ def start_controllers_set_app_with_http_info( """ # noqa: E501 _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6352,7 +6363,7 @@ def start_controllers_set_app_with_http_info( @validate_call def start_controllers_set_app_without_preload_content( self, - set_app_operation: Optional[SetAppOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6370,8 +6381,8 @@ def start_controllers_set_app_without_preload_content( Set the active app of the controllers. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6395,7 +6406,7 @@ def start_controllers_set_app_without_preload_content( """ # noqa: E501 _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6414,7 +6425,7 @@ def start_controllers_set_app_without_preload_content( def _start_controllers_set_app_serialize( self, - set_app_operation, + set_controller_app_operation, _request_auth, _content_type, _headers, @@ -6438,8 +6449,8 @@ def _start_controllers_set_app_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_app_operation is not None: - _body_params = set_app_operation + if set_controller_app_operation is not None: + _body_params = set_controller_app_operation # set the HTTP header `Accept` @@ -6753,6 +6764,271 @@ def _start_controllers_set_node_aggregation_serialize( + @validate_call + def start_controllers_set_node_app( + self, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_controllers_set_node_app + + Set the active app of the compute nodes. + + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_set_node_app_with_http_info( + self, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_controllers_set_node_app + + Set the active app of the compute nodes. + + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_set_node_app_without_preload_content( + self, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_controllers_set_node_app + + Set the active app of the compute nodes. + + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_controllers_set_node_app_serialize( + self, + set_nodes_app_operation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if set_nodes_app_operation is not None: + _body_params = set_nodes_app_operation + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/controllers/operations/set-node-app', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def start_controllers_set_port_link_state( self, diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index 26c605a..23692b0 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -4710,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)], @@ -4727,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 @@ -4759,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, @@ -4770,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( @@ -4781,11 +4775,9 @@ def get_capture_flows( @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)], @@ -4798,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 @@ -4830,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, @@ -4841,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( @@ -4852,11 +4840,9 @@ def get_capture_flows_with_http_info( @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)], @@ -4870,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 @@ -4901,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, @@ -4912,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( @@ -4922,11 +4904,9 @@ def get_capture_flows_without_preload_content( ) - 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, @@ -4946,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 @@ -4978,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, @@ -4996,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[ @@ -5014,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 @@ -5048,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, @@ -5060,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( @@ -5071,10 +5039,9 @@ def get_flow_exchanges( @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[ @@ -5089,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 @@ -5123,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, @@ -5135,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( @@ -5146,10 +5110,9 @@ def get_flow_exchanges_with_http_info( @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[ @@ -5165,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 @@ -5198,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, @@ -5210,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( @@ -5220,10 +5180,9 @@ def get_flow_exchanges_without_preload_content( ) - def _get_flow_exchanges_serialize( + def _get_capture_flows_serialize( self, capture_id, - flow_id, take, skip, _request_auth, @@ -5247,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: @@ -5280,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, @@ -5297,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)], @@ -5312,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 @@ -5341,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, @@ -5350,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( @@ -5363,9 +5329,12 @@ def get_resources_app_by_id( @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)], @@ -5378,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 @@ -5407,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, @@ -5416,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( @@ -5429,9 +5404,12 @@ def get_resources_app_by_id_with_http_info( @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)], @@ -5445,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 @@ -5473,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, @@ -5482,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( @@ -5494,9 +5478,12 @@ def get_resources_app_by_id_without_preload_content( ) - 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, @@ -5516,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 @@ -5541,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, @@ -5558,10 +5555,9 @@ def _get_resources_app_by_id_serialize( @validate_call - def get_resources_app_categories( + def get_resources_app_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, + app_id: Annotated[StrictStr, Field(description="The ID of the app.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5574,14 +5570,13 @@ def get_resources_app_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_app_categories + ) -> AppsecApp: + """get_resources_app_by_id + Get a particular CyPerf 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 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 @@ -5604,9 +5599,8 @@ def get_resources_app_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_app_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_app_by_id_serialize( + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5614,7 +5608,9 @@ def get_resources_app_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "AppsecApp", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5625,10 +5621,9 @@ def get_resources_app_categories( @validate_call - def get_resources_app_categories_with_http_info( + def get_resources_app_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, + app_id: Annotated[StrictStr, Field(description="The ID of the app.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5641,14 +5636,13 @@ def get_resources_app_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_app_categories + ) -> ApiResponse[AppsecApp]: + """get_resources_app_by_id + Get a particular CyPerf 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 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 @@ -5671,9 +5665,8 @@ def get_resources_app_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_app_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_app_by_id_serialize( + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5681,7 +5674,9 @@ def get_resources_app_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "AppsecApp", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5692,10 +5687,9 @@ def get_resources_app_categories_with_http_info( @validate_call - def get_resources_app_categories_without_preload_content( + def get_resources_app_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, + app_id: Annotated[StrictStr, Field(description="The ID of the app.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5709,13 +5703,12 @@ def get_resources_app_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_app_categories + """get_resources_app_by_id + Get a particular CyPerf 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 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 @@ -5738,9 +5731,8 @@ def get_resources_app_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_app_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_app_by_id_serialize( + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5748,7 +5740,9 @@ def get_resources_app_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "AppsecApp", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5758,10 +5752,9 @@ def get_resources_app_categories_without_preload_content( ) - def _get_resources_app_categories_serialize( + def _get_resources_app_by_id_serialize( self, - take, - skip, + app_id, _request_auth, _content_type, _headers, @@ -5781,15 +5774,9 @@ def _get_resources_app_categories_serialize( _body_params: Optional[bytes] = None # process the path parameters + if app_id is not None: + _path_params['appId'] = app_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 @@ -5812,7 +5799,7 @@ def _get_resources_app_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/app-categories', + resource_path='/api/v2/resources/apps/{appId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5829,9 +5816,10 @@ def _get_resources_app_categories_serialize( @validate_call - def get_resources_application_type_by_id( + def get_resources_app_categories( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5844,13 +5832,14 @@ def get_resources_application_type_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApplicationType: - """get_resources_application_type_by_id + ) -> List[Category]: + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5873,8 +5862,9 @@ def get_resources_application_type_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5882,7 +5872,7 @@ def get_resources_application_type_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5893,9 +5883,10 @@ def get_resources_application_type_by_id( @validate_call - def get_resources_application_type_by_id_with_http_info( + def get_resources_app_categories_with_http_info( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5908,13 +5899,14 @@ def get_resources_application_type_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ApplicationType]: - """get_resources_application_type_by_id + ) -> ApiResponse[List[Category]]: + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5937,8 +5929,9 @@ def get_resources_application_type_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5946,7 +5939,7 @@ def get_resources_application_type_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5957,9 +5950,10 @@ def get_resources_application_type_by_id_with_http_info( @validate_call - def get_resources_application_type_by_id_without_preload_content( + def get_resources_app_categories_without_preload_content( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5973,12 +5967,13 @@ def get_resources_application_type_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_application_type_by_id + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6001,8 +5996,9 @@ def get_resources_application_type_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6010,7 +6006,7 @@ def get_resources_application_type_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6020,9 +6016,10 @@ def get_resources_application_type_by_id_without_preload_content( ) - def _get_resources_application_type_by_id_serialize( + def _get_resources_app_categories_serialize( self, - application_type_id, + take, + skip, _request_auth, _content_type, _headers, @@ -6042,9 +6039,15 @@ def _get_resources_application_type_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if application_type_id is not None: - _path_params['applicationTypeId'] = application_type_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -6067,7 +6070,7 @@ def _get_resources_application_type_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/application-types/{applicationTypeId}', + resource_path='/api/v2/resources/app-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6084,10 +6087,9 @@ def _get_resources_application_type_by_id_serialize( @validate_call - def get_resources_application_types( + def get_resources_application_type_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6100,15 +6102,13 @@ def get_resources_application_types( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApplicationTypes200Response: - """get_resources_application_types + ) -> ApplicationType: + """get_resources_application_type_by_id - Get all the available applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6131,9 +6131,8 @@ def get_resources_application_types( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( - take=take, - skip=skip, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6141,7 +6140,7 @@ def get_resources_application_types( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6152,10 +6151,9 @@ def get_resources_application_types( @validate_call - def get_resources_application_types_with_http_info( + def get_resources_application_type_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6168,15 +6166,275 @@ def get_resources_application_types_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApplicationTypes200Response]: - """get_resources_application_types + ) -> ApiResponse[ApplicationType]: + """get_resources_application_type_by_id - Get all the available applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_application_type_by_id_without_preload_content( + 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, + ) -> RESTResponseType: + """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=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_application_type_by_id_serialize( + self, + application_type_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 application_type_id is not None: + _path_params['applicationTypeId'] = application_type_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/application-types/{applicationTypeId}', + 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_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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetResourcesApplicationTypes200Response: + """get_resources_application_types + + Get all the available applications. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_types_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': "GetResourcesApplicationTypes200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_application_types_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetResourcesApplicationTypes200Response]: + """get_resources_application_types + + Get all the available applications. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23727,8 +23985,1045 @@ 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_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_by_id_with_http_info( + self, + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ApplicationType]: + """get_resources_strike_by_id + + Get a particular strike. + + :param strike_id: The ID of the strike. (required) + :type strike_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_by_id_without_preload_content( + self, + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_strike_by_id + + Get a particular strike. + + :param strike_id: The ID of the strike. (required) + :type strike_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_strike_by_id_serialize( + self, + strike_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if strike_id is not None: + _path_params['strikeId'] = strike_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/strikes/{strikeId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_strike_categories( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[Category]: + """get_resources_strike_categories + + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_categories_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Category]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_categories_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[Category]]: + """get_resources_strike_categories + + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_categories_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Category]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_categories_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_strike_categories + + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_categories_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Category]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_strike_categories_serialize( + self, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/strike-categories', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_strikes( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetResourcesApplicationTypes200Response: + """get_resources_strikes + + Get all the available strikes. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strikes_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetResourcesApplicationTypes200Response]: + """get_resources_strikes + + Get all the available strikes. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strikes_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_strikes + + Get all the available strikes. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_strikes_serialize( + self, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + compatible_with, + categories, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if compatible_with is not None: + + _query_params.append(('compatibleWith', compatible_with)) + + if categories is not None: + + _query_params.append(('categories', categories)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/strikes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificate_by_id( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GenericFile: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_by_id_with_http_info( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GenericFile]: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_by_id_without_preload_content( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23736,9 +25031,138 @@ 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( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_tls_certificate_by_id_serialize( + self, + tls_certificate_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tls_certificate_id is not None: + _path_params['tlsCertificateId'] = tls_certificate_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificate_content_file( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bytearray: + """get_resources_tls_certificate_content_file + + Get the content of a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, @@ -23747,9 +25171,9 @@ def get_resources_strike_by_id( @validate_call - def get_resources_strike_by_id_with_http_info( + def get_resources_tls_certificate_content_file_with_http_info( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23762,13 +25186,13 @@ def get_resources_strike_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ApplicationType]: - """get_resources_strike_by_id + ) -> ApiResponse[bytearray]: + """get_resources_tls_certificate_content_file - Get a particular strike. + Get the content of a particular TLS certificate file. - :param strike_id: The ID of the strike. (required) - :type strike_id: str + :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 @@ -23791,8 +25215,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_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23800,8 +25224,8 @@ def get_resources_strike_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23811,9 +25235,9 @@ def get_resources_strike_by_id_with_http_info( @validate_call - def get_resources_strike_by_id_without_preload_content( + def get_resources_tls_certificate_content_file_without_preload_content( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23827,12 +25251,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_tls_certificate_content_file - Get a particular strike. + Get the content of a particular TLS certificate file. - :param strike_id: The ID of the strike. (required) - :type strike_id: str + :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 @@ -23855,8 +25279,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_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23864,8 +25288,8 @@ def get_resources_strike_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23874,9 +25298,9 @@ def get_resources_strike_by_id_without_preload_content( ) - def _get_resources_strike_by_id_serialize( + def _get_resources_tls_certificate_content_file_serialize( self, - strike_id, + tls_certificate_id, _request_auth, _content_type, _headers, @@ -23896,8 +25320,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 tls_certificate_id is not None: + _path_params['tlsCertificateId'] = tls_certificate_id # process the query parameters # process the header parameters # process the form parameters @@ -23908,6 +25332,7 @@ def _get_resources_strike_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -23921,7 +25346,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/tls-certificates/{tlsCertificateId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23938,7 +25363,7 @@ def _get_resources_strike_by_id_serialize( @validate_call - def get_resources_strike_categories( + def get_resources_tls_certificates( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -23954,9 +25379,10 @@ def get_resources_strike_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Category]: - """get_resources_strike_categories + ) -> GetResourcesCertificates200Response: + """get_resources_tls_certificates + Get all the available TLS certificate files :param take: The number of search results to return :type take: int @@ -23984,7 +25410,7 @@ def get_resources_strike_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( + _param = self._get_resources_tls_certificates_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -23994,7 +25420,8 @@ def get_resources_strike_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24005,7 +25432,7 @@ def get_resources_strike_categories( @validate_call - def get_resources_strike_categories_with_http_info( + def get_resources_tls_certificates_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -24021,9 +25448,10 @@ def get_resources_strike_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Category]]: - """get_resources_strike_categories + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_tls_certificates + Get all the available TLS certificate files :param take: The number of search results to return :type take: int @@ -24051,7 +25479,7 @@ def get_resources_strike_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( + _param = self._get_resources_tls_certificates_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -24061,7 +25489,8 @@ def get_resources_strike_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24072,7 +25501,7 @@ def get_resources_strike_categories_with_http_info( @validate_call - def get_resources_strike_categories_without_preload_content( + def get_resources_tls_certificates_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -24089,8 +25518,9 @@ def get_resources_strike_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_strike_categories + """get_resources_tls_certificates + Get all the available TLS certificate files :param take: The number of search results to return :type take: int @@ -24118,7 +25548,7 @@ def get_resources_strike_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( + _param = self._get_resources_tls_certificates_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -24128,7 +25558,8 @@ def get_resources_strike_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24138,7 +25569,7 @@ def get_resources_strike_categories_without_preload_content( ) - def _get_resources_strike_categories_serialize( + def _get_resources_tls_certificates_serialize( self, take, skip, @@ -24192,7 +25623,7 @@ def _get_resources_strike_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/strike-categories', + resource_path='/api/v2/resources/tls-certificates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24209,16 +25640,9 @@ def _get_resources_strike_categories_serialize( @validate_call - def get_resources_strikes( + def get_resources_tls_certificates_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24231,27 +25655,13 @@ def get_resources_strikes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApplicationTypes200Response: - """get_resources_strikes + ) -> None: + """get_resources_tls_certificates_upload_file_result - Get all the available strikes. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24274,15 +25684,8 @@ def get_resources_strikes( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24290,7 +25693,7 @@ def get_resources_strikes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': None, '400': "ErrorResponse", '500': "ErrorResponse", } @@ -24302,16 +25705,9 @@ def get_resources_strikes( @validate_call - def get_resources_strikes_with_http_info( + def get_resources_tls_certificates_upload_file_result_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24324,27 +25720,13 @@ def get_resources_strikes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApplicationTypes200Response]: - """get_resources_strikes + ) -> ApiResponse[None]: + """get_resources_tls_certificates_upload_file_result - Get all the available strikes. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24367,15 +25749,8 @@ def get_resources_strikes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24383,7 +25758,7 @@ def get_resources_strikes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': None, '400': "ErrorResponse", '500': "ErrorResponse", } @@ -24395,16 +25770,9 @@ def get_resources_strikes_with_http_info( @validate_call - def get_resources_strikes_without_preload_content( + def get_resources_tls_certificates_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24418,26 +25786,12 @@ def get_resources_strikes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_strikes + """get_resources_tls_certificates_upload_file_result - Get all the available strikes. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24460,15 +25814,8 @@ def get_resources_strikes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24476,7 +25823,7 @@ def get_resources_strikes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': None, '400': "ErrorResponse", '500': "ErrorResponse", } @@ -24487,16 +25834,9 @@ def get_resources_strikes_without_preload_content( ) - def _get_resources_strikes_serialize( + def _get_resources_tls_certificates_upload_file_result_serialize( self, - take, - skip, - search_col, - search_val, - filter_mode, - sort, - compatible_with, - categories, + upload_file_id, _request_auth, _content_type, _headers, @@ -24516,39 +25856,9 @@ def _get_resources_strikes_serialize( _body_params: Optional[bytes] = None # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - - if compatible_with is not None: - - _query_params.append(('compatibleWith', compatible_with)) - - if categories is not None: - - _query_params.append(('categories', categories)) - # process the header parameters # process the form parameters # process the body parameter @@ -24571,7 +25881,7 @@ def _get_resources_strikes_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/strikes', + resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24588,9 +25898,9 @@ def _get_resources_strikes_serialize( @validate_call - def get_resources_tls_certificate_by_id( + def get_resources_tls_dh_by_id( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24604,12 +25914,12 @@ def get_resources_tls_certificate_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_tls_certificate_by_id + """get_resources_tls_dh_by_id - Get a particular TLS certificate file. + Get a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24632,8 +25942,8 @@ def get_resources_tls_certificate_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24654,9 +25964,9 @@ def get_resources_tls_certificate_by_id( @validate_call - def get_resources_tls_certificate_by_id_with_http_info( + def get_resources_tls_dh_by_id_with_http_info( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24670,12 +25980,12 @@ def get_resources_tls_certificate_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GenericFile]: - """get_resources_tls_certificate_by_id + """get_resources_tls_dh_by_id - Get a particular TLS certificate file. + Get a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24698,8 +26008,8 @@ def get_resources_tls_certificate_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24720,9 +26030,9 @@ def get_resources_tls_certificate_by_id_with_http_info( @validate_call - def get_resources_tls_certificate_by_id_without_preload_content( + def get_resources_tls_dh_by_id_without_preload_content( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24736,12 +26046,12 @@ def get_resources_tls_certificate_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificate_by_id + """get_resources_tls_dh_by_id - Get a particular TLS certificate file. + Get a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24764,8 +26074,8 @@ def get_resources_tls_certificate_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24785,9 +26095,9 @@ def get_resources_tls_certificate_by_id_without_preload_content( ) - def _get_resources_tls_certificate_by_id_serialize( + def _get_resources_tls_dh_by_id_serialize( self, - tls_certificate_id, + tls_dh_id, _request_auth, _content_type, _headers, @@ -24807,8 +26117,8 @@ def _get_resources_tls_certificate_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_certificate_id is not None: - _path_params['tlsCertificateId'] = tls_certificate_id + if tls_dh_id is not None: + _path_params['tlsDhId'] = tls_dh_id # process the query parameters # process the header parameters # process the form parameters @@ -24832,7 +26142,7 @@ def _get_resources_tls_certificate_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}', + resource_path='/api/v2/resources/tls-dhs/{tlsDhId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24849,9 +26159,9 @@ def _get_resources_tls_certificate_by_id_serialize( @validate_call - def get_resources_tls_certificate_content_file( + def get_resources_tls_dh_content_file( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24865,12 +26175,12 @@ def get_resources_tls_certificate_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_tls_certificate_content_file + """get_resources_tls_dh_content_file - Get the content of a particular TLS certificate file. + Get the content of a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24893,8 +26203,8 @@ def get_resources_tls_certificate_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24913,9 +26223,9 @@ def get_resources_tls_certificate_content_file( @validate_call - def get_resources_tls_certificate_content_file_with_http_info( + def get_resources_tls_dh_content_file_with_http_info( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24929,12 +26239,12 @@ def get_resources_tls_certificate_content_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """get_resources_tls_certificate_content_file + """get_resources_tls_dh_content_file - Get the content of a particular TLS certificate file. + Get the content of a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24957,8 +26267,8 @@ def get_resources_tls_certificate_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24977,9 +26287,9 @@ def get_resources_tls_certificate_content_file_with_http_info( @validate_call - def get_resources_tls_certificate_content_file_without_preload_content( + def get_resources_tls_dh_content_file_without_preload_content( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24993,12 +26303,12 @@ def get_resources_tls_certificate_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificate_content_file + """get_resources_tls_dh_content_file - Get the content of a particular TLS certificate file. + Get the content of a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25021,8 +26331,8 @@ def get_resources_tls_certificate_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25040,9 +26350,9 @@ def get_resources_tls_certificate_content_file_without_preload_content( ) - def _get_resources_tls_certificate_content_file_serialize( + def _get_resources_tls_dh_content_file_serialize( self, - tls_certificate_id, + tls_dh_id, _request_auth, _content_type, _headers, @@ -25062,8 +26372,8 @@ def _get_resources_tls_certificate_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_certificate_id is not None: - _path_params['tlsCertificateId'] = tls_certificate_id + if tls_dh_id is not None: + _path_params['tlsDhId'] = tls_dh_id # process the query parameters # process the header parameters # process the form parameters @@ -25088,7 +26398,7 @@ def _get_resources_tls_certificate_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}/contentFile', + resource_path='/api/v2/resources/tls-dhs/{tlsDhId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25105,7 +26415,7 @@ def _get_resources_tls_certificate_content_file_serialize( @validate_call - def get_resources_tls_certificates( + def get_resources_tls_dhs( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25122,9 +26432,9 @@ def get_resources_tls_certificates( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_tls_certificates + """get_resources_tls_dhs - Get all the available TLS certificate files + Get all the available TLS DH files. :param take: The number of search results to return :type take: int @@ -25152,7 +26462,7 @@ def get_resources_tls_certificates( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_tls_dhs_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25174,7 +26484,7 @@ def get_resources_tls_certificates( @validate_call - def get_resources_tls_certificates_with_http_info( + def get_resources_tls_dhs_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25191,9 +26501,9 @@ def get_resources_tls_certificates_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_certificates + """get_resources_tls_dhs - Get all the available TLS certificate files + Get all the available TLS DH files. :param take: The number of search results to return :type take: int @@ -25221,7 +26531,7 @@ def get_resources_tls_certificates_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_tls_dhs_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25243,7 +26553,7 @@ def get_resources_tls_certificates_with_http_info( @validate_call - def get_resources_tls_certificates_without_preload_content( + def get_resources_tls_dhs_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25260,9 +26570,9 @@ def get_resources_tls_certificates_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificates + """get_resources_tls_dhs - Get all the available TLS certificate files + Get all the available TLS DH files. :param take: The number of search results to return :type take: int @@ -25290,7 +26600,7 @@ def get_resources_tls_certificates_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_tls_dhs_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25311,7 +26621,7 @@ def get_resources_tls_certificates_without_preload_content( ) - def _get_resources_tls_certificates_serialize( + def _get_resources_tls_dhs_serialize( self, take, skip, @@ -25365,7 +26675,7 @@ def _get_resources_tls_certificates_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates', + resource_path='/api/v2/resources/tls-dhs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25382,7 +26692,7 @@ def _get_resources_tls_certificates_serialize( @validate_call - def get_resources_tls_certificates_upload_file_result( + def get_resources_tls_dhs_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25398,7 +26708,7 @@ def get_resources_tls_certificates_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_tls_certificates_upload_file_result + """get_resources_tls_dhs_upload_file_result Get the result of the upload file operation. @@ -25426,7 +26736,7 @@ def get_resources_tls_certificates_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( + _param = self._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25447,7 +26757,7 @@ def get_resources_tls_certificates_upload_file_result( @validate_call - def get_resources_tls_certificates_upload_file_result_with_http_info( + def get_resources_tls_dhs_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25463,7 +26773,7 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_tls_certificates_upload_file_result + """get_resources_tls_dhs_upload_file_result Get the result of the upload file operation. @@ -25491,7 +26801,7 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( + _param = self._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25512,7 +26822,7 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( @validate_call - def get_resources_tls_certificates_upload_file_result_without_preload_content( + def get_resources_tls_dhs_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25528,7 +26838,7 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificates_upload_file_result + """get_resources_tls_dhs_upload_file_result Get the result of the upload file operation. @@ -25556,7 +26866,7 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( + _param = self._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25576,7 +26886,7 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( ) - def _get_resources_tls_certificates_upload_file_result_serialize( + def _get_resources_tls_dhs_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -25623,7 +26933,7 @@ def _get_resources_tls_certificates_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25640,9 +26950,9 @@ def _get_resources_tls_certificates_upload_file_result_serialize( @validate_call - def get_resources_tls_dh_by_id( + def get_resources_tls_key_by_id( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25656,12 +26966,12 @@ def get_resources_tls_dh_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_tls_dh_by_id + """get_resources_tls_key_by_id - Get a particular TLS DH file. + Get a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25684,8 +26994,8 @@ def get_resources_tls_dh_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25706,9 +27016,9 @@ def get_resources_tls_dh_by_id( @validate_call - def get_resources_tls_dh_by_id_with_http_info( + def get_resources_tls_key_by_id_with_http_info( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25722,12 +27032,12 @@ def get_resources_tls_dh_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GenericFile]: - """get_resources_tls_dh_by_id + """get_resources_tls_key_by_id - Get a particular TLS DH file. + Get a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25750,8 +27060,8 @@ def get_resources_tls_dh_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25772,9 +27082,9 @@ def get_resources_tls_dh_by_id_with_http_info( @validate_call - def get_resources_tls_dh_by_id_without_preload_content( + def get_resources_tls_key_by_id_without_preload_content( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25788,12 +27098,12 @@ def get_resources_tls_dh_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dh_by_id + """get_resources_tls_key_by_id - Get a particular TLS DH file. + Get a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25816,8 +27126,8 @@ def get_resources_tls_dh_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25837,9 +27147,9 @@ def get_resources_tls_dh_by_id_without_preload_content( ) - def _get_resources_tls_dh_by_id_serialize( + def _get_resources_tls_key_by_id_serialize( self, - tls_dh_id, + tls_key_id, _request_auth, _content_type, _headers, @@ -25859,8 +27169,8 @@ def _get_resources_tls_dh_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_dh_id is not None: - _path_params['tlsDhId'] = tls_dh_id + if tls_key_id is not None: + _path_params['tlsKeyId'] = tls_key_id # process the query parameters # process the header parameters # process the form parameters @@ -25884,7 +27194,7 @@ def _get_resources_tls_dh_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/{tlsDhId}', + resource_path='/api/v2/resources/tls-keys/{tlsKeyId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25901,9 +27211,9 @@ def _get_resources_tls_dh_by_id_serialize( @validate_call - def get_resources_tls_dh_content_file( + def get_resources_tls_key_content_file( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25917,12 +27227,12 @@ def get_resources_tls_dh_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_tls_dh_content_file + """get_resources_tls_key_content_file - Get the content of a particular TLS DH file. + Get the content of a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25945,8 +27255,8 @@ def get_resources_tls_dh_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25965,9 +27275,9 @@ def get_resources_tls_dh_content_file( @validate_call - def get_resources_tls_dh_content_file_with_http_info( + def get_resources_tls_key_content_file_with_http_info( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25981,12 +27291,12 @@ def get_resources_tls_dh_content_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """get_resources_tls_dh_content_file + """get_resources_tls_key_content_file - Get the content of a particular TLS DH file. + Get the content of a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26009,8 +27319,8 @@ def get_resources_tls_dh_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26029,9 +27339,9 @@ def get_resources_tls_dh_content_file_with_http_info( @validate_call - def get_resources_tls_dh_content_file_without_preload_content( + def get_resources_tls_key_content_file_without_preload_content( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26045,12 +27355,12 @@ def get_resources_tls_dh_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dh_content_file + """get_resources_tls_key_content_file - Get the content of a particular TLS DH file. + Get the content of a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26073,8 +27383,8 @@ def get_resources_tls_dh_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26092,9 +27402,9 @@ def get_resources_tls_dh_content_file_without_preload_content( ) - def _get_resources_tls_dh_content_file_serialize( + def _get_resources_tls_key_content_file_serialize( self, - tls_dh_id, + tls_key_id, _request_auth, _content_type, _headers, @@ -26114,8 +27424,8 @@ def _get_resources_tls_dh_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_dh_id is not None: - _path_params['tlsDhId'] = tls_dh_id + if tls_key_id is not None: + _path_params['tlsKeyId'] = tls_key_id # process the query parameters # process the header parameters # process the form parameters @@ -26140,7 +27450,7 @@ def _get_resources_tls_dh_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/{tlsDhId}/contentFile', + resource_path='/api/v2/resources/tls-keys/{tlsKeyId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26157,7 +27467,7 @@ def _get_resources_tls_dh_content_file_serialize( @validate_call - def get_resources_tls_dhs( + def get_resources_tls_keys( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -26174,9 +27484,9 @@ def get_resources_tls_dhs( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_tls_dhs + """get_resources_tls_keys - Get all the available TLS DH files. + Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -26204,7 +27514,7 @@ def get_resources_tls_dhs( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( + _param = self._get_resources_tls_keys_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26226,7 +27536,7 @@ def get_resources_tls_dhs( @validate_call - def get_resources_tls_dhs_with_http_info( + def get_resources_tls_keys_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -26243,9 +27553,9 @@ def get_resources_tls_dhs_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_dhs + """get_resources_tls_keys - Get all the available TLS DH files. + Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -26273,7 +27583,7 @@ def get_resources_tls_dhs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( + _param = self._get_resources_tls_keys_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26295,7 +27605,7 @@ def get_resources_tls_dhs_with_http_info( @validate_call - def get_resources_tls_dhs_without_preload_content( + def get_resources_tls_keys_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -26312,9 +27622,9 @@ def get_resources_tls_dhs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dhs + """get_resources_tls_keys - Get all the available TLS DH files. + Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -26342,7 +27652,7 @@ def get_resources_tls_dhs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( + _param = self._get_resources_tls_keys_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26363,7 +27673,7 @@ def get_resources_tls_dhs_without_preload_content( ) - def _get_resources_tls_dhs_serialize( + def _get_resources_tls_keys_serialize( self, take, skip, @@ -26417,7 +27727,7 @@ def _get_resources_tls_dhs_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs', + resource_path='/api/v2/resources/tls-keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26434,7 +27744,7 @@ def _get_resources_tls_dhs_serialize( @validate_call - def get_resources_tls_dhs_upload_file_result( + def get_resources_tls_keys_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -26450,7 +27760,7 @@ def get_resources_tls_dhs_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_tls_dhs_upload_file_result + """get_resources_tls_keys_upload_file_result Get the result of the upload file operation. @@ -26478,7 +27788,7 @@ def get_resources_tls_dhs_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( + _param = self._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -26499,7 +27809,7 @@ def get_resources_tls_dhs_upload_file_result( @validate_call - def get_resources_tls_dhs_upload_file_result_with_http_info( + def get_resources_tls_keys_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -26515,7 +27825,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_tls_dhs_upload_file_result + """get_resources_tls_keys_upload_file_result Get the result of the upload file operation. @@ -26543,7 +27853,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( + _param = self._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -26564,7 +27874,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( @validate_call - def get_resources_tls_dhs_upload_file_result_without_preload_content( + def get_resources_tls_keys_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -26580,7 +27890,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dhs_upload_file_result + """get_resources_tls_keys_upload_file_result Get the result of the upload file operation. @@ -26608,7 +27918,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( + _param = self._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -26628,7 +27938,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( ) - def _get_resources_tls_dhs_upload_file_result_serialize( + def _get_resources_tls_keys_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -26675,7 +27985,7 @@ def _get_resources_tls_dhs_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26692,9 +28002,10 @@ def _get_resources_tls_dhs_upload_file_result_serialize( @validate_call - def get_resources_tls_key_by_id( + def get_resources_user_defined_apps( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26707,13 +28018,14 @@ def get_resources_tls_key_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_tls_key_by_id + ) -> List[AppsecApp]: + """get_resources_user_defined_apps - Get a particular TLS key file. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26736,8 +28048,9 @@ def get_resources_tls_key_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26745,9 +28058,7 @@ def get_resources_tls_key_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -26758,9 +28069,10 @@ def get_resources_tls_key_by_id( @validate_call - def get_resources_tls_key_by_id_with_http_info( + def get_resources_user_defined_apps_with_http_info( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26773,13 +28085,14 @@ def get_resources_tls_key_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_tls_key_by_id + ) -> ApiResponse[List[AppsecApp]]: + """get_resources_user_defined_apps - Get a particular TLS key file. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26802,8 +28115,9 @@ def get_resources_tls_key_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26811,9 +28125,7 @@ def get_resources_tls_key_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -26824,9 +28136,10 @@ def get_resources_tls_key_by_id_with_http_info( @validate_call - def get_resources_tls_key_by_id_without_preload_content( + def get_resources_user_defined_apps_without_preload_content( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26840,12 +28153,13 @@ def get_resources_tls_key_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_key_by_id + """get_resources_user_defined_apps - Get a particular TLS key file. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26868,8 +28182,9 @@ def get_resources_tls_key_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26877,9 +28192,7 @@ def get_resources_tls_key_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -26889,9 +28202,10 @@ def get_resources_tls_key_by_id_without_preload_content( ) - def _get_resources_tls_key_by_id_serialize( + def _get_resources_user_defined_apps_serialize( self, - tls_key_id, + take, + skip, _request_auth, _content_type, _headers, @@ -26911,9 +28225,15 @@ def _get_resources_tls_key_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_key_id is not None: - _path_params['tlsKeyId'] = tls_key_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -26936,7 +28256,7 @@ def _get_resources_tls_key_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/{tlsKeyId}', + resource_path='/api/v2/resources/user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26953,9 +28273,9 @@ def _get_resources_tls_key_by_id_serialize( @validate_call - def get_resources_tls_key_content_file( + def get_resources_user_defined_apps_upload_file_result( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26968,13 +28288,13 @@ def get_resources_tls_key_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_tls_key_content_file + ) -> None: + """get_resources_user_defined_apps_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26997,8 +28317,8 @@ def get_resources_tls_key_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27006,8 +28326,9 @@ def get_resources_tls_key_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27017,9 +28338,9 @@ def get_resources_tls_key_content_file( @validate_call - def get_resources_tls_key_content_file_with_http_info( + def get_resources_user_defined_apps_upload_file_result_with_http_info( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27032,13 +28353,13 @@ def get_resources_tls_key_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_tls_key_content_file + ) -> ApiResponse[None]: + """get_resources_user_defined_apps_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27061,8 +28382,8 @@ def get_resources_tls_key_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27070,8 +28391,9 @@ def get_resources_tls_key_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27081,9 +28403,9 @@ def get_resources_tls_key_content_file_with_http_info( @validate_call - def get_resources_tls_key_content_file_without_preload_content( + def get_resources_user_defined_apps_upload_file_result_without_preload_content( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27097,12 +28419,12 @@ def get_resources_tls_key_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_key_content_file + """get_resources_user_defined_apps_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27125,8 +28447,8 @@ def get_resources_tls_key_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27134,8 +28456,9 @@ def get_resources_tls_key_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27144,9 +28467,9 @@ def get_resources_tls_key_content_file_without_preload_content( ) - def _get_resources_tls_key_content_file_serialize( + def _get_resources_user_defined_apps_upload_file_result_serialize( self, - tls_key_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -27166,8 +28489,8 @@ def _get_resources_tls_key_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_key_id is not None: - _path_params['tlsKeyId'] = tls_key_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -27178,7 +28501,6 @@ def _get_resources_tls_key_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -27192,7 +28514,7 @@ def _get_resources_tls_key_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/{tlsKeyId}/contentFile', + resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27209,10 +28531,9 @@ def _get_resources_tls_key_content_file_serialize( @validate_call - def get_resources_tls_keys( + def get_resources_voice_custom_flow_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27225,15 +28546,13 @@ def get_resources_tls_keys( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_tls_keys + ) -> GenericFile: + """get_resources_voice_custom_flow_by_id - Get all the available TLS key files. + Get a particular voice custom flow. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27256,9 +28575,8 @@ def get_resources_tls_keys( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( - take=take, - skip=skip, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27266,8 +28584,9 @@ def get_resources_tls_keys( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27278,10 +28597,9 @@ def get_resources_tls_keys( @validate_call - def get_resources_tls_keys_with_http_info( + def get_resources_voice_custom_flow_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27294,15 +28612,13 @@ def get_resources_tls_keys_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_keys + ) -> ApiResponse[GenericFile]: + """get_resources_voice_custom_flow_by_id - Get all the available TLS key files. + Get a particular voice custom flow. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27325,9 +28641,8 @@ def get_resources_tls_keys_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( - take=take, - skip=skip, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27335,8 +28650,9 @@ def get_resources_tls_keys_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27347,10 +28663,9 @@ def get_resources_tls_keys_with_http_info( @validate_call - def get_resources_tls_keys_without_preload_content( + def get_resources_voice_custom_flow_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27364,14 +28679,12 @@ def get_resources_tls_keys_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_keys + """get_resources_voice_custom_flow_by_id - Get all the available TLS key files. + Get a particular voice custom flow. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27394,9 +28707,8 @@ def get_resources_tls_keys_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( - take=take, - skip=skip, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27404,8 +28716,9 @@ def get_resources_tls_keys_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27415,10 +28728,9 @@ def get_resources_tls_keys_without_preload_content( ) - def _get_resources_tls_keys_serialize( + def _get_resources_voice_custom_flow_by_id_serialize( self, - take, - skip, + voice_custom_flow_id, _request_auth, _content_type, _headers, @@ -27438,15 +28750,9 @@ def _get_resources_tls_keys_serialize( _body_params: Optional[bytes] = None # process the path parameters + if voice_custom_flow_id is not None: + _path_params['voiceCustomFlowId'] = voice_custom_flow_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -27469,7 +28775,7 @@ def _get_resources_tls_keys_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys', + resource_path='/api/v2/resources/voice-custom-flows/{voiceCustomFlowId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27486,9 +28792,9 @@ def _get_resources_tls_keys_serialize( @validate_call - def get_resources_tls_keys_upload_file_result( + def get_resources_voice_custom_flow_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27501,13 +28807,13 @@ def get_resources_tls_keys_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_tls_keys_upload_file_result + ) -> bytearray: + """get_resources_voice_custom_flow_content_file - Get the result of the upload file operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27530,8 +28836,8 @@ def get_resources_tls_keys_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27539,9 +28845,8 @@ def get_resources_tls_keys_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27551,9 +28856,9 @@ def get_resources_tls_keys_upload_file_result( @validate_call - def get_resources_tls_keys_upload_file_result_with_http_info( + def get_resources_voice_custom_flow_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27566,13 +28871,13 @@ def get_resources_tls_keys_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_tls_keys_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_voice_custom_flow_content_file - Get the result of the upload file operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27595,8 +28900,8 @@ def get_resources_tls_keys_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27604,9 +28909,8 @@ def get_resources_tls_keys_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27616,9 +28920,9 @@ def get_resources_tls_keys_upload_file_result_with_http_info( @validate_call - def get_resources_tls_keys_upload_file_result_without_preload_content( + def get_resources_voice_custom_flow_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27632,12 +28936,12 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_keys_upload_file_result + """get_resources_voice_custom_flow_content_file - Get the result of the upload file operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27660,8 +28964,8 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27669,9 +28973,8 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27680,9 +28983,9 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( ) - def _get_resources_tls_keys_upload_file_result_serialize( + def _get_resources_voice_custom_flow_content_file_serialize( self, - upload_file_id, + voice_custom_flow_id, _request_auth, _content_type, _headers, @@ -27702,8 +29005,8 @@ def _get_resources_tls_keys_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if voice_custom_flow_id is not None: + _path_params['voiceCustomFlowId'] = voice_custom_flow_id # process the query parameters # process the header parameters # process the form parameters @@ -27714,6 +29017,7 @@ def _get_resources_tls_keys_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -27727,7 +29031,7 @@ def _get_resources_tls_keys_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/voice-custom-flows/{voiceCustomFlowId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27744,7 +29048,7 @@ def _get_resources_tls_keys_upload_file_result_serialize( @validate_call - def get_resources_user_defined_apps( + def get_resources_voice_custom_flows( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -27760,9 +29064,10 @@ def get_resources_user_defined_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[AppsecApp]: - """get_resources_user_defined_apps + ) -> GetResourcesCertificates200Response: + """get_resources_voice_custom_flows + Get all the available voice custom flows. :param take: The number of search results to return :type take: int @@ -27790,7 +29095,7 @@ def get_resources_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( + _param = self._get_resources_voice_custom_flows_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -27800,7 +29105,8 @@ def get_resources_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27811,7 +29117,7 @@ def get_resources_user_defined_apps( @validate_call - def get_resources_user_defined_apps_with_http_info( + def get_resources_voice_custom_flows_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -27827,9 +29133,10 @@ def get_resources_user_defined_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[AppsecApp]]: - """get_resources_user_defined_apps + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_voice_custom_flows + Get all the available voice custom flows. :param take: The number of search results to return :type take: int @@ -27857,7 +29164,7 @@ def get_resources_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( + _param = self._get_resources_voice_custom_flows_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -27867,7 +29174,8 @@ def get_resources_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27878,7 +29186,7 @@ def get_resources_user_defined_apps_with_http_info( @validate_call - def get_resources_user_defined_apps_without_preload_content( + def get_resources_voice_custom_flows_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -27895,8 +29203,9 @@ def get_resources_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_user_defined_apps + """get_resources_voice_custom_flows + Get all the available voice custom flows. :param take: The number of search results to return :type take: int @@ -27924,7 +29233,7 @@ def get_resources_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( + _param = self._get_resources_voice_custom_flows_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -27934,7 +29243,8 @@ def get_resources_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27944,7 +29254,7 @@ def get_resources_user_defined_apps_without_preload_content( ) - def _get_resources_user_defined_apps_serialize( + def _get_resources_voice_custom_flows_serialize( self, take, skip, @@ -27998,7 +29308,7 @@ def _get_resources_user_defined_apps_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/user-defined-apps', + resource_path='/api/v2/resources/voice-custom-flows', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28015,7 +29325,7 @@ def _get_resources_user_defined_apps_serialize( @validate_call - def get_resources_user_defined_apps_upload_file_result( + def get_resources_voice_custom_flows_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -28031,7 +29341,7 @@ def get_resources_user_defined_apps_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_user_defined_apps_upload_file_result + """get_resources_voice_custom_flows_upload_file_result Get the result of the upload file operation. @@ -28059,7 +29369,7 @@ def get_resources_user_defined_apps_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28080,7 +29390,7 @@ def get_resources_user_defined_apps_upload_file_result( @validate_call - def get_resources_user_defined_apps_upload_file_result_with_http_info( + def get_resources_voice_custom_flows_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -28096,7 +29406,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_user_defined_apps_upload_file_result + """get_resources_voice_custom_flows_upload_file_result Get the result of the upload file operation. @@ -28124,7 +29434,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28145,7 +29455,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( @validate_call - def get_resources_user_defined_apps_upload_file_result_without_preload_content( + def get_resources_voice_custom_flows_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -28161,7 +29471,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_user_defined_apps_upload_file_result + """get_resources_voice_custom_flows_upload_file_result Get the result of the upload file operation. @@ -28189,7 +29499,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28209,7 +29519,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( ) - def _get_resources_user_defined_apps_upload_file_result_serialize( + def _get_resources_voice_custom_flows_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -28256,7 +29566,7 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/voice-custom-flows/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28581,6 +29891,16 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( + + + + + + + + + + @@ -37086,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/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 7448a6a..28dfabf 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -347,9 +347,10 @@ SessionReuseMethodTLS12 = DynamicModel('SessionReuseMethodTLS12', (), {} ) SessionReuseMethodTLS13 = DynamicModel('SessionReuseMethodTLS13', (), {} ) SetAggregationModeOperation = DynamicModel('SetAggregationModeOperation', (), {} ) -SetAppOperation = DynamicModel('SetAppOperation', (), {} ) +SetControllerAppOperation = DynamicModel('SetControllerAppOperation', (), {} ) SetDpdkModeOperationInput = DynamicModel('SetDpdkModeOperationInput', (), {} ) SetLinkStateOperation = DynamicModel('SetLinkStateOperation', (), {} ) +SetNodesAppOperation = DynamicModel('SetNodesAppOperation', (), {} ) SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) SimulatedIdP = DynamicModel('SimulatedIdP', (), {} ) Snapshot = DynamicModel('Snapshot', (), {} ) @@ -371,6 +372,7 @@ TcpProfile = DynamicModel('TcpProfile', (), {} ) TestInfo = DynamicModel('TestInfo', (), {} ) TestStateChangedOperation = DynamicModel('TestStateChangedOperation', (), {} ) +TestUsage = DynamicModel('TestUsage', (), {} ) TimeValue = DynamicModel('TimeValue', (), {} ) TimelineSegment = DynamicModel('TimelineSegment', (), {} ) TimelineSegmentBase = DynamicModel('TimelineSegmentBase', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index ad858bd..c24cc76 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -347,9 +347,10 @@ class LinkNameException(Exception): from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot @@ -371,6 +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 diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index 66a8b3e..d033c3a 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -47,9 +47,8 @@ class CommandMetadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") - supported_protocols: Optional[List[StrictStr]] = Field(default=None, description="The list of protocols which support this command", alias="SupportedProtocols") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "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, @@ -137,7 +136,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], - "SupportedProtocols": obj.get("SupportedProtocols") if obj.get("SupportedProtocols") is not None else [], "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/http_profile.py b/cyperf/models/http_profile.py index 2294599..5497708 100644 --- a/cyperf/models/http_profile.py +++ b/cyperf/models/http_profile.py @@ -40,12 +40,11 @@ class HTTPProfile(BaseModel): http_version: Optional[HTTPVersion] = Field(default=None, alias="HTTPVersion") headers: Optional[Params] = Field(default=None, alias="Headers") is_modified: Optional[StrictBool] = Field(default=None, alias="IsModified") - max_concurrent_streams: Optional[StrictInt] = Field(default=None, description="The maximum number of streams for all HTTP/2 connections.", alias="MaxConcurrentStreams") name: StrictStr = Field(description="The name of the HTTP profile.", alias="Name") params: Optional[List[Params]] = Field(default=None, description="The list of parameters present in the HTTP profile.", alias="Params") use_application_server_headers: Optional[StrictBool] = Field(default=None, alias="UseApplicationServerHeaders") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AdditionalHeaders", "ConnectionPersistence", "ConnectionsMaxTransactions", "Description", "ExternalResourceURL", "HTTPVersion", "Headers", "IsModified", "MaxConcurrentStreams", "Name", "Params", "UseApplicationServerHeaders", "links"] + __properties: ClassVar[List[str]] = ["AdditionalHeaders", "ConnectionPersistence", "ConnectionsMaxTransactions", "Description", "ExternalResourceURL", "HTTPVersion", "Headers", "IsModified", "Name", "Params", "UseApplicationServerHeaders", "links"] model_config = ConfigDict( populate_by_name=True, @@ -128,7 +127,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "HTTPVersion": obj.get("HTTPVersion"), "Headers": Params.from_dict(obj["Headers"]) if obj.get("Headers") is not None else None, "IsModified": obj.get("IsModified"), - "MaxConcurrentStreams": obj.get("MaxConcurrentStreams"), "Name": obj.get("Name"), "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "UseApplicationServerHeaders": obj.get("UseApplicationServerHeaders"), diff --git a/cyperf/models/objective_type.py b/cyperf/models/objective_type.py index 06398b2..8d74656 100644 --- a/cyperf/models/objective_type.py +++ b/cyperf/models/objective_type.py @@ -32,6 +32,7 @@ class ObjectiveType(str, Enum): CONNECTIONS_PER_SECOND = 'Connections per second' FLOW_RATE = 'Flow rate' CONCURRENT_CONNECTIONS = 'Concurrent connections' + PROMPTS_PER_SECOND = 'Prompts per second' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/set_controller_app_operation.py b/cyperf/models/set_controller_app_operation.py new file mode 100644 index 0000000..c98904d --- /dev/null +++ b/cyperf/models/set_controller_app_operation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SetControllerAppOperation(BaseModel): + """ + SetControllerAppOperation + """ # noqa: E501 + app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the controllers.", alias="appId") + controllers: Optional[List[StrictStr]] = Field(default=None, description="The controller ids for which to activate the app.") + force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") + __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetControllerAppOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetControllerAppOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "appId": obj.get("appId"), + "controllers": obj.get("controllers") if obj.get("controllers") is not None else [], + "force": obj.get("force") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/set_nodes_app_operation.py b/cyperf/models/set_nodes_app_operation.py new file mode 100644 index 0000000..7975d63 --- /dev/null +++ b/cyperf/models/set_nodes_app_operation.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.nodes_by_controller import NodesByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SetNodesAppOperation(BaseModel): + """ + SetNodesAppOperation + """ # noqa: E501 + app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the compute nodes.", alias="appId") + controllers: Optional[List[NodesByController]] = Field(default=None, description="The controllers that the compute nodes are part of.") + force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") + __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetNodesAppOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetNodesAppOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "appId": obj.get("appId"), + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), + "force": obj.get("force") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/system_info.py b/cyperf/models/system_info.py index ef1ac72..fa85792 100644 --- a/cyperf/models/system_info.py +++ b/cyperf/models/system_info.py @@ -30,12 +30,13 @@ class SystemInfo(BaseModel): """ SystemInfo """ # noqa: E501 + arch: Optional[StrictStr] = None chassis_info: Optional[ChassisInfo] = Field(default=None, alias="chassisInfo") kernel_version: Optional[StrictStr] = Field(default=None, alias="kernelVersion") os_name: Optional[StrictStr] = Field(default=None, alias="osName") port_manager_version: Optional[StrictStr] = Field(default=None, alias="portManagerVersion") traffic_agent_info: Optional[List[TrafficAgentInfo]] = Field(default=None, alias="trafficAgentInfo") - __properties: ClassVar[List[str]] = ["chassisInfo", "kernelVersion", "osName", "portManagerVersion", "trafficAgentInfo"] + __properties: ClassVar[List[str]] = ["arch", "chassisInfo", "kernelVersion", "osName", "portManagerVersion", "trafficAgentInfo"] model_config = ConfigDict( populate_by_name=True, @@ -71,8 +72,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "arch", "kernel_version", "os_name", "port_manager_version", @@ -108,7 +111,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "chassisInfo": ChassisInfo.from_dict(obj["chassisInfo"]) if obj.get("chassisInfo") is not None else None, + "arch": obj.get("arch"), + "chassisInfo": ChassisInfo.from_dict(obj["chassisInfo"]) if obj.get("chassisInfo") is not None else None, "kernelVersion": obj.get("kernelVersion"), "osName": obj.get("osName"), "portManagerVersion": obj.get("portManagerVersion"), diff --git a/cyperf/models/test_info.py b/cyperf/models/test_info.py index 9cce7fa..0a05bfd 100644 --- a/cyperf/models/test_info.py +++ b/cyperf/models/test_info.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.dashboard import Dashboard +from cyperf.models.test_usage import TestUsage from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -40,7 +41,8 @@ class TestInfo(BaseModel): test_initialized: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the last test was initialized", alias="testInitialized") test_started: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was started", alias="testStarted") test_stopped: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was stopped. May be null if the test is still running.", alias="testStopped") - __properties: ClassVar[List[str]] = ["dashboards", "defaultDashboardIndex", "defaultPollingInterval", "status", "testDetails", "testDuration", "testElapsed", "testId", "testInitialized", "testStarted", "testStopped"] + test_usage: Optional[TestUsage] = Field(default=None, alias="testUsage") + __properties: ClassVar[List[str]] = ["dashboards", "defaultDashboardIndex", "defaultPollingInterval", "status", "testDetails", "testDuration", "testElapsed", "testId", "testInitialized", "testStarted", "testStopped", "testUsage"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['dashboards'] = _items + # override the default output from pydantic by calling `to_dict()` of test_usage + if self.test_usage: + _dict['testUsage'] = self.test_usage.to_dict() return _dict @classmethod @@ -114,7 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "testId": obj.get("testId"), "testInitialized": obj.get("testInitialized"), "testStarted": obj.get("testStarted"), - "testStopped": obj.get("testStopped") + "testStopped": obj.get("testStopped"), + "testUsage": TestUsage.from_dict(obj["testUsage"]) if obj.get("testUsage") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/test_usage.py b/cyperf/models/test_usage.py new file mode 100644 index 0000000..79a4446 --- /dev/null +++ b/cyperf/models/test_usage.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class TestUsage(BaseModel): + """ + TestUsage + """ # noqa: E501 + used_agents: Optional[List[StrictStr]] = Field(default=None, description="The agents used by the current test", alias="usedAgents") + used_licenses: Optional[Dict[str, StrictInt]] = Field(default=None, description="Feature types used by the current test and their respective counts", alias="usedLicenses") + __properties: ClassVar[List[str]] = ["usedAgents", "usedLicenses"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TestUsage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TestUsage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "usedAgents": obj.get("usedAgents") if obj.get("usedAgents") is not None else [], + "usedLicenses": obj.get("usedLicenses") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index 35bdfd2..e0b7374 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -28,6 +28,7 @@ Method | HTTP request | Description [**start_controllers_reboot_port**](AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | [**start_controllers_set_app**](AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | [**start_controllers_set_node_aggregation**](AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | +[**start_controllers_set_node_app**](AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | [**start_controllers_set_port_link_state**](AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | [**start_controllers_update_port_tags**](AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | @@ -1772,7 +1773,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start_controllers_set_app** -> AsyncContext start_controllers_set_app(set_app_operation=set_app_operation) +> AsyncContext start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) @@ -1786,7 +1787,7 @@ Set the active app of the controllers. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.rest import ApiException from pprint import pprint @@ -1809,10 +1810,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_app_operation = cyperf.SetAppOperation() # SetAppOperation | (optional) + set_controller_app_operation = cyperf.SetControllerAppOperation() # SetControllerAppOperation | (optional) try: - api_response = api_instance.start_controllers_set_app(set_app_operation=set_app_operation) + api_response = api_instance.start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) print("The response of AgentsApi->start_controllers_set_app:\n") pprint(api_response) except Exception as e: @@ -1826,7 +1827,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_app_operation** | [**SetAppOperation**](SetAppOperation.md)| | [optional] + **set_controller_app_operation** | [**SetControllerAppOperation**](SetControllerAppOperation.md)| | [optional] ### Return type @@ -1927,6 +1928,84 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_controllers_set_node_app** +> AsyncContext start_controllers_set_node_app(set_nodes_app_operation=set_nodes_app_operation) + + + +Set the active app of the compute nodes. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + set_nodes_app_operation = cyperf.SetNodesAppOperation() # SetNodesAppOperation | (optional) + + try: + api_response = api_instance.start_controllers_set_node_app(set_nodes_app_operation=set_nodes_app_operation) + print("The response of AgentsApi->start_controllers_set_node_app:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->start_controllers_set_node_app: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **set_nodes_app_operation** | [**SetNodesAppOperation**](SetNodesAppOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_controllers_set_port_link_state** > AsyncContext start_controllers_set_port_link_state(set_link_state_operation=set_link_state_operation) diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index 080d75e..1baa391 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -22,6 +22,7 @@ Method | HTTP request | Description [**delete_resources_tls_dh**](ApplicationResourcesApi.md#delete_resources_tls_dh) | **DELETE** /api/v2/resources/tls-dhs/{tlsDhId} | [**delete_resources_tls_key**](ApplicationResourcesApi.md#delete_resources_tls_key) | **DELETE** /api/v2/resources/tls-keys/{tlsKeyId} | [**delete_resources_user_defined_app**](ApplicationResourcesApi.md#delete_resources_user_defined_app) | **DELETE** /api/v2/resources/user-defined-apps/{userDefinedAppId} | +[**delete_resources_voice_custom_flow**](ApplicationResourcesApi.md#delete_resources_voice_custom_flow) | **DELETE** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | [**get_capture_flows**](ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | [**get_flow_exchanges**](ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | [**get_resources_app_by_id**](ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | @@ -110,6 +111,10 @@ Method | HTTP request | Description [**get_resources_tls_keys_upload_file_result**](ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | [**get_resources_user_defined_apps**](ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | [**get_resources_user_defined_apps_upload_file_result**](ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | +[**get_resources_voice_custom_flow_by_id**](ApplicationResourcesApi.md#get_resources_voice_custom_flow_by_id) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | +[**get_resources_voice_custom_flow_content_file**](ApplicationResourcesApi.md#get_resources_voice_custom_flow_content_file) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId}/contentFile | +[**get_resources_voice_custom_flows**](ApplicationResourcesApi.md#get_resources_voice_custom_flows) | **GET** /api/v2/resources/voice-custom-flows | +[**get_resources_voice_custom_flows_upload_file_result**](ApplicationResourcesApi.md#get_resources_voice_custom_flows_upload_file_result) | **GET** /api/v2/resources/voice-custom-flows/operations/uploadFile/{uploadFileId}/result | [**start_resources_apps_export_all**](ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | [**start_resources_captures_batch_delete**](ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | [**start_resources_captures_encrypted_upload_file**](ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | @@ -142,6 +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** @@ -1511,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) @@ -8434,6 +8516,320 @@ with cyperf.ApiClient(configuration) as api_client: +### 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_voice_custom_flow_by_id** +> GenericFile get_resources_voice_custom_flow_by_id(voice_custom_flow_id) + + + +Get a particular voice custom flow. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.generic_file import GenericFile +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + voice_custom_flow_id = 'voice_custom_flow_id_example' # str | The ID of the voice custom flow. + + try: + 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->get_resources_voice_custom_flow_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voice_custom_flow_id** | **str**| The ID of the voice custom flow. | + +### Return type + +[**GenericFile**](GenericFile.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The requested 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) + +# **get_resources_voice_custom_flow_content_file** +> bytearray get_resources_voice_custom_flow_content_file(voice_custom_flow_id) + + + +Get the content of a particular voice custom flow 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) + voice_custom_flow_id = 'voice_custom_flow_id_example' # str | The ID of the voice custom flow. + + try: + 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->get_resources_voice_custom_flow_content_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voice_custom_flow_id** | **str**| The ID of the voice custom flow. | + +### Return type + +**bytearray** + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/octet-stream, application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The content of the 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) + +# **get_resources_voice_custom_flows** +> GetResourcesCertificates200Response get_resources_voice_custom_flows(take=take, skip=skip) + + + +Get all the available voice custom flows. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_resources_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->get_resources_voice_custom_flows: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of voice custom flows | - | +**401** | Authorization information is missing or invalid. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resources_voice_custom_flows_upload_file_result** +> get_resources_voice_custom_flows_upload_file_result(upload_file_id) + + + +Get the result of the upload file operation. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + + try: + api_instance.get_resources_voice_custom_flows_upload_file_result(upload_file_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flows_upload_file_result: %s\n" % e) +``` + + + ### Parameters @@ -10871,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/CommandMetadata.md b/docs/CommandMetadata.md index 742d740..0b09e72 100644 --- a/docs/CommandMetadata.md +++ b/docs/CommandMetadata.md @@ -21,7 +21,6 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] -**supported_protocols** | **List[str]** | The list of protocols which support this command | [optional] **year** | **str** | The year of the strike | [optional] ## Example diff --git a/docs/HTTPProfile.md b/docs/HTTPProfile.md index 94d77ff..cd1e565 100644 --- a/docs/HTTPProfile.md +++ b/docs/HTTPProfile.md @@ -13,7 +13,6 @@ Name | Type | Description | Notes **http_version** | [**HTTPVersion**](HTTPVersion.md) | | [optional] **headers** | [**Params**](Params.md) | | [optional] **is_modified** | **bool** | | [optional] -**max_concurrent_streams** | **int** | The maximum number of streams for all HTTP/2 connections. | [optional] **name** | **str** | The name of the HTTP profile. | **params** | [**List[Params]**](Params.md) | The list of parameters present in the HTTP profile. | [optional] **use_application_server_headers** | **bool** | | [optional] diff --git a/docs/ObjectiveType.md b/docs/ObjectiveType.md index 02ba538..6ed880e 100644 --- a/docs/ObjectiveType.md +++ b/docs/ObjectiveType.md @@ -13,6 +13,8 @@ * `CONCURRENT_CONNECTIONS` (value: `'Concurrent connections'`) +* `PROMPTS_PER_SECOND` (value: `'Prompts per second'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SetControllerAppOperation.md b/docs/SetControllerAppOperation.md new file mode 100644 index 0000000..a30cc4e --- /dev/null +++ b/docs/SetControllerAppOperation.md @@ -0,0 +1,31 @@ +# SetControllerAppOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_id** | **str** | The id of the app to activate on the controllers. | [optional] +**controllers** | **List[str]** | The controller ids for which to activate the app. | [optional] +**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] + +## Example + +```python +from cyperf.models.set_controller_app_operation import SetControllerAppOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of SetControllerAppOperation from a JSON string +set_controller_app_operation_instance = SetControllerAppOperation.from_json(json) +# print the JSON string representation of the object +print(SetControllerAppOperation.to_json()) + +# convert the object into a dict +set_controller_app_operation_dict = set_controller_app_operation_instance.to_dict() +# create an instance of SetControllerAppOperation from a dict +set_controller_app_operation_from_dict = SetControllerAppOperation.from_dict(set_controller_app_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetNodesAppOperation.md b/docs/SetNodesAppOperation.md new file mode 100644 index 0000000..21446da --- /dev/null +++ b/docs/SetNodesAppOperation.md @@ -0,0 +1,31 @@ +# SetNodesAppOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_id** | **str** | The id of the app to activate on the compute nodes. | [optional] +**controllers** | [**List[NodesByController]**](NodesByController.md) | The controllers that the compute nodes are part of. | [optional] +**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] + +## Example + +```python +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of SetNodesAppOperation from a JSON string +set_nodes_app_operation_instance = SetNodesAppOperation.from_json(json) +# print the JSON string representation of the object +print(SetNodesAppOperation.to_json()) + +# convert the object into a dict +set_nodes_app_operation_dict = set_nodes_app_operation_instance.to_dict() +# create an instance of SetNodesAppOperation from a dict +set_nodes_app_operation_from_dict = SetNodesAppOperation.from_dict(set_nodes_app_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SystemInfo.md b/docs/SystemInfo.md index 06b74bc..c97c1c5 100644 --- a/docs/SystemInfo.md +++ b/docs/SystemInfo.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**arch** | **str** | | [optional] [readonly] **chassis_info** | [**ChassisInfo**](ChassisInfo.md) | | [optional] **kernel_version** | **str** | | [optional] [readonly] **os_name** | **str** | | [optional] [readonly] diff --git a/docs/TestInfo.md b/docs/TestInfo.md index 2cc3e3a..55b5c0e 100644 --- a/docs/TestInfo.md +++ b/docs/TestInfo.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **test_initialized** | **int** | A Unix timestamp that indicates when the last test was initialized | [optional] **test_started** | **int** | A Unix timestamp that indicates when the test was started | [optional] **test_stopped** | **int** | A Unix timestamp that indicates when the test was stopped. May be null if the test is still running. | [optional] +**test_usage** | [**TestUsage**](TestUsage.md) | | [optional] ## Example diff --git a/docs/TestUsage.md b/docs/TestUsage.md new file mode 100644 index 0000000..332271a --- /dev/null +++ b/docs/TestUsage.md @@ -0,0 +1,30 @@ +# TestUsage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**used_agents** | **List[str]** | The agents used by the current test | [optional] +**used_licenses** | **Dict[str, int]** | Feature types used by the current test and their respective counts | [optional] + +## Example + +```python +from cyperf.models.test_usage import TestUsage + +# TODO update the JSON string below +json = "{}" +# create an instance of TestUsage from a JSON string +test_usage_instance = TestUsage.from_json(json) +# print the JSON string representation of the object +print(TestUsage.to_json()) + +# convert the object into a dict +test_usage_dict = test_usage_instance.to_dict() +# create an instance of TestUsage from a dict +test_usage_from_dict = TestUsage.from_dict(test_usage_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + From e9efdefac0dd45bdeb1892519ea309f3e2612941 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Tue, 31 Mar 2026 07:54:46 -0600 Subject: [PATCH 20/20] Pull request #66: ISGAPPSEC2-36322 (CW) Fix github pipeline for release branch Merge in ISGAPPSEC/cyperf-api-wrapper from fix-github-pipeline-for-release-branch to release/26.0.0 Squashed commit of the following: commit afced70a51fa00a83baa5390e8ac70a08f72c37a Author: iustmitu Date: Tue Mar 31 14:14:30 2026 +0300 deleted testing step because we have no more tests in the wrapper commit 6866c25a720ca6370b45650a53774bdcfdf93a73 Author: iustmitu Date: Tue Mar 31 14:01:31 2026 +0300 deleted wrong versions and pytest dependency --- .github/workflows/python.yml | 6 +----- README.md | 2 -- pyproject.toml | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) 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/README.md b/README.md index 54a6144..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 diff --git a/pyproject.toml b/pyproject.toml index 8c74be2..c498ef5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,6 @@ pydantic = ">=2" typing-extensions = ">=4.7.1" [tool.poetry.dev-dependencies] -pytest = ">=7.2.1" tox = ">=3.9.0" flake8 = ">=4.0.0" types-python-dateutil = ">=2.8.19.14"